skillfed

types-stripe

Typing stubs for stripe

types-stripe v3.5.2.20240106 845.2K downloads/30d#4,919 on PyPI5,108
Permissive license Apache-2.0 license Active released

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

uv

uv add types-stripe

poetry

poetry add types-stripe

Installing 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

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

Tags

stripe type stubsstripe type checkingmypy stripe annotationspyright stripe typesstripe python typing
type-stubsstripe-integration

More Software Development packages