This module provides a YNAB API client implemented using python 3 asyncio.
Project description
YNAB API client implemented using python 3 asyncio.
Install
aioynab can easily be installed using pip and python >= 3.5.3:
$ pip install aioynab
Quick Start
First create a personal access token in your YNAB account. Create a client with that value like the example below.
import asyncio
from aioynab.client import Client
loop = asyncio.get_event_loop()
client = Client('ynab-personal-access-token')
budgets = loop.run_until_complete(client.budgets()))
budget_id = budgets['budgets'][0]['budget_id']
accounts = loop.run_until_complete(client.accounts(budget_id))
account_id = accounts['accounts'][0]['account_id']
transactions = loop.run_until_complete(client.account_transactions(budget_id, account_id))
Documentation
Consult the docs for further information.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aioynab-0.1.2.tar.gz.
File metadata
- Download URL: aioynab-0.1.2.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
357abdcfd2e292c5d6a987ec8a0d8eec744894c5d2a6c58b8ad8c6566119cb4a
|
|
| MD5 |
4ff0e18f3067cf373f895e68e7ae2907
|
|
| BLAKE2b-256 |
90eb411aca6220dce576752c37ae46d3299086d6e65f69d16e6f6d320f5c896c
|
File details
Details for the file aioynab-0.1.2-py3-none-any.whl.
File metadata
- Download URL: aioynab-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.5 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/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66f2d038c4d31dc9a8567ead9d54abc400456524faabf67907305fd096a19692
|
|
| MD5 |
1d9be8074b1e2b9dc2a5893695565dee
|
|
| BLAKE2b-256 |
f7b0aa6baece79601ca5965a75959ef2d808f718ca1a63501ede1290b45e64a0
|