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
- Create your token at https://api.monobank.ua/
- 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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file monobankua-0.0.5.tar.gz
.
File metadata
- Download URL: monobankua-0.0.5.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bffe853462356f2c684d1bf22fd6c1637f05f70a00b4b46675a93bf2a290205b |
|
MD5 | cfd949780f20e9c0cddcad1d039cbbfc |
|
BLAKE2b-256 | acf18b662c6e25a7fded8a7b059429fb75606ff5faec63135a11e048ac29b53a |
Provenance
File details
Details for the file monobankua-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: monobankua-0.0.5-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72c7ec046819f8eb5e020c2247dae85c4a7d988f16b41a385fd1bfdc42cd5f63 |
|
MD5 | 1f4c81b0bdb3348ddd74428ede2f8095 |
|
BLAKE2b-256 | f1d4326b006e5248bbb58688a11d6cec8a5a551124fb2c941b69d9d0c630ab12 |