sluggi
Modern, blazing-fast Python library & CLI for generating clean, URL-safe slugs from any text.
- 🚀 Fast & robust: Optimized for performance and reliability
- 🌍 Unicode & emoji: Handles all languages and emoji out of the box
- 🧩 Customizable: Supports custom mappings, stopwords, and pipelines
- 🪄 Batch & async: Parallel and async slugification for large datasets
- 🖥️ CLI & Python API: Use from the command line or in your code
Why sluggi?
sluggi outperforms legacy slugification tools with full Unicode, emoji, and async support—ideal for modern web, data, and content pipelines.
Get Started
Requirements: Python 3.8+
Install with pip:
pip install sluggi
Basic usage:
from sluggi import slugify
slug = slugify("Hello, world!") # hello-world
- See Usage for more examples.
- Explore the API Reference for all options.
- Try the CLI for quick slug generation.
- Check Advanced for custom pipelines and performance tips.
- Visit the FAQ & Troubleshooting for common questions and limitations.
sluggi is open source and maintained by blipbox.