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

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.

Project details


Download files

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

Source Distribution

eds4jinja2-0.3.1.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eds4jinja2-0.3.1-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file eds4jinja2-0.3.1.tar.gz.

File metadata

  • Download URL: eds4jinja2-0.3.1.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for eds4jinja2-0.3.1.tar.gz
Algorithm Hash digest
SHA256 9c9127f478c115e6319c9cf96d8e723d7ede29bbb70a964c97ef7f09e6f25a74
MD5 603044b8686fd9a052c6ee077ef15540
BLAKE2b-256 8ca599363e8bc5df8e020fa25cf274f7f3d981ab1ded57efb2b800676d48f566

See more details on using hashes here.

File details

Details for the file eds4jinja2-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: eds4jinja2-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 27.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for eds4jinja2-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aae4c1bf19637d0794004ea8655deeccb72797c5b5764a41fe5f6322155ad2a1
MD5 2bf02a54df1dcc3b0bd1f7a9b512dd7f
BLAKE2b-256 b0289d7ef8ee9d61aec6f66149cfcb166600a790c5c22ac32411416f87a2c6f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page