<div align="left">
<h1>PayOK <img src="https://payok.io/files/image/logo_white.svg" width=64 height=24></h1>
<p align="left" >
<a href="https://pypi.org/project/payok.io/">
<img src="https://img.shields.io/pypi/v/payok.io?style=flat-square" alt="PyPI">
</a>
<a href="https://pypi.org/project/payok.io/">
<img src="https://img.shields.io/pypi/dm/payok.io?style=flat-square" alt="PyPI">
</a>
</p>
</div>
A simple, yet powerful library for [PayOK API](https://payok.io/cabinet/documentation/doc_api_main)
## Usage
With ``PayOK`` you can easily create and retrieve payment and payout info, get informaition about your account's balance and commissions, etc.
## Documentation
Official docs can be found on the [API's webpage](https://payok.io/cabinet/documentation/doc_api_main)
## Installation
```bash
pip install payok.io
```
## Requirements
- ``Python 3.7+``
- ``aiohttp``
- ``pydantic``
## Features
- ``Asynchronous``
- ``Exception handling``
- ``Pydantic return model``
- ``LightWeight``
## Basic example
```python
import payok
from payok import PayOK, PayOKError
api = PayOK(
'api_id', 'api_key',
)
async def main():
try:
await api.get_balance()
except PayOKError as exc:
print(exc)
payments = await api.get_payments(project_id=1) # project_id can be provided in __init__
print(payments[0].id, payments[0].status)
asyncio.run(main())
```
Developed by Nikita Minaev (c) 2023
Raw data
{
"_id": null,
"home_page": "https://github.com/nikitalm8/payok",
"name": "payok.io",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "python,payok.io,payments,payok-api,async,asyncio",
"author": "Nikita Minaev",
"author_email": "<nikita@minaev.su>",
"download_url": "https://files.pythonhosted.org/packages/15/ce/3a847405dbaf46fb2c68c6b7373ec80e206d6ebff8c38135bd70af84d588/payok.io-1.0.7.tar.gz",
"platform": null,
"description": "\n<div align=\"left\">\n <h1>PayOK <img src=\"https://payok.io/files/image/logo_white.svg\" width=64 height=24></h1>\n <p align=\"left\" >\n <a href=\"https://pypi.org/project/payok.io/\">\n <img src=\"https://img.shields.io/pypi/v/payok.io?style=flat-square\" alt=\"PyPI\">\n </a>\n <a href=\"https://pypi.org/project/payok.io/\">\n <img src=\"https://img.shields.io/pypi/dm/payok.io?style=flat-square\" alt=\"PyPI\">\n </a>\n </p>\n</div>\n\nA simple, yet powerful library for [PayOK API](https://payok.io/cabinet/documentation/doc_api_main)\n\n\n## Usage\n\nWith ``PayOK`` you can easily create and retrieve payment and payout info, get informaition about your account's balance and commissions, etc.\n\n## Documentation\n\nOfficial docs can be found on the [API's webpage](https://payok.io/cabinet/documentation/doc_api_main)\n\n## Installation\n\n```bash\npip install payok.io\n```\n\n## Requirements\n\n - ``Python 3.7+``\n - ``aiohttp``\n - ``pydantic``\n\n## Features\n\n - ``Asynchronous``\n - ``Exception handling``\n - ``Pydantic return model``\n - ``LightWeight``\n\n## Basic example\n\n```python\nimport payok\n\nfrom payok import PayOK, PayOKError\n\n\napi = PayOK(\n 'api_id', 'api_key',\n) \n\n\nasync def main():\n\n try:\n\n await api.get_balance()\n\n except PayOKError as exc:\n\n print(exc)\n\n payments = await api.get_payments(project_id=1) # project_id can be provided in __init__\n print(payments[0].id, payments[0].status)\n\n\nasyncio.run(main())\n```\n\nDeveloped by Nikita Minaev (c) 2023\n",
"bugtrack_url": null,
"license": "",
"summary": "Asynchronous PayOK API wrapper",
"version": "1.0.7",
"project_urls": {
"API Docs": "https://payok.io/cabinet/documentation/doc_api_main",
"Bug Tracker": "https://github.com/nikitalm8/payok/issues",
"Homepage": "https://github.com/nikitalm8/payok"
},
"split_keywords": [
"python",
"payok.io",
"payments",
"payok-api",
"async",
"asyncio"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "376ed57d8e52b9720916fcce41e2ff2fd3d1eaf513150acf39183507552ef364",
"md5": "c063a44b6d9334063d3ded1e2d5fd66b",
"sha256": "1645f1b5bf020f571f9ce723b45b18ae84c9294ac780873be5939bf265c7e085"
},
"downloads": -1,
"filename": "payok.io-1.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c063a44b6d9334063d3ded1e2d5fd66b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 10042,
"upload_time": "2023-08-18T16:21:20",
"upload_time_iso_8601": "2023-08-18T16:21:20.429580Z",
"url": "https://files.pythonhosted.org/packages/37/6e/d57d8e52b9720916fcce41e2ff2fd3d1eaf513150acf39183507552ef364/payok.io-1.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "15ce3a847405dbaf46fb2c68c6b7373ec80e206d6ebff8c38135bd70af84d588",
"md5": "689a6a47cb5414407cadc05665622a07",
"sha256": "ee9352ff33c0d378bc44da0f2131bb374588ff9ab4013dd762328fbeb3484ca5"
},
"downloads": -1,
"filename": "payok.io-1.0.7.tar.gz",
"has_sig": false,
"md5_digest": "689a6a47cb5414407cadc05665622a07",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8206,
"upload_time": "2023-08-18T16:21:22",
"upload_time_iso_8601": "2023-08-18T16:21:22.938163Z",
"url": "https://files.pythonhosted.org/packages/15/ce/3a847405dbaf46fb2c68c6b7373ec80e206d6ebff8c38135bd70af84d588/payok.io-1.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-18 16:21:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "nikitalm8",
"github_project": "payok",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "payok.io"
}