Skip to main content

Tiny jinja2 extension to add b64encode and b64decode filters.

Project description

Latest PyPI version

Tiny jinja2 extension to add b64encode and b64decode filters.

Usage

from jinja2_base64_filters import jinja2_base64_filters
from jinja2 import Environment

env = Environment(extensions=["jinja2_base64_filters.Base64Filters"])

# "my_string" -> "bXlfc3RyaW5n"
env.from_string("{{teststring|b64encode}}").render(teststring="my_string")

# "bXlfc3RyaW5n" -> "my_string"
env.from_string("{{teststring|b64decode}}").render(teststring="bXlfc3RyaW5n")

Installation

jinja2_base64_filters is available for download from PyPI via pip:

$ pip install jinja2-base64-filters

It will automatically install jinja2

Requirements

Compatibility

Licence

  • Free software: MIT license

Authors

jinja2_base64_filters was written by Timothée GERMAIN.

This package was created with Cookiecutter and the kragniz/cookiecutter-pypackage-minimal project template.

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_base64_filters-0.1.4.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

jinja2_base64_filters-0.1.4-py2-none-any.whl (3.6 kB view details)

Uploaded Python 2

File details

Details for the file jinja2_base64_filters-0.1.4.tar.gz.

File metadata

  • Download URL: jinja2_base64_filters-0.1.4.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.16

File hashes

Hashes for jinja2_base64_filters-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f5f5d3e0476c4918ab3266093e8757918aed7cc47dab12338f9bda048cdbacd9
MD5 cf217b083b26d96f492fe007aad4fef8
BLAKE2b-256 848547bb9c15bd36d7ff752e887203d8db7c79459369a2d28384d9febcd5373c

See more details on using hashes here.

File details

Details for the file jinja2_base64_filters-0.1.4-py2-none-any.whl.

File metadata

  • Download URL: jinja2_base64_filters-0.1.4-py2-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.16

File hashes

Hashes for jinja2_base64_filters-0.1.4-py2-none-any.whl
Algorithm Hash digest
SHA256 d007d543a9ce1e66a7a65645eef9100bc21a5d060a60b193fa4d4c4239bb3a86
MD5 f15ed391aadb1d83de3a9bceed979fa1
BLAKE2b-256 fccf2f75c88e204c83cbf96efa8780cd66fb8ba4169889f9502b8f0536fd5ddc

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