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():
token = "<your token here>"
api = LazyQiwi(token)
return await api.account_balance()
asyncio.run(bal())
>>> [0.0]
Transfer money
async def transfer():
token = "<your token here>"
api = LazyQiwi(token)
await api.pay(account='7910XXXXXXX', amount=10.35, comment="Test transfer")
asyncio.run(transfer())
>>> None
Create account information dump
# In one method
async def main():
token = "<your token here>"
api = LazyQiwi(token)
data = await api.create_account_dump()
print(data)
asyncio.run(main())
Get current account infromation
async def main():
token = "<your token here>"
api = LazyQiwi(token)
basic_data = await api.get_basic_info() # returns dict
account_number = basic_data['basic']['number']['number']
language = basic_data['basic']['language']
personal_data = await api.get_personal_info(account_number) # returns dict
limits = await api.get_accounts_limits(account_number, language) # returns dict
restrictions = await api.get_account_restriction(account_number) # returns list
print(
basic_data, personal_data, limits, restrictions
)
asyncio.run(main())
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.1.tar.gz
(4.4 kB
view details)
File details
Details for the file ALazyQiwi-1.1.tar.gz
.
File metadata
- Download URL: ALazyQiwi-1.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70e8516f6e718e1f97075cbdce0775e0ae56b1afceeb8d4d6f968dd3a57255da |
|
MD5 | b4d7f32eb22bcfe1392a1a4c5e1e2872 |
|
BLAKE2b-256 | 00fef1b263baa40f68b1f2b2c438773fff4d083cd67c4c5f7aeee70d22848b3d |