Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jinja2-base64-filters

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jinja2-base64-filters

Tiny jinja2 extension to add b64encode and b64decode filters.

  • 0.1.4
  • PyPI
  • Socket score

Maintainers
1

jinja2_base64_filters

.. image:: https://img.shields.io/pypi/v/jinja2_base64_filters.svg :target: https://pypi.python.org/pypi/jinja2_base64_filters :alt: Latest PyPI version

Tiny jinja2 extension to add b64encode and b64decode filters.

Usage

.. code-block:: python

    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 <timothee@lumapps.com>_.

This package was created with Cookiecutter_ and the kragniz/cookiecutter-pypackage-minimal_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter .. _kragniz/cookiecutter-pypackage-minimal: https://github.com/kragniz/cookiecutter-pypackage-minimal.git

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc