Skip to content

YNAB API client implemented using python 3 asyncio.

License

Notifications You must be signed in to change notification settings

boralyl/aioynab

Repository files navigation

aioynab

Pypi Python Versions Documentation Status Build Status Code Coverage

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.

About

YNAB API client implemented using python 3 asyncio.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages