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-slugifypython-slugify
LanguagePythonPython
License—MIT
Stars4901.6k
Forks42146
Last analyzedOct 10, 2026Oct 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.
Read the awesome-slugify analysis →

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.
Read the python-slugify analysis →

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.