types-stripe
Typing stubs for stripe
What it is and what it does
types-stripe is a PEP 561 type stub package that provides type annotations for the stripe Python library. It allows static type checkers like mypy, pyright, and pytype to understand and validate code that uses the stripe package, catching type errors before runtime. The stubs are generated from typeshed and aim to cover stripe version 3.5.*.
This package is primarily useful for developers working with older versions of stripe who want type safety in their payment processing code. The description notes that stripe itself includes type annotations since version 7.1.0, and recommends uninstalling this package if using that or a newer version. The stubs are marked as partial, meaning some annotations may be incomplete.
Use it for:
- Enable mypy or pyright type checking on stripe integration code when using stripe versions prior to 7.1.0
- Catch type errors in payment processing logic during development rather than at runtime
- Provide IDE autocomplete and type hints for stripe API calls in PyCharm and other editors
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for the stripe package, enabling static type checking of stripe code with tools like mypy, pyright, and pytype.
Yes, if you are using stripe before version 7.1.0 and want static type checking. No, if you are already on stripe 7.1.0 or later, as stripe now includes its own type annotations and the maintainers recommend uninstalling this package in that case. Check your stripe version first.
Install
types-stripe on PyPI
pip
pip install types-stripeuv
uv add types-stripepoetry
poetry add types-stripeInstalling types-stripe
Before you install
Low install friction with no runtime dependencies. Actively maintained; last commit 2026-08-14.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
Quickstart
pip install types-stripe
# Then use with mypy or pyright on code that imports stripe
import stripe
stripe.api_key = "sk_test_..."
Requires Python 3.8 or later. Note: stripe includes type annotations since version 7.1.0, making this package redundant for newer stripe versions.
Verify before relying
- Whether this stub package remains actively maintained given that stripe has included type annotations since 7.1.0
- Coverage completeness of the stubs for stripe 3.5.x (marked as partial in the description)
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 — 951 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 845,238/month — #4,919 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_stripe-3.5.2.20240106-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-redisProvides type stubs for the redis package,…
permissive · top 1,000 on PyPI
types-urllib3Provides type stubs for urllib3 to enable…
permissive · top 1,000 on PyPI
types-botoProvides type stubs for the boto AWS SDK,…
permissive · top 15,000 on PyPI
types-caldavProvides type stubs for caldav, enabling static…
permissive · top 15,000 on PyPI
types-pyOpenSSLProvides type stubs for pyOpenSSL to enable…
permissive · top 5,000 on PyPI
types-paho-mqttProvides type stubs for paho-mqtt 1.6.* to…
permissive · top 15,000 on PyPI
types-emojiProvides type stubs for the emoji package,…
permissive · top 15,000 on PyPI
types-typed-astProvides type stubs for the typed-ast package,…
permissive · top 15,000 on PyPI
types-PillowProvides type stubs for Pillow, enabling static…
permissive · top 5,000 on PyPI
types-Flask-SQLAlchemyProvides type stubs for Flask-SQLAlchemy to…
permissive · top 15,000 on PyPI