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:
MonoClientis simple base class for others, can only get currenciesPersonalMonoClient- this class for talk to personal Monobank API(soon)CorporateMonoClient- this class for talk to corporate Monobank API
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
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
aiomono-1.1.5.tar.gz
(4.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiomono-1.1.5.tar.gz.
File metadata
- Download URL: aiomono-1.1.5.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35777a30fb6a3f59a5d1d424bddff0dba8424e0c4eb0ffebea48332ed55f65e8
|
|
| MD5 |
934737f3d7c174970fffe05a733f248f
|
|
| BLAKE2b-256 |
5191346e920f0fdcb4e60a2cbe0a0379fb90bf9776b8d16d3842712d15e63efc
|
File details
Details for the file aiomono-1.1.5-py3-none-any.whl.
File metadata
- Download URL: aiomono-1.1.5-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29aac03aa22e7c0315d92c1f1220ca3ef0fd55eae3dfe9339bbcd5df4d334200
|
|
| MD5 |
300ba6c9ca612661165fab45b282707a
|
|
| BLAKE2b-256 |
7b1ff4a34290d45f5c143d2b61f6e4dd1d0e6ed30d630e43ea6865b0ea2fa88e
|