Skip to main content

pytexl

The Python library of Texl: renders text templates with Swan expressions, loads documents from local files and over HTTP(S), and lets templates call your Python functions, async ones included.

pip install maturin
maturin build --release -m pytexl/Cargo.toml   # builds a wheel into target/wheels
pip install target/wheels/pytexl-*.whl
import asyncio
import pytexl

engine = pytexl.Engine({"user": {"name": "Ada"}})
print(asyncio.run(engine.render("Hello <% user.name %>!")))   # Hello Ada!

See the Python API reference. The docstrings of the pytexl package document the same API.

Layout

Path Contents
src/ The native module pytexl._pytexl (PyO3), on top of texl-core
python/pytexl/ The Python package: Engine, Context, Document, the loaders
tests/ The Python unit tests, their fixtures, and the cargo test that runs them

Tests

cargo test -p pytexl --test python          # builds the module and runs the Python tests

The cargo test needs python3 (3.10 or later) with its development files; it is skipped, with a message, if Python is missing. Set PYTEXL_PYTHON to pick an interpreter. In a virtual environment with the package installed (maturin develop), run the tests directly:

python -m unittest discover -s pytexl/tests -v

License

MIT

Metadata

Release files for pytexl 0.3.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 pytexl 0.3.0
File Size Uploaded Provenance
pytexl-0.3.0.tar.gz 126.5 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for pytexl 0.3.0
File
pytexl-0.3.0-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details
pytexl-0.3.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
pytexl-0.3.0-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details
pytexl-0.3.0-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details
pytexl-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details
pytexl-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details
pytexl-0.3.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
pytexl-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details

Total release size: 5.6 MB

Release files / pytexl-0.3.0.tar.gz

Download URL pytexl-0.3.0.tar.gz
Size 126.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e108210c58e1151ee7e4491068e850763215b25f8bbb90f827b772e8528ead47
BLAKE2b-256 checksum
How to use checksums
e610a355dc45ff72e1f315d0b52fd0eaaa3e6f4f2941b2c62681d24fff21b504
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pytexl-0.3.0-cp310-abi3-win_arm64.whl

Download URL pytexl-0.3.0-cp310-abi3-win_arm64.whl
Size 525.3 kB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
4874e2926d578f922bca3f461b1bb66232b9b0eef1dd8a38d5ccb62605fca006
BLAKE2b-256 checksum
How to use checksums
92fa67411ae9085096b9ee23416e1f98c842adb38f5145ba9d300eab462d9549
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pytexl-0.3.0-cp310-abi3-win_amd64.whl

Download URL pytexl-0.3.0-cp310-abi3-win_amd64.whl
Size 554.5 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
9f4c688d3e43f3fec1017c6a5d78ebc8125953d18f7005fefec9557c017cbfdc
BLAKE2b-256 checksum
How to use checksums
90158162ebd6b38e788e60cc3dedcf853f193bf99fcd9df45ffd4c15421ae6ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pytexl-0.3.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL pytexl-0.3.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 902.9 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
bd496219b65f7dde32ccf8581e51477a5fc40740e7255359b9b8a438559d0f0c
BLAKE2b-256 checksum
How to use checksums
9a9389193603a10dbecb9747872874ac29e9d29046aa4b0d21dbbea809bf5288
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pytexl-0.3.0-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL pytexl-0.3.0-cp310-abi3-musllinux_1_2_aarch64.whl
Size 859.4 kB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
733c2abeff747645dd484f9ee6e37f8c138baf9fd20cf986ee21fd9a2fe187c1
BLAKE2b-256 checksum
How to use checksums
5899e7b02a8c782a499e4570e0bdcd31fa59175bc8ed0761311b230f677d1f3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pytexl-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pytexl-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 695.5 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
3795e381b8b2b19ed2f6e890501dfde4c68b1bf68e268409dc036f16384d5267
BLAKE2b-256 checksum
How to use checksums
073eefdff078f7b783d9f045c9bb62925616410d58c91c9ba0ce08f9b444d561
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pytexl-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL pytexl-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 682.0 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
473ff8a6c687ebfb454f97563863a5c66b6dbc89e07871aa0dab91aa23489875
BLAKE2b-256 checksum
How to use checksums
4e455f0a69ef7e04df7a988f4e49c3a6c60542212f13e3cc06327fd703078053
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pytexl-0.3.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL pytexl-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
Size 626.9 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
41347b5bb78873ef9b59153d301b1e51278423805e4268aaa54fa9a14e5517b7
BLAKE2b-256 checksum
How to use checksums
af4f2224c5b8eae7871f01fc7a92ce26619afce1f064949f9411e2bbdd07dbbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pytexl-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL pytexl-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 633.6 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
62c8dc09eefbd327f983fe9556254705233674ca24998f9b24c3f1c4d1492658
BLAKE2b-256 checksum
How to use checksums
24f510ceb2fa47c26167b6703b8fbac9a8d18e23248ebff3cd9855076feae101
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pytexl 0.3.0

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.

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