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
Usage
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.
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eds4jinja2-0.2.0.tar.gz.
File metadata
- Download URL: eds4jinja2-0.2.0.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40310565de9db6dba890308ea95e0d20a251e85e3912355dc0b914e573f61be9
|
|
| MD5 |
0c852eb7ac1915be4b7e70000cd7dcb9
|
|
| BLAKE2b-256 |
6dd3ee1f3096b46883e43121058c5aa927c124374406a26216b737b45a2f2414
|
File details
Details for the file eds4jinja2-0.2.0-py3-none-any.whl.
File metadata
- Download URL: eds4jinja2-0.2.0-py3-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f09c470bd036ed7c6e600173c8523af957382eeca29be2cbed95917c25469e99
|
|
| MD5 |
fc7727b7dc7075dcb80c588d59b9a5f6
|
|
| BLAKE2b-256 |
5dc559ec4a82e3aac338cae258c0be5e5ba0bcfecaeaf4c02d476b4afa466afa
|