Skip to main content

Embed the data source specifications in your JINJA templates directly, and enjoy the dynamic data contexts.

Project description

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

Documentation

Read the docs here

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

eds4jinja2-0.1.21-py3-none-any.whl (35.1 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