yookassa
YooKassa API SDK Python Library
What it is and what it does
Yookassa is an official Python SDK for the YooKassa payment API, a Russian payment processing service. It provides a structured interface to create payments, manage refunds, retrieve transaction history, and configure account settings through YooKassa's REST API. The library abstracts HTTP communication and response parsing, offering domain models for payments, receipts, and account data.
The package is maintained by YooMoney and supports modern Python versions (3.7–3.12). Version 3.x introduced breaking changes to the import structure compared to 2.x, so migrating projects require updating import paths. It has no external runtime dependencies, meaning installation is straightforward but you must provide your own HTTP client setup if needed beyond what the library provides.
Use it for:
- Integrate YooKassa payments into a Django or Flask web application for processing customer transactions.
- Build a payment dashboard that retrieves and displays transaction history and refund status.
- Automate recurring billing or payout operations using the YooKassa API from a backend service.
- Handle payment callbacks and reconciliation by querying payment status and receipt data.
- Manage multi-currency or split-payment scenarios using YooKassa's advanced payment data models.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library for integrating YooKassa payment processing API into applications, handling payment creation, retrieval, refunds, and account management.
Yes, if you are building on YooKassa's payment infrastructure. The library is actively maintained, permissively licensed, and supports current Python versions. High install friction is a minor concern given zero runtime dependencies. Verify that async support and error-handling behavior match your application's needs before committing.
Install
yookassa on PyPI
pip
pip install yookassauv
uv add yookassapoetry
poetry add yookassaInstalling yookassa
Before you install
High install friction due to no runtime dependencies, but active maintenance with a release dated 2026-08-13 suggests ongoing support. Supports Python 3.7 through 3.12.
License in practice
MIT license (permissive) allows commercial and private use with minimal restrictions; suitable for most integration scenarios.
Quickstart
pip install yookassa
import yookassa
from yookassa import Configuration
Configuration.configure('account_id', 'secret_key')
Requires Python 3.7 or later; YooKassa account credentials (account ID and secret key or OAuth token) needed for API calls.
Verify before relying
- Whether the package handles network errors and retries automatically or requires manual error handling.
- Performance characteristics when handling high-volume payment operations.
- Whether webhook/callback handling for payment notifications is included in the SDK.
- Compatibility with async/await patterns or if it is synchronous-only.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | actively maintained — 1 days since the last release |
| First released | |
| Downloads | 121,826/month — #11,971 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: yookassa-3.12.1.tar.gz
Keywords: yoomoney, yookassa, payout, sdk, python
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
mollie-api-pythonPython client library for the Mollie payment…
permissive · top 15,000 on PyPI
razorpayPython client library for the Razorpay payment…
permissive · top 5,000 on PyPI
paypalrestsdkA REST client library for integrating PayPal…
unclear · top 5,000 on PyPI
mercadopagoProvides Python bindings to integrate Mercado…
permissive · top 15,000 on PyPI
AdyenProvides official Python bindings for Adyen's…
permissive · top 5,000 on PyPI
beanstreamProvides a Python client library for the…
permissive · top 15,000 on PyPI
braintreeProvides Python bindings to the Braintree…
permissive · top 5,000 on PyPI
dodopaymentsProvides a Python client library for the Dodo…
permissive · top 15,000 on PyPI
gocardless-proA Python client library for the GoCardless API…
permissive · top 15,000 on PyPI
chargehoundChargehound provides Python bindings to…
permissive · top 15,000 on PyPI