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

Uploaded Source

Built Distribution

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

aiomono-1.1.4-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiomono-1.1.4.tar.gz
Algorithm Hash digest
SHA256 ce66c049a4409ced9676b6b3b2aaa09e1162c477a6aa25119fbfffed0f5b7702
MD5 b48f88ba1215225820f63acf6a859ecb
BLAKE2b-256 4d3ae72e905ba609712e21cce9f260114b7cc70252cb3278b675f4c7e2d7c5d8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for aiomono-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 253107f8f44fb0d94ea777f08eb5e89ce17e3370c1b2139fe14c02eaf97e47c9
MD5 1a9256c42e74cebe23a92b4a5582f494
BLAKE2b-256 302156fb366707f6c894999ce7bb36e80f5ed3ff52ef36434ffe88d909b36e5f

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