A professional, production-ready, SEO-friendly Slug Generator API built with FastAPI. Converts titles into clean, unique, SEO-optimized slugs with advanced features.
- FastAPI, Python 3.11
- Turkish and multilingual character support
- Uniqueness enforcement
- Redis or in-memory caching
- Optional date and category in slug
- Slug validation endpoint
- API key-based access control & rate limiting
- Smart deduplication (removes repeated meaningless words)
- Command-line tool
- Analytics endpoint
- Full CRUD support
- Swagger/OpenAPI docs
- Unit tests (pytest)
- Docker & docker-compose deployment
- (Optional) QR code generator for slugs
pip install -r requirements.txt
uvicorn app.main:app --reloaddocker-compose up --buildPOST /generate-slug— Generate a slugGET /all— List all slugsPOST /check-slug— Check if a slug existsPUT /update/{slug}— Update a slugDELETE /delete/{slug}— Delete a slugGET /analytics— Analytics
All endpoints require x-api-key header.
python -m app.slugger "Some Title" --category blog --date 2025-07-20pytestMIT