Skip to main content

Fluxa

A high-performance template engine for Python written on top of minijinja

License Python

Fluxa is a fork of MiniJinja by Armin Ronacher, enhanced with additional features for modern Python applications.

What's Different from MiniJinja?

This fork adds several features:

  • Native Async Support - True async rendering with pyo3-async-runtimes + tokio (not ThreadPoolExecutor)
  • OrJSON Integration - Fast JSON serialization/deserialization
  • Pydantic Integration - Type-safe context validation
  • Sandbox Mode - Secure template rendering with attribute blocking
  • Debug Function - Template debugging utilities
  • i18n/Gettext - Full internationalization support

Installation

pip install fluxa

# With optional dependencies
pip install fluxa[fast]      # orjson for faster JSON
pip install fluxa[pydantic]  # pydantic support
pip install fluxa[all]       # everything

Quick Start

from fluxa import Environment

env = Environment()
result = env.render_str("Hello {{ name }}!", name="World")
print(result)  # "Hello World!"

Async Support

from fluxa import AsyncEnvironment

async with AsyncEnvironment() as env:
    result = await env.render_str_async("Hello {{ name }}!", name="World")

Sandbox Mode

from fluxa import SandboxedEnvironment

env = SandboxedEnvironment()
# Blocks: __class__, __mro__, __globals__, _private attributes
result = env.render_str("{{ user.name }}", user={"name": "Alice"})

Project Structure

  • fluxa/ - Python bindings (enhanced from minijinja-py)
  • minijinja/ - Core template engine (Rust)
  • minijinja-contrib/ - Additional utilities

License

Apache-2.0 (same as MiniJinja)

Credits

Metadata

Release files for fluxa 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fluxa 0.1.1
File Size Uploaded Provenance Actions
fluxa-0.1.1.tar.gz 292.8 kB Without provenance Details for fluxa-0.1.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for fluxa 0.1.1
File Interpreter ABI Platform Actions
fluxa-0.1.1-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details for fluxa-0.1.1-cp38-abi3-win_amd64.whl
fluxa-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 abi3 Linux glibc 2.17+ x86-64 Details for fluxa-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
fluxa-0.1.1-cp38-abi3-macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 11.0+ ARM64 Details for fluxa-0.1.1-cp38-abi3-macosx_11_0_arm64.whl

Total release size: 4.0 MB

Release files / fluxa-0.1.1.tar.gz

Download URL fluxa-0.1.1.tar.gz
Size 292.8 kB
Tags Source
SHA-256 checksum
How to use checksums
744578fa84251a11e54a46cf6ad28799b32616e5ed19598174112f5dddf5fda7
BLAKE2b-256 checksum
How to use checksums
0100122b16d248780d7ac6ab52f14787caf434020b59f557c94875477e430f7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / fluxa-0.1.1-cp38-abi3-win_amd64.whl

Download URL fluxa-0.1.1-cp38-abi3-win_amd64.whl
Size 1.2 MB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
28d69645cb9e096797dfe9ee39f08063fdae34bdb5b37457df999147ef72dbf1
BLAKE2b-256 checksum
How to use checksums
501f22d868c5c61af0d2811a8aae58b6f3be871cd25479b4bc943b9edc731cc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / fluxa-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL fluxa-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.3 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
56e137054117007fd0baf5780007c12c42ac39e507f3b4374ab65d08bd3a72f0
BLAKE2b-256 checksum
How to use checksums
bbb88aa59e24f07831a223c4e84991c65bb028dce531491f13b582ee6145e942
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / fluxa-0.1.1-cp38-abi3-macosx_11_0_arm64.whl

Download URL fluxa-0.1.1-cp38-abi3-macosx_11_0_arm64.whl
Size 1.2 MB
Tags CPython 3.8 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7c1f763e34684385799eac3e964135ab80819652645364eb6152fdb7bf184f81
BLAKE2b-256 checksum
How to use checksums
3fd98a71e6d61ee5566f0268c0970b7aa05289f35b6577768d4d31e6180e2dc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for fluxa 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

4 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page