dodopayments
The official Python library for the Dodo Payments API
Decision gist · record as of 2026-08-14
Yes. The library is actively maintained (release 1 day old), has no known vulnerabilities, low install friction, permissive licensing, and provides a well-typed, ergonomic interface to Dodo Payments. Install it if you need to integrate Dodo Payments into a Python application. No significant blockers.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later and a valid Dodo Payments API key set via environment variable.
- Low friction install with six common dependencies (anyio, distro, httpx, pydantic, sniffio, typing-extensions).
- Repository is actively maintained with a release 1 day old and no archived status.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 is permissive; you can use, modify, and distribute this library with minimal restrictions, provided you include a copy of the license and state significant changes.
last release 2026-08-13 (1 days) · last repo commit 2026-08-14 · 12 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 84,110 downloads/mo, #14,026 on PyPI
Alternatives
Verify before relying
pip install dodopayments
import os
from dodopayments import DodoPayments
client = DodoPayments(
bearer_token=os.environ.get("DODO_PAYMENTS_API_KEY"),
environment="test_mode",
)
response = client.checkout_sessions.create(
product_cart=[{"product_id": "pdt_example", "quantity": 1}]
)
print(response.session_id)- Whether the library's error handling (APIConnectionError, APIStatusError subclasses) covers all real-world failure modes you expect.
- Performance characteristics of auto-pagination iterators under high-volume list operations.
- Whether aiohttp backend (optional extra) is production-ready for your concurrency requirements.
What it is and what it does
Dodopayments is the official Python client for the Dodo Payments REST API. It wraps HTTP calls to Dodo's payment endpoints with type-safe request and response objects, automatic pagination, and both sync and async execution modes. The library is built on httpx and pydantic, providing full type hints for IDE autocomplete and optional runtime type checking.
You use it to integrate Dodo Payments into Python applications—creating checkout sessions, listing payments, and managing transactions through a typed, ergonomic interface. It handles authentication via bearer token, environment switching (test vs. live mode), error classification (connection errors, rate limits, API errors), and optional aiohttp backend for async workloads.
Use it for
- Build a checkout flow in a web app by creating sessions and retrieving session IDs for payment forms.
- Iterate through all payments in your account with automatic pagination, without manual page-fetching logic.
- Handle payment errors gracefully by catching specific exception types (RateLimitError, AuthenticationError, etc.).
- Use async/await in a high-concurrency service to make non-blocking payment API calls.
- Leverage type hints and Pydantic models to catch integration bugs early in development.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The library is actively maintained (release 1 day old), has no known vulnerabilities, low install friction, permissive licensing, and provides a well-typed, ergonomic interface to Dodo Payments. Install it if you need to integrate Dodo Payments into a Python application. No significant blockers.
Install
dodopayments on PyPI
Before you install
Low friction install with six common dependencies (anyio, distro, httpx, pydantic, sniffio, typing-extensions). Repository is actively maintained with a release 1 day old and no archived status.
Requires Python 3.9 or later and a valid Dodo Payments API key set via environment variable.
License in practice
Apache-2.0 is permissive; you can use, modify, and distribute this library with minimal restrictions, provided you include a copy of the license and state significant changes.
Quickstart
pip install dodopayments
import os
from dodopayments import DodoPayments
client = DodoPayments(
bearer_token=os.environ.get("DODO_PAYMENTS_API_KEY"),
environment="test_mode",
)
response = client.checkout_sessions.create(
product_cart=[{"product_id": "pdt_example", "quantity": 1}]
)
print(response.session_id)
Verify before relying
- Whether the library's error handling (APIConnectionError, APIStatusError subclasses) covers all real-world failure modes you expect.
- Performance characteristics of auto-pagination iterators under high-volume list operations.
- Whether aiohttp backend (optional extra) is production-ready for your concurrency requirements.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesanyiodistrohttpxpydanticsniffiotyping-extensions |
| Maintenance | Actively maintained 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 84,110 / month, #14,026 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: dodopayments-1.112.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 › “dodo payments sdk”
- dodopaymentsProvides a Python client library for the Dodo Payments REST API, with…
- breez-sdk-sparkPython bindings for the Breez Spark SDK, enabling non-custodial…
- mercadopagoProvides Python bindings to integrate Mercado Pago's payment APIs,…
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 mollie-api-python · modern-treasury · Adyen · gocardless-pro · paypalrestsdk · beanstream · lithic · mercadopago · metronome-sdk · razorpay