aioplisio - Asynchronous wrapper for Plisio API
Модуль в разработке, сейчас недоступны методы withdraw
Установка 💾
- Установка, используя пакетный менеджер pip
$ pip install aioplisio
- Установка с GitHub (требуется git)
$ git clone https://github.com/Fsoky/aioplisio
$ cd aioplisio
$ python setup.py install
- Или
$ pip install git+https://github.com/Fsoky/aioplisio
Дополнительно:
Зарегистрируйтесь на сайте Plisio и получите API-ключ.
Официальная документация по API: PLISIO API DOCS
Примеры использования:
- Шаблон
import asyncio
from aioplisio import AIOPlisioClient
async def main() -> None:
async with AIOPlisioClient("API-KEY") as plisio:
...
if __name__ == "__main__":
asyncio.run(main())
- Получение транзакций
async with AIOPlisioClient("YOUR API-KEY") as plisio:
transactions = await plisio.get.transactions() # You can pass txnID for search by it
print(transactions.data)
- Инвойсы (чеки)
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)
...И также другие методы
Metadata
Release files for aioplisio 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aioplisio-1.0.0.tar.gz | 8.5 kB | Without provenance | Details for aioplisio-1.0.0.tar.gz |
Release files / aioplisio-1.0.0.tar.gz
| Download URL | aioplisio-1.0.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db2c3475bd456659de01b8fc079bbdc0f0a5b93bc576ba5f68c3e55955b92d01
|
|
BLAKE2b-256 checksum How to use checksums |
00ae24015baa5bebddb3597a43be8f03e614db4dd78631d1010fd2eb6a759673
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.0
|
Security for aioplisio 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.