jinja2-eval
Jinja2 Extension for getting eval() result.
Installation
Install this via pip (or your favourite package manager):
pip install jinja2-eval
Usage
Basic usage:
{% eval "1 + 1" %}
{{ "1 + 1" | eval }}
2
2
Importing modules:
{% eval "exec('import math') or math.pi" %}
{{ "exec('import math') or math.pi" | eval }}
3.141592653589793
3.141592653589793
Contributors ✨
Thanks goes to these wonderful people (emoji key):
34j 💻 🤔 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Metadata
Release files for jinja2-eval 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jinja2_eval-0.1.2.tar.gz | 7.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jinja2_eval-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.4 kB
Release files / jinja2_eval-0.1.2.tar.gz
| Download URL | jinja2_eval-0.1.2.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ad72941a8882123ae3065081ee943566cee87692f9db0ff29d46c8c1e0bdbe1
|
|
BLAKE2b-256 checksum How to use checksums |
6182d8eaa433143a1e3e25c0bf04c53ee3d341e0b1033bf7a7eeb03fa187b3f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / jinja2_eval-0.1.2-py3-none-any.whl
| Download URL | jinja2_eval-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62e9a87867c5c47070be17a122ba4ea0bc65f861d3752cc993add78a388ab591
|
|
BLAKE2b-256 checksum How to use checksums |
aad70e3edb138bd4763612642b8c195d096bc74e093b98b94ec116b2bec12415
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|