aaio


Nameaaio JSON
Version 1.3.1 PyPI version JSON
download
home_page
SummaryAsync AAIO api wrapper for python
upload_time2024-03-01 11:41:13
maintainer
docs_urlNone
author
requires_python>=3.7
licenseMIT 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 payments api
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 enthusiasts**. 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 *01 March 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')
    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)  # Prints payment url for customer


asyncio.run(main())
```

### Create payoff

```python
import asyncio

from aaio import AAIO


async def main():
    client = AAIO('MERCHANT ID', 'SECRET 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": "",
    "name": "aaio",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "payments,api",
    "author": "",
    "author_email": "kewldan <kewldanil1@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/93/87/d23cd7736210978374746c40a70fe212cac12db0d5deee3a6a4b76285f6c/aaio-1.3.1.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 enthusiasts**. 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 *01 March 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')\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)  # Prints payment url for customer\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')\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.3.1",
    "project_urls": {
        "Homepage": "https://github.com/kewldan/AAIO"
    },
    "split_keywords": [
        "payments",
        "api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4ea0ea730e3d5af0ba183589ba92eca8dab472623d7c901881ac15c0f2b73d84",
                "md5": "bebd520091b3df30c2a9d4de698cde40",
                "sha256": "0e5e55d16861cee31d79e5336a69774ee4b3c00a0bb3440de68a11d143b3f0d0"
            },
            "downloads": -1,
            "filename": "aaio-1.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bebd520091b3df30c2a9d4de698cde40",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 11022,
            "upload_time": "2024-03-01T11:41:11",
            "upload_time_iso_8601": "2024-03-01T11:41:11.299348Z",
            "url": "https://files.pythonhosted.org/packages/4e/a0/ea730e3d5af0ba183589ba92eca8dab472623d7c901881ac15c0f2b73d84/aaio-1.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9387d23cd7736210978374746c40a70fe212cac12db0d5deee3a6a4b76285f6c",
                "md5": "e066f3d8140e384b74636f53491aa7b5",
                "sha256": "92aae5fea5bdaffc50e6116a7450510607de309a740a26c2fd646535de67d8e0"
            },
            "downloads": -1,
            "filename": "aaio-1.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "e066f3d8140e384b74636f53491aa7b5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 9696,
            "upload_time": "2024-03-01T11:41:13",
            "upload_time_iso_8601": "2024-03-01T11:41:13.152094Z",
            "url": "https://files.pythonhosted.org/packages/93/87/d23cd7736210978374746c40a70fe212cac12db0d5deee3a6a4b76285f6c/aaio-1.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-01 11:41:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kewldan",
    "github_project": "AAIO",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "aaio"
}
        
Elapsed time: 0.19340s