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.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 zpodsdk 0.9.0
File Size Uploaded Provenance Actions
zpodsdk-0.9.0.tar.gz 50.5 kB Without provenance Details for zpodsdk-0.9.0.tar.gz

Built distribution (wheel)

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

Total release size: 271.3 kB

Release files / zpodsdk-0.9.0.tar.gz

Download URL zpodsdk-0.9.0.tar.gz
Size 50.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ce859f5515f0a2210a2c976640df0d7c198e7f98dd68c59517acd9dfb72ced67
BLAKE2b-256 checksum
How to use checksums
a47433273fd715cbc499ed518e6e6250763e44cc1c8b54dd9305a0b4c606be15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.0-py3-none-any.whl

Download URL zpodsdk-0.9.0-py3-none-any.whl
Size 220.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0248d3ca72897a6703aad416dffe7e0d9d6971f4461783e24ca9879ce8e3aa63
BLAKE2b-256 checksum
How to use checksums
f26d357ed59ab13b2abd9b8d211b8b0eaa9f30150faa0cf2373fc97dd19b9a19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.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.

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