Skip to main content

Monobank.ua API client

Project description

python-monobankua

Python client library for Monobank API.

Installation

pip3 install monobankua

Requirements

* python >= 3.7
* requests >= 2.21

Usage

  1. Create your token at https://api.monobank.ua/
  2. Use it to initialize client. Sample code:
from datetime import datetime
from monobankua import Monobank

TOKEN = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

monobank = Monobank(TOKEN)

currencies_info = monobank.currencies_info()
print(*currencies_info, sep='\n')

client_name, accounts = monobank.client_info()
print(client_name)

for account in accounts:
    print(f'{account.currency.name}: {account}')
    statements = monobank.statements(account.id, datetime(2019, 6, 25))
    print(*statements, sep='\n')

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

monobankua-0.0.5.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

monobankua-0.0.5-py3-none-any.whl (16.6 kB view hashes)

Uploaded Python 3

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