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.
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
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for eds4jinja2-0.1.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc6b919e8937fb31abb4e680c6df5540c30d3214d2bf9ce88fc75c6cf3dfae67 |
|
MD5 | 34d84832b3f02d2cf642166d9da4f603 |
|
BLAKE2b-256 | 22c358ae1fc1b38f7fc366541c9ef697139890018f114b71c7628c2d5ee950c0 |