Skip to main content

A framework for creating excel files declaratively.

Project description

A framework for creating excel files declaratively.

openpyxl is a different library that is often used for creating excel files. However, it only provides very rudementary controls forcing you to access, style and fill every cell individually in an imperative manner. This can get unwieldy and difficult to maintain very quickly which is the problem solved by this package.
excel-framwork builds on top of openpyxl providing you with a large set of ui components that you can compose into new ones to create excel files in an easy, readable and maintainable way.
The archictecture of excel-framwork was inspired by the cross platform ui development framework flutter.

Quickstart

An excel file with one cell containing hello world in bold:

ExcelFile(
    "hello.xlsx", 
    sheets=[
        ExcelSheet(
            "first sheet",
            child=Styler(
                child=ExcelCell("Hello World!"),
                style=Style(
                    text_style=TextStyle(bold=True)
                )
            )
        )
    ]
).create()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

excel_framework-0.4.5.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

excel_framework-0.4.5-py3-none-any.whl (16.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page