Skip to main content

Simple async library for qiwi farms

Project description

ALazyQiwi - Async Library for qiwi famrs

  1. Install package
    • Windows -> $ pip install LazyQiwi
    • Mac OS & Linux -> $ pip3 install LazyQiwi

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]

Calculate transfer commission

async def main():

    token = ""
    api = LazyQiwi(token)

    ww_amount = 1000
    reciver = '7910XXXXXXX'

    coms = await api.get_commission(ww_amount, reciver)
    return coms

asyncio.run(main())
>>> 10

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


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.2.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file ALazyQiwi-1.2.tar.gz.

File metadata

  • Download URL: ALazyQiwi-1.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for ALazyQiwi-1.2.tar.gz
Algorithm Hash digest
SHA256 4a696b4f6edc08d9cc0d42a70a0349bf73bc8873f691e1179e29d4b17fe0f640
MD5 e157c2d9dafa2129fa43b37fb6f00d7c
BLAKE2b-256 926f365b0181ff914e27e44976c5b5aac7cf330a95fc272fa781bd036689c15f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page