Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Platz.io Python SDK

Typed Python client for the Platz.io API. It is generated from the backend's OpenAPI schema with openapi-python-client and ships both synchronous and asynchronous clients built on httpx, with full type hints.

Installation

pip install platz

Pre-release versions track the Platz backend betas, so install those with --pre:

pip install --pre platz

Requires Python 3.10+.

Usage

The client is token-authenticated. Create an AuthenticatedClient, then call the operation functions grouped by API collection under platz.api.*. Every operation exposes four entry points: sync / asyncio (return the parsed body) and sync_detailed / asyncio_detailed (return a Response with the status code, headers, and parsed body).

Synchronous

from platz import AuthenticatedClient
from platz.api.deployments import all_deployments

client = AuthenticatedClient(
    base_url="https://your-platz-instance.example.com",
    token="YOUR_API_TOKEN",
)

# Parsed body:
page = all_deployments.sync(client=client, enabled=True)
for deployment in page.items:
    print(deployment.id, deployment.name)

# Full response (status code, headers, parsed body):
response = all_deployments.sync_detailed(client=client)
print(response.status_code, response.parsed.num_total)

Asynchronous

import asyncio

from platz import AuthenticatedClient
from platz.api.deployments import all_deployments


async def main():
    async with AuthenticatedClient(
        base_url="https://your-platz-instance.example.com",
        token="YOUR_API_TOKEN",
    ) as client:
        page = await all_deployments.asyncio(client=client)
        for deployment in page.items:
            print(deployment.name)


asyncio.run(main())

Layout

  • platz.api.<collection>.<operation> — request functions, e.g. platz.api.deployments.all_deployments, platz.api.secrets.create_secret.
  • platz.models — request and response models (attrs classes).
  • platz.AuthenticatedClient / platz.Client — the httpx-backed clients (usable as sync and async context managers).
  • platz.types.Response — the wrapper returned by the *_detailed functions.

Development

The platz/ package is generated from the backend OpenAPI schema and is not committed. To build locally you need uv:

# Regenerate from a schema file, then build the distribution:
./generate-sdk.sh path/to/openapi.yaml
uv build

See AGENTS.md for versioning and release details.

License

Apache-2.0

Metadata

Release files for platz 0.7.0b5

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

Source distribution (sdist)

Source distribution for platz 0.7.0b5
File Size Uploaded Provenance
platz-0.7.0b5.tar.gz 65.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for platz 0.7.0b5
File Interpreter ABI Platform
platz-0.7.0b5-py3-none-any.whl Python 3 none any Details

Total release size: 312.0 kB

Release files / platz-0.7.0b5.tar.gz

Download URL platz-0.7.0b5.tar.gz
Size 65.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4491714d7a2c2f171bb5e365229d51ec3be1f9594a525dfa4082f93cdd3bd919
BLAKE2b-256 checksum
How to use checksums
8aa83ba39a4951ee386b8848cfd9ecc215d85f9aa2ed75c41c3dd2f4a65ef2aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","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 / platz-0.7.0b5-py3-none-any.whl

Download URL platz-0.7.0b5-py3-none-any.whl
Size 246.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72e291de9783ce1f7d7662bff23a0ec72978d104abeda24eb479743ecec1d634
BLAKE2b-256 checksum
How to use checksums
5216bbf3288e982997a9f6bd8cfb4f1b003629b5105f94719e30897fb69864ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","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 platz 0.7.0b5

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