Unicode to ASCII transliteration
Project Links
Meta
Author: Hunter WB
Requires Python: >=3.3
Classifiers
License
- OSI Approved :: ISC License (ISCL)
Programming Language
- Python :: 3 :: Only
Topic
- Text Processing :: General
- Text Processing :: Linguistic
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.3+ compatible
pip install anyascii
0.3.3
Jun 29, 2025
0.3.2
Mar 16, 2023
0.3.1
Apr 06, 2022
0.3.0
Sep 03, 2021
0.2.0
Apr 18, 2021
0.1.7
Oct 19, 2020
0.1.6
Jul 28, 2020
0.1.5
May 02, 2020
0.1.4
Mar 20, 2020
0.1.3
Feb 27, 2020
0.1.2
Feb 15, 2020
0.1.1
Jan 27, 2020
0.1.0
Jan 24, 2020
Wheel compatibility matrix
Files in release
No dependencies