pyufunc.slugify_text#

pyufunc.slugify_text(text, *, delim='_', lower=True, ascii=False)#

Convert text to a slug with boltons.strutils.slugify.

Parameters:
  • text – Text to slugify.

  • delim – Delimiter inserted between words.

  • lower – If True, lowercase the result.

  • ascii – If True, normalize to ASCII.

Note

Example

>>> slugify_text("Hello World")
'hello_world'
Returns:

Slugified text.

Return type:

str