Skip to main content

yertle-client

Auto-generated Python client for the Yertle API.

Status: published on PyPI. Generated with openapi-python-client from the backend's OpenAPI spec.

Install

pip install yertle-client

The yertle_client/ directory in this repo is not committed — it's regenerated fresh at publish time from the backend's OpenAPI spec (see .github/workflows/publish-client.yml). See Local development below if you need the code on your machine.

Usage

from yertle_client import AuthenticatedClient
from yertle_client.api.organizations import list_organizations_orgs_get

client = AuthenticatedClient(
    base_url="https://api.yertle.com",
    token="<JWT or PAT>",  # `yrt_*` PAT recommended for API consumers
)
orgs = list_organizations_orgs_get.sync(client=client)
for org in orgs or []:
    print(org.id, org.name)

For a higher-level ergonomic wrapper (import yertle; yertle.orgs.list()), install the SDK facade instead:

pip install yertle

yertle depends on yertle-client transitively — installing it pulls both.

Local development

The clients/python/yertle_client/ directory is .gitignore'd because it's autogenerated. If you need the code locally (for example, to test not-yet-published spec changes against yertle-python), regenerate it:

# From the repo root:
make regen-client        # dumps OpenAPI from local backend, then regens

# Or invoke the script directly for spec-source overrides:
bash clients/python/generate.sh                                     # dump from local backend
OPENAPI_PATH=/path/to/spec.json bash clients/python/generate.sh     # use a local spec file
OPENAPI_URL=http://localhost:8000/openapi.json bash clients/python/generate.sh  # fetch from URL

Then install it into your yertle-python checkout for testing:

# In yertle-python:
uv pip install -e ../yertle/clients/python --force-reinstall

See docs/notes/features/yertle-python/PACKAGING.md "Local dev workflow" (in the backend repo) for the full playbook.

Layout

Path Source Notes
yertle_client/api/ generated (gitignored) one module per API route
yertle_client/models/ generated (gitignored) request/response models (attrs-based)
yertle_client/client.py generated (gitignored) Client and AuthenticatedClient
openapi-config.yaml hand-written (tracked) codegen options (package name, naming)
generate.sh hand-written (tracked) regeneration script
pyproject.toml hand-written (tracked) package metadata + build config
README.md hand-written (tracked) this file

Download files

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

Source Distribution

yertle_client-0.2.0.tar.gz (76.7 kB view details)

Uploaded Source

Built Distribution

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

yertle_client-0.2.0-py3-none-any.whl (257.0 kB view details)

Uploaded Python 3

File details

Details for the file yertle_client-0.2.0.tar.gz.

File metadata

  • Download URL: yertle_client-0.2.0.tar.gz
  • Upload date:
  • Size: 76.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for yertle_client-0.2.0.tar.gz
Algorithm Hash digest
SHA256 64e0f55a46f933d7dbad9169b20a9c8a8b70c27e90cd6430eed5edcbd929bddb
MD5 507df32302e606104e4f304d101b75a8
BLAKE2b-256 5ae05ed8af3743994bad943fda05d83a9cb3f0b19ed045e52fb35a9b0a7b9f4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for yertle_client-0.2.0.tar.gz:

Publisher: publish-client.yml on albertcmiller1/yertle

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

File details

Details for the file yertle_client-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: yertle_client-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 257.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for yertle_client-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cba01f91d4a0c595f959c91ca087ca3bbce1ecc52fab25e41fc24941557379a6
MD5 2e2e69a92aacb75f464ddbb31d968166
BLAKE2b-256 5a8e8b8a60a47d26fbc745e11e76bb4705b76eb8dcf049daa679e1ec68f1a559

See more details on using hashes here.

Provenance

The following attestation bundles were made for yertle_client-0.2.0-py3-none-any.whl:

Publisher: publish-client.yml on albertcmiller1/yertle

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

0.2.0 This release

2 files

0.1.0

2 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