Skip to main content

zpodsdk

A Python client for the zPodFactory zPod API, generated from the API's OpenAPI document with openapi-python-client. zpodsdk carries the version of the API it was generated from: use the SDK whose major.minor matches your zPod API (zpodsdk 0.8.x for API 0.8.x).

uv add zpodsdk          # or: pip install zpodsdk

Python 3.14 or newer.

Usage

The API authenticates with an access_token header. ZpodClient wraps the generated client and exposes one attribute per operation:

from zpodsdk.zpod_client import ZpodClient

zpod = ZpodClient(
    base_url="https://zpodfactory.example.com:8000",
    headers={"access_token": "your-api-token"},
)

for z in zpod.zpods_get_all.sync():
    print(z.name, z.status)

detail = zpod.zpods_get.sync_detailed(id="name=my-zpod")
print(detail.status_code, detail.parsed)

Every operation has four callables: sync (parsed result, or None), sync_detailed (a Response with status_code, headers, content and parsed), and their asyncio and asyncio_detailed counterparts. Path and query parameters and request bodies are keyword arguments; request and response models live in zpodsdk.models.

The generated Client and AuthenticatedClient are available too, for callers that prefer the plain generated modules under zpodsdk.api.<tag>:

from zpodsdk import Client
from zpodsdk.api.zpods import zpods_get_all

client = Client(base_url="https://zpodfactory.example.com:8000", headers={"access_token": "your-api-token"})
zpods = zpods_get_all.ZpodsGetAll(client).sync()

Certificate verification is on by default; pass verify_ssl="/path/to/bundle.pem" or, for a lab you control, verify_ssl=False to the client.

raise_on_unexpected_status is True in ZpodClient: a status the OpenAPI document does not declare raises zpodsdk.errors.UnexpectedStatus instead of returning None.

Regenerating

The source of truth is the running API. From the repository root, with the dev stack up:

just zpodsdk-update

That exports openapi.json from the API container, runs openapi-python-client in the zpodsdk_builder image with the templates and config.yaml there, and rewrites src/zpodsdk/. This README and pyproject.toml are not generated; edit them by hand.

Releasing

zpodsdk is released from the zpodcore monorepo together with the API, the engine and zcli: one tag, one version, published to PyPI by the release workflow. See tools/README.md at the repository root. Nothing here is published by hand.

Metadata

Release files for zpodsdk 0.9.1

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

Source distribution (sdist)

Source distribution for zpodsdk 0.9.1
File Size Uploaded Provenance Actions
zpodsdk-0.9.1.tar.gz 50.5 kB Without provenance Details for zpodsdk-0.9.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zpodsdk 0.9.1
File Interpreter ABI Platform Actions
zpodsdk-0.9.1-py3-none-any.whl Python 3 none any Details for zpodsdk-0.9.1-py3-none-any.whl

Total release size: 271.3 kB

Release files / zpodsdk-0.9.1.tar.gz

Download URL zpodsdk-0.9.1.tar.gz
Size 50.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ff3f1d2592609ba977a72c953ad2b2172364fd8744e3d52b12f76bb87a4ec94b
BLAKE2b-256 checksum
How to use checksums
0dc765223093a96e43cf5dae4166dba26dda999ce8c8783b568d2d78c3af947c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / zpodsdk-0.9.1-py3-none-any.whl

Download URL zpodsdk-0.9.1-py3-none-any.whl
Size 220.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e42728abe45dfa9b8faf67d6a0493a71a8e2e6e4ed65b6bd2df79fd8def6c8a0
BLAKE2b-256 checksum
How to use checksums
545dbb7c9328a38d93f67df40a71cbf820bda1abcc5da0bea642452a08e92a41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for zpodsdk 0.9.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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