def slugify(text, delim=u'-'):
    result = []
    for word in _punctuation_re.split(text.lower()):
        word = _punctuation_re.sub(u'', word.encode('translit/long'))
        if word:
            result.append(word)
    return unicode(delim.join(result))
Generates an ASCII-only slug.
dataset/ETHPy150Open mitsuhiko/solace/solace/utils/support.py/slugify