yertle-client
Auto-generated Python client for the Yertle API.
Status: alpha (
0.0.1). Generated withopenapi-python-clientfrom the backend's OpenAPI spec.
Install
# Not yet on PyPI. Install from this repo:
pip install -e clients/python/
Usage
from yertle_client.auth import client_from_token
from yertle_client.api.organizations import list_organizations_orgs_get
client = client_from_token(
token="<JWT or PAT>",
base_url="https://api.yertle.com",
)
orgs = list_organizations_orgs_get.sync(client=client)
for org in orgs or []:
print(org.id, org.name)
The package re-exports Client and AuthenticatedClient from the top level for direct use, but client_from_token is the recommended entry point.
Regeneration
./generate.sh # dump from local backend, then regen
OPENAPI_PATH=/path/to/spec.json ./generate.sh # use a local spec file
OPENAPI_URL=http://localhost:8000/openapi.json ./generate.sh # fetch from a running backend
Layout
| Path | Source | Notes |
|---|---|---|
yertle_client/api/ |
generated | one module per API route |
yertle_client/models/ |
generated | request/response models (attrs-based) |
yertle_client/client.py |
generated | Client and AuthenticatedClient |
yertle_client/auth.py |
hand-written | client_from_token helper. May be wiped by regeneration — restore from git. |
openapi-config.yaml |
hand-written | codegen options (package name, naming) |
generate.sh |
hand-written | regeneration script |
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yertle_client-0.1.0.tar.gz.
File metadata
- Download URL: yertle_client-0.1.0.tar.gz
- Upload date:
- Size: 77.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
977648f57b29d08a67757578b444741204467959c3d996714269a53339c7a122
|
|
| MD5 |
06fbbbf761c750446378bac1f115e229
|
|
| BLAKE2b-256 |
704695e680f669320862ea988a6d8cfb67eb73e4107e45423503b20d0be31d6e
|
Provenance
The following attestation bundles were made for yertle_client-0.1.0.tar.gz:
Publisher:
publish-client.yml on albertcmiller1/yertle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yertle_client-0.1.0.tar.gz -
Subject digest:
977648f57b29d08a67757578b444741204467959c3d996714269a53339c7a122 - Sigstore transparency entry: 2459137666
- Sigstore integration time:
-
Permalink:
albertcmiller1/yertle@eab891055db286875eecbf214878998cf7eb0a85 -
Branch / Tag:
refs/tags/yertle-client-v0.1.0 - Owner: https://github.com/albertcmiller1
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-client.yml@eab891055db286875eecbf214878998cf7eb0a85 -
Trigger Event:
push
-
Statement type:
File details
Details for the file yertle_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: yertle_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 263.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79fb7e36536c0d8200b14df32d9076d8456127d4dc5aba66df669273b78d9af0
|
|
| MD5 |
e4b75ed055a3180864b7f52ba17b8559
|
|
| BLAKE2b-256 |
6679bd230cbb191ca09e172864dc25ddef97766b4e1a82e2ec274572fa64bcbd
|
Provenance
The following attestation bundles were made for yertle_client-0.1.0-py3-none-any.whl:
Publisher:
publish-client.yml on albertcmiller1/yertle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yertle_client-0.1.0-py3-none-any.whl -
Subject digest:
79fb7e36536c0d8200b14df32d9076d8456127d4dc5aba66df669273b78d9af0 - Sigstore transparency entry: 2459137796
- Sigstore integration time:
-
Permalink:
albertcmiller1/yertle@eab891055db286875eecbf214878998cf7eb0a85 -
Branch / Tag:
refs/tags/yertle-client-v0.1.0 - Owner: https://github.com/albertcmiller1
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-client.yml@eab891055db286875eecbf214878998cf7eb0a85 -
Trigger Event:
push
-
Statement type: