Skip to main content

Jinja2 PImport

Jinja2 Extension for Python Import keywords

So we don’t have to write a new jinja2 filter just for simple function.

It exposed a powerful weapon for shoot you feet, use it in your own risk!

Usage

Execute “echo hello” shell command and get the output

from jinja2 import Environment

env = Environment(extensions=['jinja2_pimport.PImportExtension'])
template = env.from_string("{{ ('subprocess'|pimport).check_output('echo hello', shell=True).strip().decode() }}")
template.render()
# => hello

License

Distributed under the terms of the MIT license, jinja2-pimport is free and open source software

OSI certified

Metadata

Release files for jinja2-pimport 0.1.8

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-pimport 0.1.8
File Size Uploaded Provenance Actions
jinja2-pimport-0.1.8.tar.gz 3.5 kB Without provenance Details for jinja2-pimport-0.1.8.tar.gz

Release files / jinja2-pimport-0.1.8.tar.gz

Download URL jinja2-pimport-0.1.8.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cd3743d2587b3dd53c85a09a0d8d8e5fda2644b456239b70fab604db89b21cf1
BLAKE2b-256 checksum
How to use checksums
47b8ec8d94ec3436ef994c5749da1e3c3eb24070ef9896a14bdaca897e3c85d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for jinja2-pimport 0.1.8

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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