Skip to main content

Micro YNAB - a small SDK for YNAB budgeting app

Project description

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.

Project details


Download files

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

Source Distribution

uynab-0.1.5.tar.gz (68.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uynab-0.1.5-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file uynab-0.1.5.tar.gz.

File metadata

  • Download URL: uynab-0.1.5.tar.gz
  • Upload date:
  • Size: 68.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for uynab-0.1.5.tar.gz
Algorithm Hash digest
SHA256 b12edfe1d01e4deb4c539f58b4f12b64504c1292c16ebfe2de18ae97af05f965
MD5 f586e8657c1ada80b50684826dec279d
BLAKE2b-256 f75134541a80534d1b5bf919e2699382a7f477024b07df2867941e244cd01861

See more details on using hashes here.

Provenance

The following attestation bundles were made for uynab-0.1.5.tar.gz:

Publisher: release.yml on ajwalkiewicz/uynab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file uynab-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: uynab-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for uynab-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0f5559ac81e6c06c206767c01417665dd7d36951dcd6185c70f8c89653771e4b
MD5 ac26db6319695f5cbfd1678a23077b98
BLAKE2b-256 ab3e5be34435c34149fb39e4e81e03da1898b47f261fa538dd90a6194ddc9ba4

See more details on using hashes here.

Provenance

The following attestation bundles were made for uynab-0.1.5-py3-none-any.whl:

Publisher: release.yml on ajwalkiewicz/uynab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page