aioynab-0.1.2
توضیحات
This module provides a YNAB API client implemented using python 3 asyncio.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | aioynab-0.1.2 |
| نام | aioynab |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Aaron Godfrey |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/boralyl/aioynab |
| آدرس اینترنتی | https://pypi.org/project/aioynab/ |
| مجوز | MIT |
aioynab
=======
|pypi| |pythonversions| |docs| |build| |codecov|
YNAB_ API client implemented using python 3 asyncio.
Install
-------
aioynab can easily be installed using pip and python >= 3.5.3:
.. code-block:: bash
$ pip install aioynab
Quick Start
-----------
First create a personal access token in your `YNAB account <https://app.youneedabudget.com/settings/developer>`_.
Create a client with that value like the example below.
.. code-block:: python
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.
.. _ynab: https://api.youneedabudget.com/
.. _docs: https://aioynab.readthedocs.io/en/latest/?badge=latest
.. |build| image:: https://api.travis-ci.com/boralyl/aioynab.svg?branch=master
:alt: Build Status
:scale: 100%
:target: https://travis-ci.org/boralyl/aioynab
.. |docs| image:: https://readthedocs.org/projects/aioynab/badge/?version=latest
:alt: Documentation Status
:scale: 100%
:target: https://aioynab.readthedocs.io/en/latest/?badge=latest
.. |codecov| image:: https://codecov.io/gh/boralyl/aioynab/branch/master/graph/badge.svg
:alt: Code Coverage
:scale: 100%
:target: https://codecov.io/gh/boralyl/aioynab
.. |pypi| image:: https://badge.fury.io/py/aioynab.svg
:alt: Pypi
:scale: 100%
:target: https://pypi.org/project/aioynab/
.. |pythonversions| image:: https://img.shields.io/pypi/pyversions/aioynab.svg
:alt: Python Versions
:scale: 100%
:target: https://pypi.org/project/aioynab/
نیازمندی
| مقدار | نام |
|---|---|
| <4.0.0,>=3.0.0 | aiohttp |
| <2.0.0,>=1.5.4 | sphinx |
| <2.0.0,>=1.2.4 | sphinx-autodoc-typehints |
| <1.0.0,>=0.2.4 | sphinx-rtd-theme |
| <2.0.0,>=1.5.0 | sphinxcontrib-httpdomain |
| - | aioresponses |
| - | codecov |
| <5.0.0,>=4.4.1 | coverage |
| <4.0.0,>=3.3.0 | flake8 |
| <5.0.0,>=4.0.0 | pytest |
نحوه نصب
نصب پکیج whl aioynab-0.1.2:
pip install aioynab-0.1.2.whl
نصب پکیج tar.gz aioynab-0.1.2:
pip install aioynab-0.1.2.tar.gz