skillfed

types-python-slugify

Typing stubs for python-slugify

types-python-slugify v8.0.2.20240310 9.2M downloads/30d#1,552 on PyPI5,108
Permissive license Apache-2.0 license Active released

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-slugify

uv

uv add types-python-slugify

poetry

poetry add types-python-slugify

Installing 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

License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Typing :: Stubs Only

Tags

type stubs for slugifymypy type hints slugifystatic type checking slugifypyright type stubstype annotations slugifyPEP 561 stubs
type-stubstype-checking

More Software Development packages