awesome-slugify vs python-slugify
Python text-to-slug libraries compared
awesome-slugify and python-slugify both turn text into slugs for URLs and other identifiers, with options for Unicode handling and transliteration. awesome-slugify emphasizes configurable slug rules and built-in duplicate checking, while python-slugify offers a command-line interface and selectable transliteration backends alongside legacy and modern algorithms.

awesome-slugify: Create Configurable Slugs from Text
A Python library for turning text into configurable, readable slugs for URLs, filenames, and other identifiers. It supports transliteration, Unicode-preserving output, custom replacements, and unique slug generation.

python-slugify: Create Unicode-Aware Slugs in Python
python-slugify turns text into URL-style slugs, with options for transliteration, Unicode retention, and output rules. It suits Python applications that need readable identifiers, especially when teams can manage algorithm and backend changes carefully.
| awesome-slugify | python-slugify | |
|---|---|---|
| Language | Python | Python |
| License | — | MIT |
| Stars | 490 | 1.6k |
| Forks | 42 | 146 |
| Last analyzed | Oct 10, 2026 | Oct 9, 2026 |
Key differences
- awesome-slugify can add numeric suffixes to avoid duplicates and accepts a custom uniqueness checker; python-slugify leaves uniqueness handling to the application.
- python-slugify provides both a Python API and a command-line interface; awesome-slugify describes callable helpers and configurable classes.
- python-slugify lets users select text-unidecode, Unidecode, or AnyASCII backends and offers an opt-in modern algorithm; awesome-slugify describes configurable transliteration rules and language-specific mappings.
- awesome-slugify supports additional safe characters for filename-oriented slugs; python-slugify documents HTML entity handling and regex filtering.
- python-slugify is licensed under MIT and has 1.6k stars and 143 forks; awesome-slugify has 490 stars and 42 forks.
- python-slugify 9.x requires Python 3.10 or newer; awesome-slugify's latest recorded push was in 2020, so its compatibility should be checked.
Choose awesome-slugify if you…
- need built-in numeric suffixes and a custom checker for unique slugs.
- want configurable language-specific mappings or additional safe characters for filename-oriented slugs.
- need to limit slug length or remove configured stop words.
Choose python-slugify if you…
- want a command-line interface as well as a Python API.
- need to choose among transliteration backends or select between legacy and modern algorithms.
- need documented handling for HTML entities, replacements, and regex filtering.
Compare the numbers side by side, or add more projects
This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.