stripe
Python bindings for the Stripe API
Decision gist · record as of 2026-08-14
Yes. Stripe is a top-1000 package with active maintenance, low install friction, no known vulnerabilities, and permissive licensing. Install it if you need to integrate Stripe payments into a Python application. The only consideration is confirming that the default telemetry behavior (which can be disabled) aligns with your privacy requirements.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later and a valid Stripe API secret key (sk_test_...
- for testing, sk_live_...
- for production).
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), allowing use in commercial and proprietary projects with minimal restrictions.
last release 2026-08-10 (4 days) · last repo commit 2026-08-14 · 2,032 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 43,297,720 downloads/mo, #643 on PyPI
Alternatives
Verify before relying
pip install stripe
from stripe import StripeClient
client = StripeClient("sk_test_...")
customers = client.v1.customers.list()
print(customers.data[0].email)- Whether the library's telemetry feature (enabled by default) meets your data privacy requirements
- Specific Stripe API version compatibility beyond the dynamic class initialization mentioned
What it is and what it does
The Stripe Python library is an official SDK that wraps the Stripe API with pre-defined resource classes that dynamically initialize from API responses. This design makes it compatible with multiple Stripe API versions without requiring frequent updates. You configure it with your Stripe secret key and then call methods on a StripeClient instance to list, retrieve, create, or update resources like customers, charges, and invoices.
The library handles HTTP communication via requests (or alternative HTTP clients like urllib or pycurl), manages retries automatically with idempotency keys, and provides exception classes that map to Stripe error types. It includes type annotations for IDE support and can emit debug logging to help troubleshoot integration issues. Per-request configuration allows you to target specific Stripe API versions or connected accounts on individual calls.
Use it for
- Build a SaaS billing system that creates customers and charges them monthly via Stripe
- Retrieve and display customer payment history and invoice details in a web application
- Automate refunds or subscription management in response to business logic events
- Test payment flows in development using Stripe test keys before deploying to production
- Handle webhook events by querying Stripe for updated resource state after receiving notifications
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Stripe is a top-1000 package with active maintenance, low install friction, no known vulnerabilities, and permissive licensing. Install it if you need to integrate Stripe payments into a Python application. The only consideration is confirming that the default telemetry behavior (which can be disabled) aligns with your privacy requirements.
Install
stripe on PyPI
Before you install
Low friction install with only two lightweight runtime dependencies (typing_extensions and requests). Actively maintained with a release 4 days ago and 2032 repository stars. Supports Python 3.9+ per documented policy.
Requires Python 3.9 or later and a valid Stripe API secret key (sk_test_... for testing, sk_live_... for production).
License in practice
Licensed under MIT (permissive), allowing use in commercial and proprietary projects with minimal restrictions.
Quickstart
pip install stripe
from stripe import StripeClient
client = StripeClient("sk_test_...")
customers = client.v1.customers.list()
print(customers.data[0].email)
Verify before relying
- Whether the library's telemetry feature (enabled by default) meets your data privacy requirements
- Specific Stripe API version compatibility beyond the dynamic class initialization mentioned
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagestyping_extensionsrequests |
| Maintenance | Actively maintained 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 43,297,720 / month, #643 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python Modules |
Evidence: stripe-15.5.0-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 api client”
- stripeProvides Python bindings to the Stripe API, enabling applications to…
- async-stripeProvides an asynchronous wrapper around the Stripe Python library,…
- 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 Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also async-stripe · dj-stripe · Adyen · paypalrestsdk · gocardless-pro · chargebee · mercadopago · shippo · stigg-sidecar-sdk · customerio