Skip to main content

Jinja2 Extension for getting environment variables

Project description

jinja2-env

CI Status Documentation Status Test coverage percentage

Poetry black pre-commit

PyPI Version Supported Python versions License

Jinja2 Extension for getting environment variables

Installation

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

pip install jinja2-env

Usage

The extension class is jinja2_env.EnvExtension.

As a statement:

{% env "HOME" %}
{% env "HOME", default %}

As a expression:

{{ "default" | env("HOME") }}

Contributors ✨

Thanks goes to these wonderful people (emoji key):

34j
34j

💻 🤔 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

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

jinja2_env-0.1.3.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

jinja2_env-0.1.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file jinja2_env-0.1.3.tar.gz.

File metadata

  • Download URL: jinja2_env-0.1.3.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.11.2 readme-renderer/44.0 requests/2.32.3 requests-toolbelt/1.0.0 urllib3/2.2.3 tqdm/4.67.0 importlib-metadata/8.5.0 keyring/25.5.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.15

File hashes

Hashes for jinja2_env-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1a5b538bb4e4e0619ef66d668c5621c1354eb7c4e8ce363a394acd03c7941b97
MD5 0c10310fe5e9351bb789e76f10b154bf
BLAKE2b-256 2e5714f7d10fb9f0a25bb8bc921942cfe327f3edc9ea5dca20b798e787843723

See more details on using hashes here.

File details

Details for the file jinja2_env-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: jinja2_env-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.11.2 readme-renderer/44.0 requests/2.32.3 requests-toolbelt/1.0.0 urllib3/2.2.3 tqdm/4.67.0 importlib-metadata/8.5.0 keyring/25.5.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.15

File hashes

Hashes for jinja2_env-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c7b35edd2bedaf0569d4f729fe3ad5da1481b28977df3f69b938cea8593425f6
MD5 425dad0b2ef24ec82e28bf3e273ca27f
BLAKE2b-256 01e192e9a6bd10db2ede4ffbfb78e73c91e6af041bf4e1bf0d4109714dd34d3a

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