Skip to main content

codapact-ynab

The YNAB coda: a typed Python client and ynab command-line tool for the YNAB API, generated from YNAB's OpenAPI contract by Codapact.

Replaces ynab-api-cli, which is no longer maintained.

Install

uv tool install codapact-ynab     # or: pipx install codapact-ynab
ynab --help

Requires Python 3.13+.

Credentials

Create a personal access token under YNAB Account Settings → Developer Settings, then either:

ynab auth login        # saves it in the OS keyring
ynab doctor            # checks settings, credentials, and connectivity

or set YNAB_BEARER in the environment. YNAB_BEARER_COMMAND runs a command that prints the token (for example a password manager).

Use

ynab plans list
ynab accounts list -o table
ynab transactions list --since-date 2026-01-01 --query 'data.transactions[].payee_name'
ynab describe --brief  # every command, for scripts and agents

--plan-id defaults to last-used. --dry-run prints the HTTP request without sending it; commands that delete ask for confirmation (or --yes).

As a library:

from codapact_ynab import Client

client = Client()

How this repository works

Path What it is
openapi.yaml YNAB's contract, pinned (currently API 1.91.0)
codapact.yaml Codapact project file: shaping rules and targets
gen/python/ Generated code and tests. Do not edit; regenerate
pyproject.toml Hand-written packaging: PyPI metadata and the release version
uvx codapact==0.8.0 sync --check   # has YNAB published a new contract?
uvx codapact==0.8.0 sync           # pull it into openapi.yaml
uvx codapact==0.8.0 generate       # regenerate gen/python
uv run pytest                      # offline tests

CI fails if gen/python differs from what the pinned Codapact produces. Releases are cut by release-please and published to PyPI through trusted publishing.

Metadata

Release files for codapact-ynab 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codapact-ynab 0.2.0
File Size Uploaded Provenance Actions
codapact_ynab-0.2.0.tar.gz 54.7 kB With provenance Details for codapact_ynab-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for codapact-ynab 0.2.0
File Interpreter ABI Platform Actions
codapact_ynab-0.2.0-py3-none-any.whl Python 3 none any Details for codapact_ynab-0.2.0-py3-none-any.whl

Total release size: 95.1 kB

Release files / codapact_ynab-0.2.0.tar.gz

Download URL codapact_ynab-0.2.0.tar.gz
Size 54.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1a92bf106df00e5aa5dbbb81bef177f5189c0b232542d7b670be551ac9cf4a2b
BLAKE2b-256 checksum
How to use checksums
029cf55b10f5e4d1ae78446c86c976babfd8b3a2da02409bc4199a75df51dea1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 14, 2026.

Transparency log

Release files / codapact_ynab-0.2.0-py3-none-any.whl

Download URL codapact_ynab-0.2.0-py3-none-any.whl
Size 40.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5663262966a167234be75e866a691aa5780503290b38babd8f7d78bcd8e44f4b
BLAKE2b-256 checksum
How to use checksums
b4a2e1732662d5d1fd12c8d6b20e2e22f289f09fdc8127dc34b6319e6b14d6d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 14, 2026.

Transparency log

Security for codapact-ynab 0.2.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for codapact_ynab-0.2.0.tar.gz

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 Nov 14, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

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