Coder Social home page Coder Social logo

xlsxreports's Introduction

XLSX Reports

This is a simple Python library to create Excel reports.

Introduction

Many times an Excel report is just a group of tables and charts with some basic data, normally with a common style. It would be great if there was a way to directly generate the Excel report from the data and some simple configuration.

Design

There are 3 basic elements:

  • A data table contains the data for the report
  • A style indicates how a single table is formatted
  • A layout indicates how different tables are formatted. Layouts are structured as a tree. The layout references the data and style

A report is built from a single layout. A parent layout may contain child layouts. Some of these may be table layouts which apply a table sytle to the data to build the actual cells that are added to the spreadsheet.

The data table merely contains a list of columns and corresponding data rows, with one value per column. The list of columns is used for the table headers and each row is added as a row to the report table. Each data value in the table is added to an individual cell.

The style contains information such as background and font color, as well as any other visual information in the spreadsheet.

The layout can be one of a variety of types, for example, it can contain a series of reports in the same row, structured in a column, with a fixed size, or automatically expanding to include the full report.

TO DO

Remaining style features:

  • Hide gridlines
  • Borders (in different color)
  • Set row and column width
  • Set fonts (different for headers and rows)
  • Set font color
  • Set bold font
  • Set color for numbers (conditional formatting?)
  • Table style with extra padding between columns
  • Zebra striping

xlsxreports's People

Contributors

tordable avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.