Name | aaio JSON |
Version |
1.4.2
JSON |
| download |
home_page | None |
Summary | Async AAIO api wrapper for python |
upload_time | 2024-09-06 06:52:26 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.7 |
license | MIT License Copyright (c) 2023 Daniil Tenishev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
api
payments
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# AAIO API for Python 3
<div align="center">
<a href="https://aaio.so/" target="_blank">
<img alt="AAIO Badge" src="https://aaio.so/assets/svg/banners/big/dark-2.svg" title="Aaio - Сервис по приему онлайн платежей">
</a>
[![kewldan - AAIO](https://img.shields.io/static/v1?label=kewldan&message=AAIO&color=blue&logo=github)](https://github.com/kewldan/AAIO "Go to GitHub repo")
[![GitHub release](https://img.shields.io/github/release/kewldan/AAIO?include_prereleases=&sort=semver&color=blue)](https://github.com/kewldan/AAIO/releases/)
[![License](https://img.shields.io/badge/License-MIT-blue)](#license)
[![Upload Python Package](https://github.com/kewldan/AAIO/actions/workflows/python-publish.yml/badge.svg)](https://github.com/kewldan/AAIO/actions/workflows/python-publish.yml)
[![issues - AAIO](https://img.shields.io/github/issues/kewldan/AAIO)](https://github.com/kewldan/AAIO/issues)
[AAIO Official documentation](https://wiki.aaio.so/)
</div>
## About
This library is a wrapper for the https://aaio.so API **from enthusiast**. All methods are described and all types are
**explicitly** defined. Methods that create requests to
aaio.so
return a pydantic's models for each response. Please write about all problems related to the library
to [issues](https://github.com/kewldan/AAIO/issues)
API is up-to-date as of *06 September 2024*.
* PyPl - https://pypi.org/project/aaio/
* Github - https://github.com/kewldan/AAIO
* Docs - https://kewldan.ru/projects/aaio
* Demo - https://t.me/aaio_demo_bot
* Requirements: Python >= 3.7
* Added to [AAIO SDKs](https://wiki.aaio.so/priem-platezhei/gotovye-cms-moduli-i-sdk/python-3-sdk)
### Features
* It's completely **asynchronous**
* You can use **multiple** clients to work with **multiple** users or shops
* **All methods** for working with API are implemented
* The library returns strictly typed for responses from APIs
* For each method, **docstrings** are used
* The library handle {type: error} responses and throws AAIOBadRequest exception
* Our library was the **first** to be added to the **official** AAIO wiki
* **Modern**, strict code for Python 3.7
## Library Installation
* Install via pip: `pip install aaio`
* Download sources - `git clone https://github.com/kewldan/AAIO`
## Getting Started
### Get user balance
```python
import asyncio
from aaio import AAIO
async def main():
client = AAIO('MERCHANT ID', 'SECRET KEY', 'API KEY')
balances = await client.get_balances()
print(balances) # type='success' code=None message=None balance=625.85 referral=172.96 hold=0.0
asyncio.run(main())
```
### Create payment URL for customer
```python
import asyncio
from aaio import AAIO
async def main():
client = AAIO('MERCHANT ID', 'SECRET KEY', api_key='API KEY')
# New way to create payments
payment_url = await client.get_pay_url(100, 'my_order_id', 'My order description', 'qiwi', 'support@aaio.so',
'referral code', currency='USD',
language='en')
print(payment_url) # Prints payment url for customer
# DEPRECATED METHOD
payment_url = client.create_payment(100, 'my_order_id', 'My order description', 'qiwi', 'support@aaio.so',
'referral code', currency='USD',
language='en')
print(payment_url)
###################
asyncio.run(main())
```
### Create payoff
```python
import asyncio
from aaio import AAIO
async def main():
client = AAIO('MERCHANT ID', 'SECRET KEY', api_key='API KEY')
payoff = await client.create_payoff('qiwi', 100.35, '79998887766', 'my_payoff_id')
print(payoff.status) # in_progress
asyncio.run(main())
```
## Contact
* E-Mail - kewldanil1@gmail.com
* Telegram - [@kewldan](https://t.me/kewldan)
## License
Released under [MIT](/LICENSE) by [@kewldan](https://github.com/kewldan).
Raw data
{
"_id": null,
"home_page": null,
"name": "aaio",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "api, payments",
"author": null,
"author_email": "kewldan <kewldanil1@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/10/f2/a47fa6b7bf10d2cd7b8ad874a337b2fb4f704da29e1bc5e76c7c6e9a9a92/aaio-1.4.2.tar.gz",
"platform": null,
"description": "# AAIO API for Python 3\n\n<div align=\"center\">\n\n<a href=\"https://aaio.so/\" target=\"_blank\">\n\t<img alt=\"AAIO Badge\" src=\"https://aaio.so/assets/svg/banners/big/dark-2.svg\" title=\"Aaio - \u0421\u0435\u0440\u0432\u0438\u0441 \u043f\u043e \u043f\u0440\u0438\u0435\u043c\u0443 \u043e\u043d\u043b\u0430\u0439\u043d \u043f\u043b\u0430\u0442\u0435\u0436\u0435\u0439\">\n</a>\n\n[![kewldan - AAIO](https://img.shields.io/static/v1?label=kewldan&message=AAIO&color=blue&logo=github)](https://github.com/kewldan/AAIO \"Go to GitHub repo\")\n[![GitHub release](https://img.shields.io/github/release/kewldan/AAIO?include_prereleases=&sort=semver&color=blue)](https://github.com/kewldan/AAIO/releases/)\n[![License](https://img.shields.io/badge/License-MIT-blue)](#license)\n\n[![Upload Python Package](https://github.com/kewldan/AAIO/actions/workflows/python-publish.yml/badge.svg)](https://github.com/kewldan/AAIO/actions/workflows/python-publish.yml)\n[![issues - AAIO](https://img.shields.io/github/issues/kewldan/AAIO)](https://github.com/kewldan/AAIO/issues)\n\n[AAIO Official documentation](https://wiki.aaio.so/)\n\n</div>\n\n## About\n\nThis library is a wrapper for the https://aaio.so API **from enthusiast**. All methods are described and all types are\n**explicitly** defined. Methods that create requests to\naaio.so\nreturn a pydantic's models for each response. Please write about all problems related to the library\nto [issues](https://github.com/kewldan/AAIO/issues)\n\nAPI is up-to-date as of *06 September 2024*.\n\n* PyPl - https://pypi.org/project/aaio/\n* Github - https://github.com/kewldan/AAIO\n* Docs - https://kewldan.ru/projects/aaio\n* Demo - https://t.me/aaio_demo_bot\n* Requirements: Python >= 3.7\n* Added to [AAIO SDKs](https://wiki.aaio.so/priem-platezhei/gotovye-cms-moduli-i-sdk/python-3-sdk)\n\n### Features\n\n* It's completely **asynchronous**\n* You can use **multiple** clients to work with **multiple** users or shops\n* **All methods** for working with API are implemented\n* The library returns strictly typed for responses from APIs\n* For each method, **docstrings** are used\n* The library handle {type: error} responses and throws AAIOBadRequest exception\n* Our library was the **first** to be added to the **official** AAIO wiki\n* **Modern**, strict code for Python 3.7\n\n## Library Installation\n\n* Install via pip: `pip install aaio`\n* Download sources - `git clone https://github.com/kewldan/AAIO`\n\n## Getting Started\n\n### Get user balance\n\n```python\nimport asyncio\n\nfrom aaio import AAIO\n\n\nasync def main():\n client = AAIO('MERCHANT ID', 'SECRET KEY', 'API KEY')\n balances = await client.get_balances()\n print(balances) # type='success' code=None message=None balance=625.85 referral=172.96 hold=0.0\n\n\nasyncio.run(main())\n```\n\n### Create payment URL for customer\n\n```python\nimport asyncio\n\nfrom aaio import AAIO\n\n\nasync def main():\n client = AAIO('MERCHANT ID', 'SECRET KEY', api_key='API KEY')\n \n \n # New way to create payments\n payment_url = await client.get_pay_url(100, 'my_order_id', 'My order description', 'qiwi', 'support@aaio.so',\n 'referral code', currency='USD',\n language='en')\n print(payment_url) # Prints payment url for customer\n \n \n # DEPRECATED METHOD\n payment_url = client.create_payment(100, 'my_order_id', 'My order description', 'qiwi', 'support@aaio.so',\n 'referral code', currency='USD',\n language='en')\n print(payment_url)\n ###################\n\n\nasyncio.run(main())\n```\n\n### Create payoff\n\n```python\nimport asyncio\n\nfrom aaio import AAIO\n\n\nasync def main():\n client = AAIO('MERCHANT ID', 'SECRET KEY', api_key='API KEY')\n payoff = await client.create_payoff('qiwi', 100.35, '79998887766', 'my_payoff_id')\n print(payoff.status) # in_progress\n\n\nasyncio.run(main())\n```\n\n## Contact\n\n* E-Mail - kewldanil1@gmail.com\n* Telegram - [@kewldan](https://t.me/kewldan)\n\n## License\n\nReleased under [MIT](/LICENSE) by [@kewldan](https://github.com/kewldan).\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2023 Daniil Tenishev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "Async AAIO api wrapper for python",
"version": "1.4.2",
"project_urls": {
"Homepage": "https://github.com/kewldan/AAIO"
},
"split_keywords": [
"api",
" payments"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8b9138d91081509e48f73d3e3311df999a2f6239ba66aac9410c6271642959c6",
"md5": "c3f6f4d48ea42fef5058aaa1dbc9b205",
"sha256": "19477f5dc8756cd872a08a604f80da96c7e1ec974cc3e41fd3460e13183bbcd0"
},
"downloads": -1,
"filename": "aaio-1.4.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c3f6f4d48ea42fef5058aaa1dbc9b205",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 11962,
"upload_time": "2024-09-06T06:52:25",
"upload_time_iso_8601": "2024-09-06T06:52:25.596472Z",
"url": "https://files.pythonhosted.org/packages/8b/91/38d91081509e48f73d3e3311df999a2f6239ba66aac9410c6271642959c6/aaio-1.4.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "10f2a47fa6b7bf10d2cd7b8ad874a337b2fb4f704da29e1bc5e76c7c6e9a9a92",
"md5": "51fce4232ad82cb981ea92e798dae205",
"sha256": "bf351122d4a57dbd022ba7ea92df95b35b4df40a5fb39cd9a2731d77cb1d0f4d"
},
"downloads": -1,
"filename": "aaio-1.4.2.tar.gz",
"has_sig": false,
"md5_digest": "51fce4232ad82cb981ea92e798dae205",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 87136,
"upload_time": "2024-09-06T06:52:26",
"upload_time_iso_8601": "2024-09-06T06:52:26.902964Z",
"url": "https://files.pythonhosted.org/packages/10/f2/a47fa6b7bf10d2cd7b8ad874a337b2fb4f704da29e1bc5e76c7c6e9a9a92/aaio-1.4.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-06 06:52:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "kewldan",
"github_project": "AAIO",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "aaio"
}