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

Uploaded Source

Built Distribution

monobankua-0.0.1-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file monobankua-0.0.1.tar.gz.

File metadata

  • Download URL: monobankua-0.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for monobankua-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9d379ca39d76996e418c0e63dc4cac0c383255e14e6e372678811ddf6b12b56b
MD5 ec2209f7ad362ccbda00c51ead3355c1
BLAKE2b-256 684333d9472a5835749e27dd21a2c3b247a2ccbc7a4ec3c82010cc14de62e4ff

See more details on using hashes here.

Provenance

File details

Details for the file monobankua-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: monobankua-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for monobankua-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 20fa6884e75a6c64508ed4ca29a49bb27059cea7dc740e79395971c6ac2fa83e
MD5 b59d258509eb22aa5fcb1a186c7b599d
BLAKE2b-256 900142bf12dafaf925124b01840b9964f10a14ecec1c8bcf177feba37ae52be4

See more details on using hashes here.

Provenance

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