Skip to content

An easy way to reports generation with Jinja2 templates. With Embedded Datasource Specifications inside Jinja2 templates, you can fetch the data you need on the spot.

License

Notifications You must be signed in to change notification settings

meaningfy-ws/eds4jinja2

Repository files navigation

eds4jinja2

An easy way to reports generation with Jinja2 templates.

With Embedded Datasource Specifications inside Jinja2 templates, you can fetch the data you need on the spot.

test codecov Documentation Status

PyPI PyPI - Status PyPI - Python Version PyPI - License PyPI - Wheel

Specify the data sources in your JINJA templates directly.

{% set content, error = from_file(path).fetch_tree() %} \n
content:  {{ content }}\n
error: {{ error }}\n
{% set content, error =
    from_endpoint(endpoint).with_query(query_string).fetch_tabular() %}
content:  {{ content }} \n
error: {{ error }} \n

Installation

pip install eds4jinja2

Usage

Read the docs here

Contributing

You are more than welcome to help expand and mature this project. We adhere to Apache code of conduct, please follow it in all your interactions on the project.
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the maintainers of this repository before making a change.

Licence

This project is licensed under Apache License 2.0. Powered by Meaningfy.