Micro YNAB
Micro YNAB is a small SDK for the YNAB budgeting app. It provides a simple interface to interact with the YNAB API, allowing you to manage budgets, categories, transactions, and more.
Features
- Manage budgets and budget settings
- Handle categories and category groups
- Work with payees and transactions
- Simple and easy-to-use interface
Installation
To install the package, use pip:
pip install uynab
Usage
Code
Here's a basic example of how to use the SDK:
from uynab.client import YNABClient
client = YNABClient(api_token="YOUR_YNAB_API_TOKEN")
# Get all budgets
budgets = client.budget.get_all_budgets()
print(budgets)
Standalone
python -m uynab budget list
Storing API Token
You can store YNAB API token in an environmental variable: YNAB_API_TOKEN.
For example:
export YNAB_API_TOKEN='<your token>'
For security reasons you can also store API token in a .env file. The application auto-loads the .env file from the root directory if it exists. Format is the same: YNAB_API_TOKEN='<your token>'.
Note: Environment variables defined in your system will override the entries from the .env file.
Documentation
For detailed documentation, visit the docs.
Contributing
Contributions are welcome! Please see the contribution guidelines for more information.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Release files for uynab 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| uynab-0.1.5.tar.gz | 68.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| uynab-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 91.5 kB
Release files / uynab-0.1.5.tar.gz
| Download URL | uynab-0.1.5.tar.gz |
|---|---|
| Size | 68.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b12edfe1d01e4deb4c539f58b4f12b64504c1292c16ebfe2de18ae97af05f965
|
|
BLAKE2b-256 checksum How to use checksums |
f75134541a80534d1b5bf919e2699382a7f477024b07df2867941e244cd01861
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 5, 2025.
Transparency logRelease files / uynab-0.1.5-py3-none-any.whl
| Download URL | uynab-0.1.5-py3-none-any.whl |
|---|---|
| Size | 23.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f5559ac81e6c06c206767c01417665dd7d36951dcd6185c70f8c89653771e4b
|
|
BLAKE2b-256 checksum How to use checksums |
ab3e5be34435c34149fb39e4e81e03da1898b47f261fa538dd90a6194ddc9ba4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 5, 2025.
Transparency log