Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/34j/jinja2-env

Jinja2 Extension for getting environment variables
https://github.com/34j/jinja2-env

environment-variables jinja2 jinja2-extension

Last synced: 2 months ago
JSON representation

Jinja2 Extension for getting environment variables

Awesome Lists containing this project

README

        

# 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):

```shell
pip install jinja2-env
```

## Usage

The extension class is `jinja2_env.EnvExtension`.

As a statement:

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

As a expression:

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

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):



34j
34j

💻 🤔 📖

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!