from slugify import slugify
my_str = "Привет"
print(my_str)
print(slugify(my_str))Привет
privetПривет
Privet def slugify(value, allow_unicode=False):
"""
Convert to ASCII if 'allow_unicode' is False. Convert spaces to hyphens.
Remove characters that aren't alphanumerics, underscores, or hyphens.
Convert to lowercase. Also strip leading and trailing whitespace.
"""print(slugify(my_str).title())