Skip to main content

Monobank.ua API client

Project description

Python-monobankua

Build Status

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 = "xxxxxxxxxxxxxxxxxxxxx"

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

Uploaded Source

Built Distribution

monobankua-0.1.6-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for monobankua-0.1.6.tar.gz
Algorithm Hash digest
SHA256 ecbdd38783cb3bf216d8f186893efa78458f50c3bad28303ddc4a82f8d002926
MD5 7db39eb1fbd1768639ffe5b849b33d38
BLAKE2b-256 40a513b4f3a5e7ab1d1e589aa65d080ce81cb3b0bea2f5b3c09270e2fd2581f6

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for monobankua-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 45d7179ca4d6ebac3ca402b9ac58adb819dc7d7088f1218a952d29b6d0060ccc
MD5 43392c322eeac0f52ea8964be9da4d1a
BLAKE2b-256 03caa227bcff26199ce4e338487c068034b10bcb979d5caa9ba290ecb7dd2942

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