Skip to main content

Async AAIO api wrapper for python

Project description

AAIO API for Python 3

AAIO Official documentation

About

This library is a wrapper for the https://aaio.io API from enthusiasts. All methods are described and all types are explicitly defined. The library does not handle any exceptions, so be careful. Methods that create requests to aaio.io return an unprocessed server response in JSON format (Parsing JSON on the library side). But the create_payment() method for example returns a reference (str) and does not create any I/O bound load. A new session is used for each request. (Maybe will be revised in future). Please write about all problems related to the library in issues. API is up-to-date as of 25 August 2023.

Download

  • pip install aaio
  • Website - PyPi
  • Github - github
  • Sources - git clone https://github.com/kewldan/AAIO

Dependencies

Usage

  1. Get on-hold balance of user
import asyncio

import aaio


async def main():
    client = aaio.AAIO('MERCHANT ID', 'SECRET KEY', 'API KEY')
    balances = await client.get_balances()  # {'balance': 100, 'hold': }
    on_hold = balances['hold']
    print(on_hold)


asyncio.run(main())

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

aaio-1.0.4.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

aaio-1.0.4-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

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