Skip to main content

jinja2-shell

CI Status Documentation Status

Test coverage percentage uv Ruff prek

PyPI Version Supported Python versions License


Documentation: https://jinja2-shell.readthedocs.io

Source Code: https://github.com/34j/jinja2-shell


Jinja2 Extension for getting eval() result.

Installation

Install this via pip (or your favourite package manager):

pip install jinja2-shell

Usage

The extension class is jinja2_shell.ShellExtension.

If the second argument is True (default), the output is stripped of trailing whitespace and newlines. (a\n\b \n -> a\nb)

As a statement:

{% shell "echo Hello World" %}
{% shell "echo Hello World", False %}

As a expression:

{{ "echo Hello World" | shell }}
{{ "echo Hello World" | shell(False) }}

Metadata

Release files for jinja2-shell 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jinja2-shell 1.0.0
File Size Uploaded Provenance Actions
jinja2_shell-1.0.0.tar.gz 6.6 kB With provenance Details for jinja2_shell-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jinja2-shell 1.0.0
File Interpreter ABI Platform Actions
jinja2_shell-1.0.0-py3-none-any.whl Python 3 none any Details for jinja2_shell-1.0.0-py3-none-any.whl

Total release size: 13.1 kB

Release files / jinja2_shell-1.0.0.tar.gz

Download URL jinja2_shell-1.0.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
72c301f5d261ce6e18625a6730ee5e7fe35c2f7a9216669bde9060de9be7a0cb
BLAKE2b-256 checksum
How to use checksums
0b1dd6e2c967ae2229e6d32fbc6b8b3e9ed76409f03f004f92e6e89d7df9c943
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / jinja2_shell-1.0.0-py3-none-any.whl

Download URL jinja2_shell-1.0.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a38071879c88ffbfe1740994b077f351779a8a95d6fad6c997697eef4004cbcb
BLAKE2b-256 checksum
How to use checksums
cae004ea511d927b0abe2ff30433e8b97cb501f1ba25a49db58b2af58433bfed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Security for jinja2-shell 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for jinja2_shell-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page