Skip to main content

Sync/Async version Monobank api

Project description

Mbnk


PyPI

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 mbnk.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 mbnk import MonobankOpenAPI

mono = MonobankOpenAPI(
    api_token=os.getenv("MONOBANK_API_TOKEN")
)

# Get currencies rates list
currency_list = mono.public.currency()

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

mbnk-0.4.2.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

mbnk-0.4.2-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

Details for the file mbnk-0.4.2.tar.gz.

File metadata

  • Download URL: mbnk-0.4.2.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.4.0-156-generic

File hashes

Hashes for mbnk-0.4.2.tar.gz
Algorithm Hash digest
SHA256 bff018f607f3da600de266d287c50fd20a41e1370fa6f0d89eb595ab1e85b3e0
MD5 49829c3f172bf4ec79dc5d6b4cb9781a
BLAKE2b-256 90761012740d3ec4275fcad384366cf033540756652fa4034fa3518d34821dba

See more details on using hashes here.

File details

Details for the file mbnk-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: mbnk-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.4.0-156-generic

File hashes

Hashes for mbnk-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b6a6c72c4ded81c4ea641f25425e43f77bc7f8784ab45aaa1b7f8da48dbd1ca1
MD5 093cec752807c04a901869ff83f2fc44
BLAKE2b-256 e44ed7248da3d94243aee36235898f108ab64d208d7de51f69c1e7132116e4e5

See more details on using hashes here.

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