pynab-client
Python API module for interfacing with You Need a Budget's (YNAB) v1 API
Only runs on python >3.6 .....#sorrynotsorry
installation
Easy way
pip install pynab-client
Less easy way
git clone https://github.com/irunasroot/pynab-client.git
cd pynab-client
python setup.py install
Usage
from pynabapi import YnabClient
client = YnabClient("my-api-token")
my_budgets = client.get_budget()
API
YnabClient.get_budget()
The mother load. By default you'll get a summary list of all Budgets you have on your account. If you're looking
for a single budget you can specify the budget_id or by default it will pull data for the last opened budget.
:param summary: Set summary to False if you want an entire payload of a single budget
:default: True
:param budget_id: The budget id of the budget you want to view data from.
:default: last-used which is your last opened budget.
:return: Returns Budgets object as a list of Budget objects or a single Budget object
YnabClient.get_account()
:param account_id: Provide account_id to retrieve a single known account.
:default: None
:param budget_id: The budget id of the budget you want to view data from.
:default: last-used which is your last opened budget.
:return: Returns Accounts object as a list of Account objects or a single Account object
YnabClient.get_budgetmonth()
Get budget month or months. If specifying the month then a list of categories are also provided.
:param month: Provide month to retrieve a single known month.
:default: None
:param budget_id: The budget id of the budget you want to view data from.
:default: last-used which is your last opened budget.
:return: Returns BudgetMonths object as a list of BudgetMonth objects or a single BudgetMonth object
YnabClient.get_category()
Get budget category or categories. If specifying the month then you also need to specify a category_id
:param category_id: The category ID of the specific category you want to retrieve
:default: None
:param month: The month of the category you want to retrieve format: yyyy-MM-dd
:default: None
:param budget_id: The budget id of the budget you want to view data from.
:default: last-used which is your last opened budget.
:return: Returns BudgetCategories object as a list of BudgetCategory objects or a single BudgetCategory object
YnabClient.get_payee()
Get budget payee or payees.
:param payee_id: Provide payee_id to retrieve a single known payee.
:param budget_id: The budget id of the budget you want to view data from.
:default: last-used which is your last opened budget.
:return: Returns Payees object as a list of Payee objects or a single Payee object
YnabClient.get_transaction()
Get budget transaction or transactions.
:param transaction_id: Provide transaction_id to retrieve a single known transaction.
:default: None
:param budget_id: The budget id of the budget you want to view data from.
:default: last-used which is your last opened budget.
:return: Returns Transactions object as a list of Transaction objects or a single Transaction object
Metadata
Release files for pynab-client 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pynab-client-0.2.tar.gz | 6.8 kB | Without provenance | Details for pynab-client-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pynab_client-0.2-py3-none-any.whl | Python 3 | none | any | Details for pynab_client-0.2-py3-none-any.whl |
Total release size: 29.5 kB
Release files / pynab-client-0.2.tar.gz
| Download URL | pynab-client-0.2.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97b3bf4649da85d6cb002f8dbfe1f35550eab212ebc908819cffab49fa8f0094
|
|
BLAKE2b-256 checksum How to use checksums |
369a2820782f3b33e473a953374b68fe104e74f7655ff06baaeae46fa89c64a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / pynab_client-0.2-py3-none-any.whl
| Download URL | pynab_client-0.2-py3-none-any.whl |
|---|---|
| Size | 22.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
107544b9189f2abb4595253d1059fe53d02e8e6313f8254897e66c956b063ce3
|
|
BLAKE2b-256 checksum How to use checksums |
87f4ee259fe5d00c76d9ac6d85c84ecde83a9ad485c6843c56453939155500ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for pynab-client 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.