Skip to main content

Websauna Jinja2 extension that adds a tag to generate secrets.

Project description

This is a Jinja2 extension required by Cookiecutter Websauna templates.

ci

cov

Supported Python versions

Latest Version

License

Installation

Using the same virtualenv where cookiecutter is installed install this extension executing pip install:

pip install websauna.j2secret

Usage

Extend the Cookiecutter environment with this custom Jinja2 extensions, that adds a tag named secret , specifing the websauna.j2secret extension in cookiecutter.json as follows:

{
    "authentication_random": "{% secret() %}",
    "authomatic_random": "{% secret() %}",
    "session_random": "{% secret() %}",
    "_extensions": ["websauna.j2secret.SecretExtension"]
}

Read more about Template Extensions for Cookiecutter.

Running the test suite

Install test and dev dependencies (run in the folder with setup.py):

pip install -e ".[test]"

Run test suite using py.test running:

py.test

More information

Please see https://websauna.org/

Changelog

1.0.0a1 (2017-10-16)

  • Implement Jinja2 tag secret to be used with Cookiecutter templates.

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

websauna.j2secret-1.0.0a1.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file websauna.j2secret-1.0.0a1.tar.gz.

File metadata

File hashes

Hashes for websauna.j2secret-1.0.0a1.tar.gz
Algorithm Hash digest
SHA256 42efafc2eb0c75bdd4420de35aa96be172dcf617f84565b25b6d80e07506263d
MD5 2f1feb9a2b8efde96b354c9309a5113a
BLAKE2b-256 877503e270084313384b47c99e810911e7e183c4676433e2b9e69276d7e806c7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page