pyuca
a Python implementation of the Unicode Collation Algorithm
Decision gist · record as of 2026-08-14
Yes. pyuca is a stable, actively maintained implementation of a well-defined standard with zero dependencies, no security vulnerabilities, and permissive licensing. Install it if you need correct multilingual string sorting; it solves a real problem that Python's default sort does not. The last release was 2017, but the repository remains active and the algorithm is mature—this is not a red flag for a standards-based library.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with no runtime dependencies.
- Actively maintained as of 2026-07-25 with stable status and 226 repository stars.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) on Python code; allkeys.txt data file carries a similar license. No restrictions on commercial or proprietary use.
last release 2017-09-25 (3245 days) · last repo commit 2026-07-25 · 226 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 276,705 downloads/mo, #8,159 on PyPI
Alternatives
Verify before relying
pip install pyuca
from pyuca import Collator
c = Collator()
sorted(["cafe", "caff", "café"], key=c.sort_key)- Whether Unicode 10.0.0 support (Python 3.7+) extends to newer Python versions released after 2017
- Performance characteristics on large datasets or real-world multilingual corpora
What it is and what it does
pyuca is a Python implementation of the Unicode Collation Algorithm (UCA), the standard method for sorting text in multiple languages and scripts. It passes conformance tests for Unicode versions from 5.2.0 through 10.0.0 depending on your Python version, and handles the linguistic nuances that plain string sorting misses: accents, diacritics, language-specific letter orderings (like Spanish ch), and character expansions (like German ä sorting as ae).
You use it by creating a Collator instance and passing its sort_key method to Python's sorted() function. For example, café correctly sorts before caff when using the collator, whereas standard sorting would place caff first. The package has no runtime dependencies and installs as a pure Python wheel, making it lightweight and portable.
Use it for
- Sort user-facing lists (names, cities, products) in multilingual applications where accent and diacritic handling matters.
- Build search and filter systems that respect language-specific collation rules for better UX.
- Process linguistic or historical text data that requires proper Unicode-aware ordering.
- Implement locale-independent sorting in databases or APIs serving international users.
- Handle Spanish, German, French, and other language-specific letter orderings in sorted output.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
pyuca is a stable, actively maintained implementation of a well-defined standard with zero dependencies, no security vulnerabilities, and permissive licensing. Install it if you need correct multilingual string sorting; it solves a real problem that Python's default sort does not. The last release was 2017, but the repository remains active and the algorithm is mature—this is not a red flag for a standards-based library.
Install
pyuca on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Actively maintained as of 2026-07-25 with stable status and 226 repository stars.
License in practice
MIT license (permissive) on Python code; allkeys.txt data file carries a similar license. No restrictions on commercial or proprietary use.
Quickstart
pip install pyuca
from pyuca import Collator
c = Collator()
sorted(["cafe", "caff", "café"], key=c.sort_key)
Verify before relying
- Whether Unicode 10.0.0 support (Python 3.7+) extends to newer Python versions released after 2017
- Performance characteristics on large datasets or real-world multilingual corpora
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 3,245 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 276,705 / month, #8,159 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Topic :: Text Processing |
Evidence: pyuca-1.2-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “unicode collation algorithm”
- pyucaImplements the Unicode Collation Algorithm to sort strings in…
- pyicuPyICU wraps the ICU C++ libraries to provide Python access to Unicode…
- PyICU-binaryPyICU-binary provides pre-built Python bindings to the ICU C++…
Give your agent the search over MCP, or paste the wish link into any chat.
More Text Processing packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.
Install it if you need to parse text or define grammars programmatically.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.
Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.
tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.
Install it if your project requires CSS tokenization or syntax manipulation.
See also natsort · Unidecode · csvsort · uniseg · match · pyjarowinkler · vokativ · unicodedata2 · Metaphone · unicode-segmentation-rs