Sync/Async version Monobank api
Project description
Mbnk
Sync/Async Python3 Monobank API
Introduction
mbnk - python lib for:
• Monobank Open API
official docs: https://api.monobank.ua/docs/
lib docs: https://github.com/yeghorkikhai/mbnk/blob/master/docs/monobank_open_api.md
• Monobank Open API for providers
official docs: https://api.monobank.ua/docs/corporate.html
lib docs: https://github.com/yeghorkikhai/mbnk/blob/master/docs/monobank_corp_open_api.md
• MonoPay - Monobank Acquiring
official docs: https://api.monobank.ua/docs/acquiring.html
lib docs: https://github.com/yeghorkikhai/mbnk/blob/master/docs/monopay_api.md
Github
https://github.com/yeghorkikhai/mbnk
Installation
pip install mbnk
Get Started with Monobank Open API
Async example:
import os
import asyncio
from aiomonobnk.asyncio import AsyncMonobankOpenAPI
async def main():
async_mono = AsyncMonobankOpenAPI(api_token=os.getenv("MONOBANK_API_TOKEN"))
currency_list = await async_mono.public.currency()
if __name__ == "__main__":
asyncio.run(main())
Sync example:
import os
from aiomonobnk import MonobankOpenAPI
mono = MonobankOpenAPI(
api_token=os.getenv("MONOBANK_API_TOKEN")
)
# Get currencies rates list
currency_list = mono.public.currency()
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
aiomonobnk-0.4.2.tar.gz
(13.3 kB
view hashes)
Built Distribution
aiomonobnk-0.4.2-py3-none-any.whl
(26.0 kB
view hashes)
Close
Hashes for aiomonobnk-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b80e9afbf09a28b86dfc4867abe032e5031f518ea16273312c7f54c67f4dc995 |
|
MD5 | 2cb030898f6c4b7a5eadc16a2ef5ee5c |
|
BLAKE2b-256 | 21daf9aee0aebf71272abeaf1a71ced88487e042c60cccb055ceb17ee2943e53 |