Skip to main content

Add your description here

Project description

AIOMono (Alpha)

The aiomono is fully asynchronous library for Monobank API written in Python 3.8 with asyncio, aiohttp and pydantic.

Setup

  • You get token for your client from MonobankAPI.
  • Install the latest version of the aiomono: pip install aiomono

Examples

We have 3 different classes for use Monobank API:

  • MonoClient is simple base class for others, can only get currencies
  • PersonalMonoClient - this class for talk to personal Monobank API
  • CorporateMonoClient - this class for talk to corporate Monobank API (soon)

Simple get_currency request

import asyncio
from aiomono import MonoClient

mono_client = MonoClient()

async def main():
    async with mono_client as client:
        client_info = await client.get_currency()
        print(client_info)

asyncio.run(main())

client_info request

import asyncio
from aiomono import PersonalMonoClient

MONOBANK_API_TOKEN = 'your token'


async def main():
    try:
        mono_client = PersonalMonoClient(MONOBANK_API_TOKEN)
        client_info = await mono_client.client_info()
        print(f'User name {client_info.name} 😍')
    finally:
        await mono_client.close()

asyncio.run(main())

Resources:

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

aiomono-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiomono-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file aiomono-0.1.0.tar.gz.

File metadata

  • Download URL: aiomono-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.17

File hashes

Hashes for aiomono-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6ad3801442022ba6af630f8687e6eb051b88aa639f7d6f5f021f310b23fd2039
MD5 08d897775a1bce5596f6675af57a4850
BLAKE2b-256 d8f25e0fc27244ee594f296cfc1736a1038cd52a3f732c99637a99add90baae7

See more details on using hashes here.

File details

Details for the file aiomono-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: aiomono-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.17

File hashes

Hashes for aiomono-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62676a7bf252dfc40d47f31c27ff977ed9238165ad42a7a894c9b4fedf8d0fe6
MD5 1d3726d28d2892e35b604737bdb7052e
BLAKE2b-256 ce43ec395f73e5a41dc90dd6fde9c253b9183497e19a1a3230e2fedcc47a358d

See more details on using hashes here.

Supported by

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