Tangled Up in Unicode is a Python library, currently at version 0.2.0, that provides access to the Unicode Character Database (UCD). It serves as an alternative to Python's standard `unicodedata` module, offering the latest UCD versions and extended character properties. Releases are typically aligned with new Unicode Standard versions.
pip install tangled-up-in-unicodeVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to import and use `tangled-up-in-unicode` to retrieve character properties, including extended ones and aliases not available in the standard `unicodedata` module, and to check the UCD version.
Be aware of disk space consumption when including this library, especially in constrained environments or when creating many virtual environments. Consider if the full UCD data is necessary or if a more lightweight approach is feasible for specific use cases. Future versions may address this by changing data storage formats.
If your application relies on catching `IndexError` for unknown scripts, update your code to expect 'Unknown' for versions 0.0.7 and later. For backward compatibility, check the library version or explicitly handle both `IndexError` (for older versions) and the 'Unknown' string (for newer versions).
Install the library using `pip install tangled-up-in-unicode` and ensure the import is `import tangled_up_in_unicode` or `from tangled_up_in_unicode import UCD`.
First, create a `UCD` object: `from tangled_up_in_unicode import UCD; ucd = UCD()`. Then, call the method on the object: `ucd.name('A')`.Access the version using the correct attribute name: `ucd.ucd_version`.
Ensure the import statement uses the exact class name: `from tangled_up_in_unicode import UCD`.
No dependency data recorded yet.