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

Uploaded Source

Built Distribution

monobankua-0.1.3-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: monobankua-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 66ede46a38b5056612a7805a53856bc507d937cee7802bab4ff5d061b826faa2
MD5 bd48508ec245f3b5bbf16f077277cc44
BLAKE2b-256 528f12613bc15c397fcf7fcc3fec1095ba6f63c7abac185c59a1d93796a7729a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: monobankua-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 16.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1637fceecd66dcacb677191fe93e332c9aa27f939fc3bdc618e82a1f2cd20360
MD5 a55127bb634bbb47ab3508a67fc7e487
BLAKE2b-256 07aec007a0388db0d870b2d4d84684926a8d1bf2738d5460211cf02e2c364f0c

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