Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

This module provides a YNAB API client implemented using python 3 asyncio.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aioynab, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size aioynab-0.1.2-py3-none-any.whl (6.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size aioynab-0.1.2.tar.gz (7.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page