types-python-slugify
Typing stubs for python-slugify
What it is and what it does
types-python-slugify is a PEP 561 type stub package that provides type annotations for a URL slug generation library. It allows static type checkers—mypy, pyright, pytype, and IDE tools like PyCharm—to understand and validate the types of the target library's functions and classes when used in your code.
The package is generated and maintained as part of typeshed, the community repository of type stubs for popular Python libraries. It targets version 8.0.2 of the underlying library and has been tested against mypy 1.9.0, pyright 1.1.350, and pytype 2024.2.27. The description notes that the target library has included its own type annotations since version 8.0.2, which may affect the relevance of this stub package for current users.
Use it for:
- Enable type checkers to validate code that uses the target slug library when working with older versions lacking built-in annotations.
- Provide IDE autocompletion and inline type hints for the target library in editors that rely on stub files.
- Enforce type safety in a codebase using strict type-checking policies with the target library.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for the python-slugify library, enabling static type checkers like mypy, pyright, and pytype to validate code that uses it.
Yes-with-conditions. Install if you use the target library with a version older than 8.0.2 and need type-checking support. For version 8.0.2 and newer, the target library's own annotations make this stub package redundant. Verify your target library version before installing.
Install
types-python-slugify on PyPI
pip
pip install types-python-slugifyuv
uv add types-python-slugifypoetry
poetry add types-python-slugifyInstalling types-python-slugify
Before you install
Low friction installation with no runtime dependencies. Actively maintained as part of typeshed; however, the package notes that built-in type annotations have been available since version 8.0.2, potentially making this stub redundant for current users.
License in practice
Licensed under Apache-2.0, a permissive license allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install types-python-slugify
# Type checkers will now validate code using the target library:
# mypy, pyright, pytype, and PyCharm will recognize types from the stubs
Only provides value for type checking; requires a compatible type checker (mypy 1.9.0, pyright 1.1.350, pytype 2024.2.27, or similar) to be useful.
Verify before relying
- Whether this stub package remains necessary or synchronized with the target library's own type annotations as of the current release.
- Practical adoption: whether developers still rely on this stub or have migrated to the target library's built-in annotations.
Package facts
| License | Apache-2.0 license (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 887 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 9,233,188/month — #1,552 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_python_slugify-8.0.2.20240310-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-emojiProvides type stubs for the emoji package,…
permissive · top 15,000 on PyPI
types-PillowProvides type stubs for Pillow, enabling static…
permissive · top 5,000 on PyPI
types-urllib3Provides type stubs for urllib3 to enable…
permissive · top 1,000 on PyPI
types-typed-astProvides type stubs for the typed-ast package,…
permissive · top 15,000 on PyPI
types-redisProvides type stubs for the redis package,…
permissive · top 1,000 on PyPI
types-SQLAlchemyProvides PEP 561 type stubs for SQLAlchemy,…
permissive · top 15,000 on PyPI
types-chardetProvides type stubs for character encoding…
permissive · top 5,000 on PyPI
types-caldavProvides type stubs for caldav, enabling static…
permissive · top 15,000 on PyPI
types-DateTimeRangeProvides type stubs for the DateTimeRange…
permissive · top 15,000 on PyPI
types-Flask-SQLAlchemyProvides type stubs for Flask-SQLAlchemy to…
permissive · top 15,000 on PyPI