Slugify (version 0.0.1) is a legacy Python library for generating URL-friendly 'slugs' from strings, primarily for Latin-based scripts. Inspired by Django's `slugify` template filter, it provides a Python function and a command-line tool. The library is considered abandoned and only officially supports Python 2.
pip install slugifyVerified import paths — ran on the pinned version, not inferred.
A simple example demonstrating the use of the `slugify` function. Note that this library is Python 2 only. Running it in Python 3 will result in errors related to the `unicode()` function.
Use a Python 2 interpreter or, preferably, switch to a modern, Python 3-compatible slugification library like `python-slugify`.
Always uninstall `slugify` (the 0.0.1 package) if you intend to use `python-slugify`. Ensure you only have one slugification library installed if they share the same top-level import name.
For robust Unicode support, use `python-slugify`, which has built-in or optional dependencies for comprehensive transliteration (e.g., `text-unidecode` or `Unidecode`).
Run your code in a Python 2 environment. If you need Python 3 support, use `pip uninstall slugify` and then install a Python 3 compatible alternative, such as `pip install python-slugify`.
Identify which 'slugify' package you intend to use. If it's `python-slugify`, then `pip uninstall slugify` (the old package) and ensure only `python-slugify` is installed.
For international character support, switch to `python-slugify`. It offers more comprehensive Unicode handling, often leveraging libraries like `text-unidecode` for accurate transliteration.
No dependency data recorded yet.