types-stripe
Typing stubs for stripe
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later.
- Note: stripe includes type annotations since version 7.1.0, making this package redundant for newer stripe versions.
- Low install friction with no runtime dependencies.
License · maintenance · safety
Apache-2.0 license (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
last release 2024-01-06 (951 days) · last repo commit 2026-08-14 · 5,108 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 845,238 downloads/mo, #4,919 on PyPI
Alternatives
Verify before relying
pip install types-stripe
# Then use with mypy or pyright on code that imports stripe
import stripe
stripe.api_key = "sk_test_..."- 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)
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 on it.
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
Before you install
Low install friction with no runtime dependencies. Actively maintained; last commit 2026-08-14.
Requires Python 3.8 or later. Note: stripe includes type annotations since version 7.1.0, making this package redundant for newer stripe versions.
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_..."
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 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_stripe-3.5.2.20240106-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “stripe type stubs”
- types-stripeProvides type stubs for the stripe package, enabling static type…
- stripeProvides Python bindings to the Stripe API, enabling applications to…
- dj-stripedj-stripe syncs Stripe payment objects into Django models via…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also types-redis · types-urllib3 · types-boto · types-caldav · types-pyOpenSSL · types-paho-mqtt · types-emoji · types-typed-ast · types-Pillow · types-Flask-SQLAlchemy