# aioplisio - Asynchronous wrapper for Plisio API
> **_Модуль в разработке, сейчас недоступны методы withdraw_**
## Установка 💾
- Установка, используя пакетный менеджер pip
```
$ pip install aioplisio
```
- Установка с GitHub *(требуется [git](https://git-scm.com/downloads))*
```
$ git clone https://github.com/Fsoky/aioplisio
$ cd aioplisio
$ python setup.py install
```
- Или
```
$ pip install git+https://github.com/Fsoky/aioplisio
```
### Дополнительно:
Зарегистрируйтесь на сайте **[Plisio](https://plisio.net/)** и получите API-ключ. \
Официальная документация по API: **[PLISIO API DOCS](https://plisio.net/documentation/getting-started/introduction)**
## Примеры использования:
- Шаблон
```py
import asyncio
from aioplisio import AIOPlisioClient
async def main() -> None:
async with AIOPlisioClient("API-KEY") as plisio:
...
if __name__ == "__main__":
asyncio.run(main())
```
- Получение транзакций
```py
async with AIOPlisioClient("YOUR API-KEY") as plisio:
transactions = await plisio.get.transactions() # You can pass txnID for search by it
print(transactions.data)
```
- Инвойсы (чеки)
```py
async with AIOPlisioClient("YOUR API-KEY") as plisio:
invoice = await plisio.invoice.create(
"ORDER-NAME",
12345001, # Order number
amount=10 # 10 USDT
currency="USDT" # Crypto
source_currency="USD" # Fiat
expire_min=15
)
print(f"Your invoice: {transaction.data.invoice_url}")
transaction = await plisio.get.transactions(invoice.data.txn_id)
print(transaction.data.status)
```
> _...И также другие методы_
Raw data
{
"_id": null,
"home_page": "https://github.com/Fsoky/aioplisio",
"name": "aioplisio",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "api plisio crypto cryptopay plisio-api",
"author": "Fsoky",
"author_email": "cyberuest0x12@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/00/ae/24015baa5bebddb3597a43be8f03e614db4dd78631d1010fd2eb6a759673/aioplisio-1.0.0.tar.gz",
"platform": null,
"description": "# aioplisio - Asynchronous wrapper for Plisio API\r\n\r\n> **_\u041c\u043e\u0434\u0443\u043b\u044c \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435, \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043c\u0435\u0442\u043e\u0434\u044b withdraw_**\r\n\r\n## \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \ud83d\udcbe\r\n- \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0430\u043a\u0435\u0442\u043d\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 pip\r\n```\r\n$ pip install aioplisio\r\n```\r\n- \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441 GitHub *(\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f [git](https://git-scm.com/downloads))*\r\n```\r\n$ git clone https://github.com/Fsoky/aioplisio\r\n$ cd aioplisio\r\n$ python setup.py install\r\n```\r\n- \u0418\u043b\u0438\r\n```\r\n$ pip install git+https://github.com/Fsoky/aioplisio\r\n```\r\n\r\n### \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e:\r\n\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 **[Plisio](https://plisio.net/)** \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 API-\u043a\u043b\u044e\u0447. \\\r\n\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e API: **[PLISIO API DOCS](https://plisio.net/documentation/getting-started/introduction)**\r\n\r\n## \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:\r\n- \u0428\u0430\u0431\u043b\u043e\u043d\r\n```py\r\nimport asyncio\r\nfrom aioplisio import AIOPlisioClient\r\n\r\n\r\nasync def main() -> None:\r\n async with AIOPlisioClient(\"API-KEY\") as plisio:\r\n ...\r\n\r\n\r\nif __name__ == \"__main__\":\r\n asyncio.run(main())\r\n```\r\n- \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439\r\n```py\r\n\r\nasync with AIOPlisioClient(\"YOUR API-KEY\") as plisio:\r\n transactions = await plisio.get.transactions() # You can pass txnID for search by it\r\n print(transactions.data)\r\n```\r\n- \u0418\u043d\u0432\u043e\u0439\u0441\u044b (\u0447\u0435\u043a\u0438)\r\n```py\r\nasync with AIOPlisioClient(\"YOUR API-KEY\") as plisio:\r\n invoice = await plisio.invoice.create(\r\n \"ORDER-NAME\",\r\n 12345001, # Order number\r\n amount=10 # 10 USDT\r\n currency=\"USDT\" # Crypto\r\n source_currency=\"USD\" # Fiat\r\n expire_min=15\r\n )\r\n print(f\"Your invoice: {transaction.data.invoice_url}\")\r\n\r\n transaction = await plisio.get.transactions(invoice.data.txn_id)\r\n print(transaction.data.status)\r\n```\r\n\r\n> _...\u0418 \u0442\u0430\u043a\u0436\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b_\r\n\r\n\r\n",
"bugtrack_url": null,
"license": "",
"summary": "Asynchronous wrapper for Plisio API",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/Fsoky/aioplisio"
},
"split_keywords": [
"api",
"plisio",
"crypto",
"cryptopay",
"plisio-api"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "00ae24015baa5bebddb3597a43be8f03e614db4dd78631d1010fd2eb6a759673",
"md5": "ddf57d9da44f2d626c6c724e9c57870a",
"sha256": "db2c3475bd456659de01b8fc079bbdc0f0a5b93bc576ba5f68c3e55955b92d01"
},
"downloads": -1,
"filename": "aioplisio-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "ddf57d9da44f2d626c6c724e9c57870a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8474,
"upload_time": "2023-10-17T13:56:58",
"upload_time_iso_8601": "2023-10-17T13:56:58.219825Z",
"url": "https://files.pythonhosted.org/packages/00/ae/24015baa5bebddb3597a43be8f03e614db4dd78631d1010fd2eb6a759673/aioplisio-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-17 13:56:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Fsoky",
"github_project": "aioplisio",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "aioplisio"
}