Simple async library for qiwi farms
Project description
ALazyQiwi - Async Library for qiwi famrs
- Install package
- Windows ->
$ pip install LazyQiwi - Mac OS & Linux ->
$ pip3 install LazyQiwi
- Windows ->
Usage
Import in your project
from ALazyQiwi import LazyQiwi
Initialize
api = LazyQiwi(token="")
Get account balance
async def bal():
api = LazyQiwi(token="")
return await api.account_balance()
asyncio.run(bal())
>>> [0.0]
Transfer money
async def transfer():
api = LazyQiwi(token="")
await api.pay(account='7910XXXXXXX', amount=10.35, comment="Test transfer")
asyncio.run(transfer())
>>> None
Errors handlers
InvalidTokenError - token is invalid
InRequestError - trying to send http request and got error
APIError - if got error after server return result
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ALazyQiwi-1.tar.gz
(2.9 kB
view details)
File details
Details for the file ALazyQiwi-1.tar.gz.
File metadata
- Download URL: ALazyQiwi-1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c981963a1305f1f88310f135602b00167e67b0ab4be11bbe95e1a7a1a93e02f9
|
|
| MD5 |
c44607faa203294f15e2f1542a6cc918
|
|
| BLAKE2b-256 |
7eb1f352410e39e5ad8735bee228c5707af8f844b562c928147513da2c43d6d7
|