Metadata-Version: 2.1
Name: mbnk
Version: 0.0.7
Summary: Sync/Async version monobank api
License: MIT
Author: yeghorkikhai
Author-email: yeghorkikhai@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown

## Sync/Async Python3 Monobank API

### Installation
```python
pip install mbnk
```

### Getting Started

```python
import os
from mbnk import Monobank

# Your Monobank API token 
TOKEN = os.getenv('<X-Token>')

mbnk = Monobank(api_token=TOKEN)

#Get currencies rates list
currencies_list = mbnk.public.currency_rates()
print(currencies_list)
```

```python

#Get Client Info
client_info = mbnk.personal.info()

#Setup webhook url
WEB_HOOK_URL = 'https://example.com/webhook/endpoint'
mbnk.personal.set_webhook(web_hook_url=WEB_HOOK_URL)

#Get statement
from_timestamp = (datetime.now() + timedelta(days=-31)).timestamp()
statement = mbnk.personal.statement(from_date=int(from_timestamp))
```
