slugify#

sunpy.util.net.slugify(text, delim='_')[source]#

Slugify given unicode text.

This function performs a Unicode normalization to NFKC form, followed by replacing the following characters by the delimiter:

: (tab) (space) ! “ # $ % & ‘ ( ) * - / < = > ? @ [ \ ] ^ _ ` { | } ,

Parameters:
  • text (str) – A str to slugify.

  • delim (str, optional) – The delimiter for the input text. Default is “_”.

Returns:

str – The slugify str name.