Skip to main content

ERBLite for Python

Sandboxed ERB-syntax templates (a subset of Ruby), with no runtime dependencies. See ../SPEC.md.

import erblite
erblite.render("Hi <%= name.upcase %>", {"name": "bob"})          # "Hi BOB"
erblite.render_file("cfg.erb", {"n": 1})                          # base_dir defaults to the file's dir
t = erblite.Template(src, filename="x.erb"); t.render(vars, base_dir="cfg", max_steps=100_000)

CLI: python -m erblite template.erb [--vars vars.json] [--base-dir DIR] [--max-steps N]

Tests: python3 -m venv .venv && .venv/bin/pip install -e . pytest ruff && .venv/bin/pytest && .venv/bin/ruff check erblite tests

Metadata

Release files for erblite 0.5.0

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

Source distribution (sdist)

Source distribution for erblite 0.5.0
File Size Uploaded
erblite-0.5.0.tar.gz 65.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for erblite 0.5.0
File Interpreter ABI Platform
erblite-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 136.5 kB

Release files / erblite-0.5.0.tar.gz

Download URL erblite-0.5.0.tar.gz
Size 65.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7286bb49057e303c2ffd90ef98959a9e24cfd958787d6ffc4e1222fa55e90db9
BLAKE2b-256 checksum
How to use checksums
01cf6fece4e1c149c578bd48a914df882d342f571ecea20f53d393afaa986422
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release files / erblite-0.5.0-py3-none-any.whl

Download URL erblite-0.5.0-py3-none-any.whl
Size 70.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35c93124028a07e37ba809099550c543cf8c776cdd66601cd9d5b98ee202d9d0
BLAKE2b-256 checksum
How to use checksums
463a02f219b68d37e82df3aa4e328838767083b60811fd44bf62f6283a5a28da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

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