# YooKassa API Python Client Library
[](https://travis-ci.org/yoomoney/yookassa-sdk-python)
[](https://pypi.org/project/yookassa/)
[](https://pypi.org/project/yookassa/)
[](https://git.yoomoney.ru/projects/SDK/repos/yookassa-sdk-python)
[Russian](README.md) | English
This product is used for managing payments under [The YooKassa API](https://yookassa.ru/en/developers/api)
For usage by those who implemented YooKassa using the API method.
## Features
* Version 3.x supports Python >=3.7. To work on earlier versions of Python, use versions of yookassa 2.x
* Changing the directory/file structure affected some package imports. When switching from the version of yookassa 2.x, check the imports in your project:
* `yookassa.domain.models.airline` → `yookassa.domain.models.payment_data.request.airline`
* `yookassa.domain.models.authorization_details` → `yookassa.domain.models.payment_data.response.authorization_details`
* `yookassa.domain.models.receipt_customer` → `yookassa.domain.models.receipt_data.receipt_customer`
* `yookassa.domain.models.receipt_item` → `yookassa.domain.models.receipt_data.receipt_item`
* `yookassa.domain.models.receipt_item_supplier` → `yookassa.domain.models.receipt_data.receipt_item_supplier`
* `yookassa.domain.models.recipient` → `yookassa.domain.models.payment_data.recipient`
* `yookassa.domain.models.refund_source` → `yookassa.domain.models.refund_data.refund_source`
* `Settings.get_account_settings()` now returns the `Me` object. To support compatibility, object fields can be accessed as an array - `me.account_id = me['account_id']`
* The `me.fiscalization_enabled` field is deprecated, but it is still supported. The `me.fiscalization` object has been added instead..
## Requirements
1. Python >=3.7
2. pip
## Installation
### Under console using pip
1. Install pip.
2. In the console, run the following command:
```bash
pip install --upgrade yookassa
```
### Under console using easy_install
1. Install easy_install.
2. In the console, run the following command:
```bash
easy_install --upgrade yookassa
```
## Commencing work
1. Import module
```python
import yookassa
```
2. Configure a Client
```python
from yookassa import Configuration
Configuration.configure('<Account Id>', '<Secret Key>')
```
or
```python
from yookassa import Configuration
Configuration.account_id = '<Account Id>'
Configuration.secret_key = '<Secret Key>'
```
or via oauth
```python
from yookassa import Configuration
Configuration.configure_auth_token('<Oauth Token>')
```
If you agree to participate in the development of the SDK, you can submit data about your framework, cms or module:
```python
from yookassa import Configuration
from yookassa.domain.common.user_agent import Version
Configuration.configure('<Account Id>', '<Secret Key>')
Configuration.configure_user_agent(
framework=Version('Django', '2.2.3'),
cms=Version('Wagtail', '2.6.2'),
module=Version('Y.CMS', '0.0.1')
)
```
3. Call the required API method. [More details in our documentation for the YooKassa API](https://yookassa.ru/en/developers/api)
Raw data
{
"_id": null,
"home_page": "https://git.yoomoney.ru/projects/SDK/repos/yookassa-sdk-python",
"name": "yookassa",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "yoomoney, yookassa, payout, sdk, python",
"author": "YooMoney",
"author_email": "cms@yoomoney.ru",
"download_url": "https://files.pythonhosted.org/packages/f9/bb/0e1d7d56d2b8776050574a6892ef8d5ee3403ce755365ad134acaf4bb92d/yookassa-3.6.0.tar.gz",
"platform": null,
"description": "\r\n# YooKassa API Python Client Library\r\n\r\n[](https://travis-ci.org/yoomoney/yookassa-sdk-python)\r\n[](https://pypi.org/project/yookassa/)\r\n[](https://pypi.org/project/yookassa/)\r\n[](https://git.yoomoney.ru/projects/SDK/repos/yookassa-sdk-python)\r\n\r\n[Russian](README.md) | English\r\n\r\nThis product is used for managing payments under [The YooKassa API](https://yookassa.ru/en/developers/api)\r\nFor usage by those who implemented YooKassa using the API method.\r\n\r\n## Features\r\n\r\n* Version 3.x supports Python >=3.7. To work on earlier versions of Python, use versions of yookassa 2.x\r\n* Changing the directory/file structure affected some package imports. When switching from the version of yookassa 2.x, check the imports in your project:\r\n * `yookassa.domain.models.airline` \u2192 `yookassa.domain.models.payment_data.request.airline`\r\n * `yookassa.domain.models.authorization_details` \u2192 `yookassa.domain.models.payment_data.response.authorization_details`\r\n * `yookassa.domain.models.receipt_customer` \u2192 `yookassa.domain.models.receipt_data.receipt_customer`\r\n * `yookassa.domain.models.receipt_item` \u2192 `yookassa.domain.models.receipt_data.receipt_item`\r\n * `yookassa.domain.models.receipt_item_supplier` \u2192 `yookassa.domain.models.receipt_data.receipt_item_supplier`\r\n * `yookassa.domain.models.recipient` \u2192 `yookassa.domain.models.payment_data.recipient`\r\n * `yookassa.domain.models.refund_source` \u2192 `yookassa.domain.models.refund_data.refund_source`\r\n* `Settings.get_account_settings()` now returns the `Me` object. To support compatibility, object fields can be accessed as an array - `me.account_id = me['account_id']`\r\n* The `me.fiscalization_enabled` field is deprecated, but it is still supported. The `me.fiscalization` object has been added instead..\r\n\r\n## Requirements\r\n1. Python >=3.7\r\n2. pip\r\n\r\n## Installation\r\n### Under console using pip\r\n\r\n1. Install pip.\r\n2. In the console, run the following command:\r\n```bash\r\npip install --upgrade yookassa\r\n```\r\n\r\n### Under console using easy_install\r\n1. Install easy_install.\r\n2. In the console, run the following command:\r\n```bash\r\neasy_install --upgrade yookassa\r\n```\r\n\r\n## Commencing work\r\n\r\n1. Import module\r\n```python\r\nimport yookassa\r\n```\r\n\r\n2. Configure a Client\r\n```python\r\nfrom yookassa import Configuration\r\n\r\nConfiguration.configure('<Account Id>', '<Secret Key>')\r\n```\r\n\r\nor\r\n\r\n```python\r\nfrom yookassa import Configuration\r\n\r\nConfiguration.account_id = '<Account Id>'\r\nConfiguration.secret_key = '<Secret Key>'\r\n```\r\n\r\nor via oauth\r\n\r\n```python\r\nfrom yookassa import Configuration\r\n\r\nConfiguration.configure_auth_token('<Oauth Token>')\r\n```\r\n\r\nIf you agree to participate in the development of the SDK, you can submit data about your framework, cms or module:\r\n\r\n```python\r\nfrom yookassa import Configuration\r\nfrom yookassa.domain.common.user_agent import Version\r\n\r\nConfiguration.configure('<Account Id>', '<Secret Key>')\r\nConfiguration.configure_user_agent(\r\n framework=Version('Django', '2.2.3'),\r\n cms=Version('Wagtail', '2.6.2'),\r\n module=Version('Y.CMS', '0.0.1')\r\n)\r\n```\r\n\r\n3. Call the required API method. [More details in our documentation for the YooKassa API](https://yookassa.ru/en/developers/api)\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "YooKassa API SDK Python Library",
"version": "3.6.0",
"project_urls": {
"Homepage": "https://git.yoomoney.ru/projects/SDK/repos/yookassa-sdk-python"
},
"split_keywords": [
"yoomoney",
" yookassa",
" payout",
" sdk",
" python"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "f9bb0e1d7d56d2b8776050574a6892ef8d5ee3403ce755365ad134acaf4bb92d",
"md5": "76e303d07187d149f5028b09183e0644",
"sha256": "2bec0910a54b633929f2ed2d44ca14d914aa4def0d0afa10108d3dc453202248"
},
"downloads": -1,
"filename": "yookassa-3.6.0.tar.gz",
"has_sig": false,
"md5_digest": "76e303d07187d149f5028b09183e0644",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 130590,
"upload_time": "2025-07-24T08:31:25",
"upload_time_iso_8601": "2025-07-24T08:31:25.772983Z",
"url": "https://files.pythonhosted.org/packages/f9/bb/0e1d7d56d2b8776050574a6892ef8d5ee3403ce755365ad134acaf4bb92d/yookassa-3.6.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-24 08:31:25",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "yookassa"
}