Skip to main content

A slug generator that turns strings into unicode slugs.

Project description

# Unicode Slugify

Unicode Slugify is a slugifier that generates unicode slugs. It was originally used in the Firefox Add-ons web site to generate slugs for add-ons and add-on collections. Many of these add-ons and collections had unicode characters and required more than simple transliteration.

## Usage

>>> import slugify
>>> slugify.slugify(u'Bän...g (bang)')
u'bäng-bang'
>>> slugify.slugify(u'Bäuma means a tree', only_ascii=True)
u'bauma-means-a-tree'
>>> slugify(u'Bakıcı geldi', only_ascii=True)
u'bakici-geldi'

## Thanks

Tomaz Solc, unidecode, https://pypi.python.org/pypi/Unidecode

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for unicode-slugify, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size unicode-slugify-0.1.3.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page