Python flexible slugify function that supports transliteration, custom transformations, and multiple output types (lowercase, uppercase, camelcase). Version 1.6.5 is the last release; the library has been in maintenance mode since 2018 and is largely superseded by python-slugify.
pip install awesome-slugifyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: converts a string into an ASCII slug.
Switch to 'python-slugify' library: pip install python-slugify and use from slugify import slugify.
Manually strip hyphens: slugify(text).strip('-')Import as 'from slugify import slugify' (not 'from awesome_slugify').
Run: pip install --upgrade awesome-slugify Then use: from slugify import slugify
Pass Unicode strings: slugify(u'café') or decode bytes: slugify(b'caf\xc3\xa9'.decode('utf-8'))