dicogis.utils.slugger module¶
Minimalist slugifier.
Author: Julien Moura (https://github.com/guts)
- dicogis.utils.slugger.sluggy(text_to_slugify, replacer='-')¶
Very basic slugifier using only Python Standard Library.
- Parameters:
Example:
sample_txt = "Oyé oyé brâves gens de 1973 ! Hé oh ! Sentons-nous l'ail %$*§ ?!" print(sluggy(sample_txt)) > oye-oye-braves-gens-de-1973-he-oh-sentons-nous-lail
- Returns:
input character string stringified
- Return type: