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.2.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.2.0
File Size Uploaded Provenance
pytexl-0.2.0.tar.gz 125.2 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for pytexl 0.2.0
File
pytexl-0.2.0-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details
pytexl-0.2.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
pytexl-0.2.0-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details
pytexl-0.2.0-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details
pytexl-0.2.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.2.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details
pytexl-0.2.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
pytexl-0.2.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.2.0.tar.gz

Download URL pytexl-0.2.0.tar.gz
Size 125.2 kB
Tags Source
SHA-256 checksum
How to use checksums
36bae0c41163db28cd47bf624264a776163873954c74cf9b87b7c736986c00ad
BLAKE2b-256 checksum
How to use checksums
3fc83c32d523cfd866cd7bb75e299e4dcda6f269ec1b9a375b7a0975f485bbf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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.2.0-cp310-abi3-win_arm64.whl

Download URL pytexl-0.2.0-cp310-abi3-win_arm64.whl
Size 524.4 kB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
ea8b100af777740221b39ed6454fdd292b52ddd73bccb6364d1ba61e1c002085
BLAKE2b-256 checksum
How to use checksums
8591407aa84d563885ac55b7d84ef0c20d2941a71c927c714407cbaab2cdb526
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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.2.0-cp310-abi3-win_amd64.whl

Download URL pytexl-0.2.0-cp310-abi3-win_amd64.whl
Size 553.4 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
f6cd58d1fbc7b4035ba0e6da346e874d02665e71cf790b29009129dd5430e863
BLAKE2b-256 checksum
How to use checksums
1076498c263fec149f3558f73e6fe5733a669816c18b744e11e35f14c836ed4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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.2.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL pytexl-0.2.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 902.7 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
9ee9f01dba5e197a2f5963adc3f7eb42258f451548524e8a08964122df501ed8
BLAKE2b-256 checksum
How to use checksums
965b4d519d6a4661c8af48aa9b73f895117f5eb313c592bf1a41bf9b43e13ac1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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.2.0-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL pytexl-0.2.0-cp310-abi3-musllinux_1_2_aarch64.whl
Size 859.8 kB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
74d35158cdc09afecc6b44ef88e6229f6b12599494c0e3b16d67fbdb1870f6c5
BLAKE2b-256 checksum
How to use checksums
4cd3b51278e74451064ead6a70f11ab76650057876f5adf71d99447891d79590
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pytexl-0.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 694.3 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
303d9b24a0e8dabfebd0dccf74e59fc3ebcef5b434f74887d9eaae1089d4438f
BLAKE2b-256 checksum
How to use checksums
38cb5df5c11cd7c57f75b0d3964874b2f2a0dbf479c53e9120cb524007c0db11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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.2.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL pytexl-0.2.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 681.8 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
ca50eb8162815a3d8c0795b123285a888c5e042ad23d781b9fb33449c48eca0b
BLAKE2b-256 checksum
How to use checksums
c0f78c5ec584f023e4185e213763114774e794e40147cbb9812dc0d7fcd475bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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.2.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL pytexl-0.2.0-cp310-abi3-macosx_11_0_arm64.whl
Size 626.1 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8cbcefd2c1e9fd903d1bd45977eb0971dc676c4aade7f3ffee06d1e5e36bf54d
BLAKE2b-256 checksum
How to use checksums
170235ff458af1c1895127ebc05ca7dd310a63ee20f04ac06f6306cd8846f2ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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.2.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL pytexl-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 633.0 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
f6b262e14dc9ba5760c5e883def59f43f901b6b8673bad8a685edbc0428766ce
BLAKE2b-256 checksum
How to use checksums
3c022b79e65d486e82682f325382b6c12e10ea7369fc58f4cef00c9632a2874a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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.2.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