Skip to content

Repository files navigation

Caxton

CI Codecov PyPI version Python versions License: MIT


Declarative Python library for describing and generating documents from application data. Users define the document structure and semantics, while renderers handle output formats and backend-specific details

📚 Documentation
📑 Changelog

from caxton import render, sheet, spreadsheet, table, text, write

rows = [{"name": "Ada Lovelace"}, {"name": "Grace Hopper"}]

report = spreadsheet(
    sheet(
        "People",
        table(
            rows,
            text("name").titled("Name"),
        ),
    ),
)

result = render(report)

write(report, "people.xlsx")

More examples are available in the example projects

The project is licensed under the MIT

Installation

Install Caxton with pip:

pip install caxton

No additional setup is required

Works on Open-Source

If you find this project interesting, consider giving it a ⭐

About

Declarative way to work with files in python

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages