Skip to main content

asyncio-for-ynab

Asyncio client for the YNAB API.

This package is generated from the YNAB OpenAPI spec and uses the OpenAPI Generator Python httpx client.

This project is not affiliated with, endorsed by, or officially connected with YNAB.

Install

python -m pip install asyncio-for-ynab

For local development:

python -m pip install -e ".[dev]"

Quick Start

import asyncio

from asyncio_for_ynab import ApiClient
from asyncio_for_ynab import Configuration
from asyncio_for_ynab import PlansApi
from asyncio_for_ynab import UserApi


async def main() -> None:
    configuration = Configuration(access_token="your-access-token")

    async with ApiClient(configuration) as api_client:
        user_api = UserApi(api_client)
        plans_api = PlansApi(api_client)

        user = await user_api.get_user()
        plans = await plans_api.get_plans()

    print(user)
    print(plans)


asyncio.run(main())

Common Patterns

Create a client once and pass it to any generated API class:

from asyncio_for_ynab import AccountsApi
from asyncio_for_ynab import ApiClient
from asyncio_for_ynab import Configuration


configuration = Configuration(access_token="your-access-token")

async with ApiClient(configuration) as api_client:
    accounts_api = AccountsApi(api_client)
    accounts = await accounts_api.get_accounts()

The package also exports generated models, response objects, and exceptions at the top level:

from asyncio_for_ynab import AccountResponse
from asyncio_for_ynab import ApiException
from asyncio_for_ynab import TransactionResponse

Development

Run the repository checks with pre-commit:

pre-commit run --all-files

Run the test suite:

tox -e py

Release Notes

Package versions mirror the YNAB API spec version.

For example, spec 1.83.0 is published as asyncio-for-ynab==1.83.0.

Download files

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

Source Distribution

asyncio_for_ynab-1.86.0.tar.gz (105.8 kB view details)

Uploaded Source

Built Distribution

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

asyncio_for_ynab-1.86.0-py3-none-any.whl (401.6 kB view details)

Uploaded Python 3

File details

Details for the file asyncio_for_ynab-1.86.0.tar.gz.

File metadata

  • Download URL: asyncio_for_ynab-1.86.0.tar.gz
  • Upload date:
  • Size: 105.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for asyncio_for_ynab-1.86.0.tar.gz
Algorithm Hash digest
SHA256 eefd7ba00380ae373c0f591e6d14efab1ecda584ba27a16dcf936aff0f3c539c
MD5 0b947bdc49f6e8e71e38b38c50dfb640
BLAKE2b-256 f999d72e1f373b4477d8f258fbf8a1f2d173c8a5777dd10d6669f0832e695180

See more details on using hashes here.

Provenance

The following attestation bundles were made for asyncio_for_ynab-1.86.0.tar.gz:

Publisher: release.yml on mxr/asyncio-for-ynab

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

File details

Details for the file asyncio_for_ynab-1.86.0-py3-none-any.whl.

File metadata

File hashes

Hashes for asyncio_for_ynab-1.86.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd087898ba45c89645a64d5af842cde317f9b8f7c02024aabe2e83d4f01425a0
MD5 2a42a47253e0bc0370d4af636c340f03
BLAKE2b-256 43b78e65bcb8882e86905c823bd871be5ae0d1ed6c32c47277e7a75229b94138

See more details on using hashes here.

Provenance

The following attestation bundles were made for asyncio_for_ynab-1.86.0-py3-none-any.whl:

Publisher: release.yml on mxr/asyncio-for-ynab

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

Release history Release notifications | RSS feed

This release

1.86.0 This release

2 files

1.85.0

2 files

1.84.0

2 files

1.83.0

3 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page