AnyAscii
Unicode to ASCII transliteration
Converts Unicode characters to their best ASCII representation
AnyAscii provides ASCII-only replacement strings for practically all Unicode characters. Text is converted character-by-character without considering the context. The mappings for each script are based on popular existing romanization systems. Symbolic characters are converted based on their meaning or appearance. All ASCII characters in the input are left unchanged, every other character is replaced with printable ASCII characters. Unknown characters and some known characters are replaced with an empty string and removed.
from anyascii import anyascii
s = anyascii("άνθρωποι")
assert s == "anthropoi"
Python 3.10+ compatible
pip install anyascii-rs
This is a Rust-backed fork of AnyAscii
published as anyascii-rs. It installs the same anyascii import package, so
it replaces the original anyascii distribution; do not install both in one
environment.
On supported platforms, pip selects a Rust-backed wheel for standard CPython 3.10 and later and for free-threaded CPython 3.14 and 3.15. The native module declares that it does not need the GIL, so importing it keeps the GIL disabled on free-threaded builds. The universal Python wheel supports Python 3.10 and later, including environments without a compatible native wheel. Subinterpreters use the pure Python implementation bundled in the wheel.
Benchmark
This table compares Unidecode 1.4.0, anyascii 0.3.3 and anyascii-rs. The values show the time for one call. A lower value is better. The last column shows how many times faster anyascii-rs is than anyascii 0.3.3. Each mixed text contains the short samples, one after the other. The test repeats this text and cuts it to the given length.
| Sample | Characters | Unidecode 1.4.0 | anyascii 0.3.3 | anyascii-rs | Speedup vs anyascii 0.3.3* |
|---|---|---|---|---|---|
| ASCII | 90 | 58 ns | 37 ns | 33 ns | 1.1× |
| Latin | 62 | 4.7 µs | 2.8 µs | 185 ns | 14.9× |
| Cyrillic | 57 | 8.5 µs | 4.8 µs | 309 ns | 15.4× |
| Greek | 34 | 5.4 µs | 3.0 µs | 238 ns | 12.5× |
| Chinese | 19 | 3.5 µs | 2.0 µs | 242 ns | 8.1× |
| Japanese | 26 | 4.4 µs | 2.4 µs | 232 ns | 10.2× |
| Emoji | 26 | 2.9 µs | 1.5 µs | 230 ns | 6.7× |
| Small mixed text | 100 | 6.4 µs | 3.9 µs | 188 ns | 20.9× |
| Medium mixed text | 1,000 | 106 µs | 60.5 µs | 2.4 µs | 24.9× |
| Long mixed text | 5,000 | 539 µs | 305 µs | 11.8 µs | 25.9× |
| Very long mixed text | 150,000 | 16.0 ms | 8.9 ms | 346 µs | 25.8× |
* This is the speedup after anyascii 0.3.3 has been warmed up. anyascii 0.3.3 loads its data for each block of characters on the first use. Thus, the first call for a new block is slower.
We did the test with Python 3.13 on Apple Silicon. Each value is the best result of 7 runs. For ASCII text, all three libraries return the input string unchanged. Thus, the times are almost the same.
Building distributions
Run python -m build from impl/python to build the universal wheel and source
archive. From impl/python in a full checkout, run
maturin build --release --locked --interpreter python with Rust 1.85 or later,
maturin 1.16, and standard CPython 3.10 or later. With a free-threaded
interpreter, the same command builds a version-specific wheel, such as
cp314-cp314t, instead of the abi3 wheel. The Python workflow builds and tests
abi3 wheels and free-threaded wheels for CPython 3.14 and 3.15 on Linux (glibc)
and macOS on x86-64 and ARM64, and Windows on x86-64.
After an in-place native build with maturin develop, use python -m build
to build the universal wheel from the source archive. The archive excludes
the compiled extension.
When bumping the Python version, update pyproject.toml and
anyascii.__version__ together. After bumping the Rust crate version, run
cargo update --workspace --manifest-path native/Cargo.toml from impl/python
to refresh the native wheel's lockfile.
Metadata
Release files for anyascii-rs 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| anyascii_rs-0.3.4.tar.gz | 274.7 kB | With provenance | Details for anyascii_rs-0.3.4.tar.gz |
Built distributions (wheels)
Total release size: 12.6 MB
Release files / anyascii_rs-0.3.4.tar.gz
| Download URL | anyascii_rs-0.3.4.tar.gz |
|---|---|
| Size | 274.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
929e1c0e405f0cf1500f8b38ba447ae14ca32cfeb7d8faae22225bd3ba92554e
|
|
BLAKE2b-256 checksum How to use checksums |
c2e515e8bc04feb51f8d7cf890ee5dcbe8a56102e6203e020bdda1df0f2eedc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / anyascii_rs-0.3.4-cp315-cp315t-win_amd64.whl
| Download URL | anyascii_rs-0.3.4-cp315-cp315t-win_amd64.whl |
|---|---|
| Size | 735.1 kB |
| Tags | CPython 3.15 CPython 3.15 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
fbbbdefca1da5c5ce02f896881549e1e16050cee9d253102a72a0134554d6ad8
|
|
BLAKE2b-256 checksum How to use checksums |
a42848ea37b22f8dc243f5e6c1374195c0711e0ab803eef241d2c26024ffbea5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / anyascii_rs-0.3.4-cp315-cp315t-manylinux_2_28_x86_64.whl
| Download URL | anyascii_rs-0.3.4-cp315-cp315t-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 849.6 kB |
| Tags | CPython 3.15 CPython 3.15 free-threading Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
128f29729f0b4d08c073236bfcf34c300241b92a46b9f379293bfc00c7383ef0
|
|
BLAKE2b-256 checksum How to use checksums |
9ae4bf444a01d7cadedaae01609787042db21db8ecb29631f092b8bd6977ebce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / anyascii_rs-0.3.4-cp315-cp315t-manylinux_2_28_aarch64.whl
| Download URL | anyascii_rs-0.3.4-cp315-cp315t-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 854.0 kB |
| Tags | CPython 3.15 CPython 3.15 free-threading Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
9ae536e8715270f9eaa813e5cb515d49312d6f1da8d374c122494b7d52501366
|
|
BLAKE2b-256 checksum How to use checksums |
5b377def5d2fccec762438ab59b2b43f7cdb833a9208397d1a900fba5c1f3f32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / anyascii_rs-0.3.4-cp315-cp315t-macosx_11_0_x86_64.whl
| Download URL | anyascii_rs-0.3.4-cp315-cp315t-macosx_11_0_x86_64.whl |
|---|---|
| Size | 835.6 kB |
| Tags | CPython 3.15 CPython 3.15 free-threading macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
b3aabf37ebfa3e651700e24e162923a51e4ff5487a22d7703cabeacb00fcce1d
|
|
BLAKE2b-256 checksum How to use checksums |
2dd57bf135b115f4db2c077e56689868e69dedcc4fb6a531a052042b3271ef74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / anyascii_rs-0.3.4-cp315-cp315t-macosx_11_0_arm64.whl
| Download URL | anyascii_rs-0.3.4-cp315-cp315t-macosx_11_0_arm64.whl |
|---|---|
| Size | 836.6 kB |
| Tags | CPython 3.15 CPython 3.15 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
53e0000b2b35aeba753d1e1945ae4a34a05fae2cdcd99899a77f9f61d83b0653
|
|
BLAKE2b-256 checksum How to use checksums |
d6c1d57bc812ac8d2c085e76efc74414b793bea7a1144d5430c4acd2af703a5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / anyascii_rs-0.3.4-cp314-cp314t-win_amd64.whl
| Download URL | anyascii_rs-0.3.4-cp314-cp314t-win_amd64.whl |
|---|---|
| Size | 735.0 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6f55b4df07274b139083f39f2587cdfcf1f23f81c7c4582756ef895dea4d9b87
|
|
BLAKE2b-256 checksum How to use checksums |
8863ee52bc0664d142c6a4e64342aaf803b76dd27df16ff86639a2d6116e0a30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / anyascii_rs-0.3.4-cp314-cp314t-manylinux_2_28_x86_64.whl
| Download URL | anyascii_rs-0.3.4-cp314-cp314t-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 849.3 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
fba7ea0740f5c07536d82a6f5c6a762196268dae395d1ac756b6e2deb443c4d6
|
|
BLAKE2b-256 checksum How to use checksums |
64e7e95e4d9a1a1905c5de37af3fab8fa0a357e3118441b65999cee3746429f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / anyascii_rs-0.3.4-cp314-cp314t-manylinux_2_28_aarch64.whl
| Download URL | anyascii_rs-0.3.4-cp314-cp314t-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 853.7 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
be1f7e8ffb79262a11c3de4374f9cdf54e084ff12b3bd7ee998e7b556a7efb02
|
|
BLAKE2b-256 checksum How to use checksums |
1c0f1461bf3211be4968cd52c95a4a0fff0dd39c401b1517dca1957f1b50ee8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / anyascii_rs-0.3.4-cp314-cp314t-macosx_11_0_x86_64.whl
| Download URL | anyascii_rs-0.3.4-cp314-cp314t-macosx_11_0_x86_64.whl |
|---|---|
| Size | 835.5 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
ded470935b2825c98a5eb8aaa8208af05793621252bca5ece7b3978ff8bc0637
|
|
BLAKE2b-256 checksum How to use checksums |
653638d5c6a957a265d41c44940e589d64b4f33d6f86a85b170cef78634158a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / anyascii_rs-0.3.4-cp314-cp314t-macosx_11_0_arm64.whl
| Download URL | anyascii_rs-0.3.4-cp314-cp314t-macosx_11_0_arm64.whl |
|---|---|
| Size | 836.4 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
4c772160efed0933aa148a4ad8324c8691ea483d99070713aad672b1b3913fb6
|
|
BLAKE2b-256 checksum How to use checksums |
d61edef7a50e3c0dccb81c92c869f4ba14f4cd8e3b8a92fd2fe6665cef95480c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / anyascii_rs-0.3.4-cp310-abi3-win_amd64.whl
| Download URL | anyascii_rs-0.3.4-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 736.7 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
663a9f852b556291bf5e41579aa1867a62ba3fc302e03624eabf1042c9727475
|
|
BLAKE2b-256 checksum How to use checksums |
9dd725953d9f6aa0dad2f1726dd30b7c9a1dc3f1a7200eb7a0a9e9039f061a25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / anyascii_rs-0.3.4-cp310-abi3-manylinux_2_28_x86_64.whl
| Download URL | anyascii_rs-0.3.4-cp310-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 853.3 kB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
68230f58a1aa8d7b92d356dc2dee52c75001b4aae1a118a2c8fc30957aeb0675
|
|
BLAKE2b-256 checksum How to use checksums |
b46e585cbcea12e32abadc2ea89ec4f4bd8b636cf241e9268cc6a6cdf97c0fae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / anyascii_rs-0.3.4-cp310-abi3-manylinux_2_28_aarch64.whl
| Download URL | anyascii_rs-0.3.4-cp310-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 858.0 kB |
| Tags | CPython 3.10 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
383f01817b8c1763ab1f804dcef5a61592374fb0fda65b2734cbe4fe19ca8bd2
|
|
BLAKE2b-256 checksum How to use checksums |
1ab17d839040b38976016879ff2154d73b1146d7a9ce91f0e032d89ed90ce7ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / anyascii_rs-0.3.4-cp310-abi3-macosx_11_0_x86_64.whl
| Download URL | anyascii_rs-0.3.4-cp310-abi3-macosx_11_0_x86_64.whl |
|---|---|
| Size | 837.9 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
a693e643f64afe3a1f211cab7876a85c3e4b84cb2788918b5232cd1badb7d64e
|
|
BLAKE2b-256 checksum How to use checksums |
5849a10f71a33141fd78f598ed621e1c594c1b8211a3b5b55ae363370323b776
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / anyascii_rs-0.3.4-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | anyascii_rs-0.3.4-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 839.4 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f72aa191f40a4ce0aa38329d65a98b48dc46de8d12234697496fcb012f3c5f21
|
|
BLAKE2b-256 checksum How to use checksums |
93f1fce33617c97c9724f98e7f1dce14e169e1ebee11885a27a859b6d2f42834
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logSecurity for anyascii-rs 0.3.4
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.
Full provenance
All 16 files in this release have been uploaded with provenance metadata.
Attestation for anyascii_rs-0.3.4.tar.gz
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 Nov 23, 2026.
Transparency logA 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.