Skip to main content

Monobank.ua API client

Project description

Python-monobankua

PyPI Build Status License: GPL v3

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, webhook_url, accounts = monobank.client_info()
print(client_name)
print(webhook_url)

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

Uploaded Source

Built Distribution

monobankua-0.2.1-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: monobankua-0.2.1.tar.gz
  • Upload date:
  • Size: 4.3 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.2.1.tar.gz
Algorithm Hash digest
SHA256 47202f989aee337ed6ed1bd231ed851d541bdedeb5df55741fa5e9c9809921a8
MD5 3353ad2119b3dac078ca94a2743b6bb0
BLAKE2b-256 836ee63ada3dd67420f35c4046f0ccae4eae9e1c89f081a140dc4b8cbc7b2805

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: monobankua-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 16.9 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1a38f9883eaffaa5b7d9f9ed2d673743dab9cbd8f577c314e3a68ef016148b1
MD5 71f71371c6e4d0b2f0b00e02b335dec4
BLAKE2b-256 fd9418013c8605b861a62477ab18aeec5c28148a3ba2b38302e0ed6df7ba8ce4

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