hedron-native
Optional Rust acceleration for Hedron bulk HTML escaping.
Pure Python remains the semantic reference and Supported fallback. Absence of
the extension never changes public rendering semantics — hedron-core uses these
helpers when the package is installed and falls back otherwise.
Also available as the flagship extra hedron[native].
Package maturity: Beta (0.1.x) · pin >=0.1.2,<0.2 and expect churn
Install
pip install "hedron-native>=0.1.2,<0.2"
# or
uv add "hedron-native>=0.1.2,<0.2"
# via flagship:
pip install "hedron[native]>=0.28.1,<0.29"
Requires Python 3.11–3.14. Prebuilt wheels for the Supported matrix are built by native-wheels.yml (confirm on PyPI after publish);
if a wheel is unavailable, pip may build from the Rust source (requires a Rust
toolchain) or you can rely on the pure-Python path without this package.
Quick start
from hedron_native import (
escape_attr,
escape_attr_python,
escape_text,
escape_text_python,
native_available,
)
assert escape_text("<x>") == "<x>"
assert escape_attr('"') == """
# Always available, even when the extension did not load:
assert escape_text_python("<x>") == "<x>"
assert escape_attr_python('"') == """
print("native extension loaded:", native_available())
Public API
| Symbol | Role |
|---|---|
escape_text / escape_attr |
Prefer native when loaded; else Python |
escape_text_python / escape_attr_python |
Pure-Python reference |
native_available |
True when the Rust extension loaded |
__version__ |
Package version string |
Links
License
MIT. See the repository license.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hedron_native-0.1.2.tar.gz.
File metadata
- Download URL: hedron_native-0.1.2.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62d30b3362a61a7647e03b867cf796cca63ae7799bb40526ea69bae74f912332
|
|
| MD5 |
867e0fb7a724af9b1b71532ece3c3f19
|
|
| BLAKE2b-256 |
f0c17c5a11977d7f72091104eeea189727c43211944e255229a433c67eaf63c4
|
File details
Details for the file hedron_native-0.1.2-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: hedron_native-0.1.2-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 101.8 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a0c1627a550e181ab1bcfe4d6f8f1b4e13e431a2ca0a95bf583ce619c533af2
|
|
| MD5 |
2a10ec323d28fa62970b587f5a20eb50
|
|
| BLAKE2b-256 |
2c966d07ac69fcd0c364d380e641a64ff1bad509a26e89a5574473ca5589a15a
|
File details
Details for the file hedron_native-0.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: hedron_native-0.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 229.1 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f28bcc58864adbce4b2f2c8bfc147315e90196af5cce676f160cc78be26d1a5
|
|
| MD5 |
b788994f83f75417b2619a43fbe33ec5
|
|
| BLAKE2b-256 |
a092c55f5eeb3bcb5429c275e2db16d62a2a40b98878fccc0fb5910d61c1f54f
|
File details
Details for the file hedron_native-0.1.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: hedron_native-0.1.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 222.5 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98c0aec371cf1b9f835d87adf417d32a24ea4398da0395e117d39a70a2489a17
|
|
| MD5 |
d9c4867c3995f12f06d2bd6f4d8b9aa4
|
|
| BLAKE2b-256 |
8e65103d915bfa27e807005332821d28178a64312ee1b1cbd63014f9f1a22d7c
|
File details
Details for the file hedron_native-0.1.2-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: hedron_native-0.1.2-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 199.3 kB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f686423c55f0a097aef525130ac135114178f2ee64fd71399c2016fd3d91e12a
|
|
| MD5 |
d5ef103cf1743f3ff059106433ea3fc5
|
|
| BLAKE2b-256 |
52558f5210c8fc8434a223f8fd3947821b43110cbd56375766597716a479eb8e
|
File details
Details for the file hedron_native-0.1.2-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: hedron_native-0.1.2-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 101.7 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa551348d3c2e642407e3c327bc9e59fb3c44c7c66f778e1a3c4eec9651018ca
|
|
| MD5 |
cd7779306625849635b8171facb5323e
|
|
| BLAKE2b-256 |
409ed28f9f97d5c19786f6106053a17ec2663962ecceef0c6f3d5669f2e4c77f
|
File details
Details for the file hedron_native-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: hedron_native-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 229.0 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81117fa3a61337ae0877c75433933cce35655e99b3180a61843a871c244d872c
|
|
| MD5 |
a5c3601d6b8220953467fdc32ef6371e
|
|
| BLAKE2b-256 |
8b994130fa0e58ec9dc09a58e5ff47eb673cfb7f9f2316903b1edb24d68cc242
|
File details
Details for the file hedron_native-0.1.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: hedron_native-0.1.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 222.6 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06fdf1caf9ec18c09246997ff7165468ca1ef2237dba6f3620c483ec2f2d81b0
|
|
| MD5 |
ab3509d41854a51bacfe0cfa68c2257e
|
|
| BLAKE2b-256 |
fadc56fb9ab4e756896db3ba7c076702d83f33d2552d517662871cb4c0e902b6
|
File details
Details for the file hedron_native-0.1.2-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: hedron_native-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 198.9 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e8b514c66dbc6c65fc539a9908b5627a9e2aa313a8320d83d6b8e5b7145cb7b
|
|
| MD5 |
75959945d039b132d826f5c8066e659c
|
|
| BLAKE2b-256 |
7c83ca6f9df59cac041d5e7bfe81d0716c53029b008f54692a55421c328d5c72
|
File details
Details for the file hedron_native-0.1.2-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: hedron_native-0.1.2-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 103.0 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29619dcb31c7825144dc814fb1d02eddaa3db8efc47272e3f9cb2c90c0b80e0e
|
|
| MD5 |
6782a19c73004717c54de07713e5366d
|
|
| BLAKE2b-256 |
4c6715ea229209c250523f11c6567f8798ff79024a5926282419c38fe7e4fce9
|
File details
Details for the file hedron_native-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: hedron_native-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 230.7 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47fcf8cd8eb9f47b519896901f242516954cc2f46680bb71db42ce6085c5634c
|
|
| MD5 |
d5a3f63350a03704b888443255dc7416
|
|
| BLAKE2b-256 |
f80e2411a7c97b94c4aae923c3acc7ac1322a44f6993d6d8307340560703550a
|
File details
Details for the file hedron_native-0.1.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: hedron_native-0.1.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 224.1 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65cdc7568f3f44e5834274b334c4e71c6b2199457cfae2e8a16363a426ddae7d
|
|
| MD5 |
06529681cfc017e24092413c38b8faf3
|
|
| BLAKE2b-256 |
4d09873adf9c8c8d6ef6c288c155823ed60a1e8fa500abff77891bd78a1249ff
|
File details
Details for the file hedron_native-0.1.2-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: hedron_native-0.1.2-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 200.6 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a5e355293a63d30bba86479fa81439fe0083c4955cc374b2a88e621d7b98898
|
|
| MD5 |
2aa2de0e5a171221f3985c0159360761
|
|
| BLAKE2b-256 |
e32971a7d7eae3fdc2df874c957cb0d52b505bd3c3298ecf50444ea42b14aa51
|