slugify
A generic slugifier.
What it is and what it does
Slugify is a text-to-slug converter inspired by Django's slugify template filter, packaged as a standalone library. It transforms strings by removing accents, converting to lowercase, and replacing spaces with hyphens, producing URL-safe identifiers. The package offers both a Python API and a command-line interface for the same operation.
The core slugifying logic is derived from Django and carries a BSD license, while the packaging layer is released to the public domain. However, the package has received no maintenance since its initial release on 2010-12-07, with no updates across 5729 days. It has no declared runtime dependencies, making installation straightforward, but the lack of maintenance raises questions about compatibility with modern Python versions and whether edge cases in Unicode handling have been addressed.
Use it for:
- Generate URL-friendly slugs from user-provided titles or names in web applications
- Convert text with accents and special characters into ASCII-safe identifiers for database keys
- Batch-process strings from the command line to create consistent slug formats
- Transform multilingual text into uniform, URL-safe representations for routing or file naming
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts text strings into URL-safe slugs by removing accents, converting to lowercase, and replacing spaces with hyphens, available as both a Python library and command-line tool.
No. The package is abandoned (last release 2010-12-07, no updates in 5729 days), has unclear mixed licensing (public domain + BSD), and provides no Python version guarantees. For slug generation, use a maintained alternative or a modern framework's built-in utilities instead.
Install
slugify on PyPI
pip
pip install slugifyuv
uv add slugifypoetry
poetry add slugifyInstalling slugify
Before you install
Installation friction is high; the package has been abandoned since its only release on 2010-12-07, with no updates in over 5729 days. The repository exists but is unmaintained, and the single source artifact suggests minimal ongoing support.
License in practice
License treatment is unclear: the package combines public domain code (via The Unlicense) with BSD-licensed material derived from Django. Users should review both license texts in the description before use, as the mixed licensing may affect downstream obligations.
Quickstart
pip install slugify
import slugify
result = slugify.slugify(u"Héllø Wörld")
print(result) # u"hello-world"
# Or from command line:
# echo "Héllø Wörld" | slugify
Verify before relying
- Whether the package works correctly with modern Python versions (requires_python is unspecified)
- Whether Unicode handling remains reliable across current Python releases
- Whether there are known issues or edge cases in the abandoned codebase
Package facts
| License | UNKNOWN (unclear) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 5,729 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 211,790/month — #9,473 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: slugify-0.0.1.tar.gz
Tags
More Text Processing packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyparsingpyparsing provides a library for building text…
permissive · top 1,000 on PyPI
docutilsDocutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
RapidFuzzRapidFuzz provides fast fuzzy string matching…
permissive · top 1,000 on PyPI
tinycss2tinycss2 parses CSS strings into token and…
permissive · top 1,000 on PyPI
llama-parseLlamaParse parses complex documents (PDFs,…
permissive · top 1,000 on PyPI
django-autoslugProvides a Django model field that…
copyleft · top 15,000 on PyPI
escapismEscapism provides two functions to escape and…
permissive · top 15,000 on PyPI
python-slugifyConverts text strings—including unicode, HTML…
permissive · top 1,000 on PyPI
unicode-slugifyConverts strings into URL-friendly slugs while…
permissive · top 15,000 on PyPI
normalityNormality removes diacritics, punctuation, and…
permissive · top 15,000 on PyPI
python-string-utilsProvides functions to validate, manipulate, and…
permissive · top 15,000 on PyPI
coolnameGenerates random human-readable names and…
permissive · top 5,000 on PyPI
random-slugsGenerates random word-based slugs with…
unclear · top 15,000 on PyPI
UnidecodeConverts Unicode text to ASCII-safe…
copyleft · top 1,000 on PyPI
anyasciiConverts Unicode text to ASCII-only equivalents…
permissive · top 5,000 on PyPI