Jinja2 Extension for running shell commands
Project description
jinja2-shell
Jinja2 Extension for running shell commands.
Installation
Install this via pip (or your favourite package manager):
pip install jinja2-shell
Usage
As statement:
{% shell "echo 'Hello World'" %}
Hello World
As expression:
{{ "Hello World" | shell }}
Hello World
Do not strip newlines:
{{ shell("echo 'Hello World'", False) }}
Hello World\n
Contributors ✨
Thanks goes to these wonderful people (emoji key):
34j 💻 🤔 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
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
jinja2_shell-0.1.1.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for jinja2_shell-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84ff6986d8317436150578904b78278656d4f095e6e4af47c843f4e43535d48d |
|
MD5 | 086792a93f26addf12904319f1085c6b |
|
BLAKE2b-256 | 1c951cc7a8d0aa1d003552946d6e55dd159adaf33eb029f9a35009fd36368596 |