Skip to main content

warehouse-sdk

Python client for the Warehouse platform. The distribution name is warehouse-sdk. The import name is plat_sdk.

Requires Python 3.12.

pip install warehouse-sdk

PlatClient.connect takes a bearer token, or a client id and secret. A client id and secret are exchanged at the issuer's token endpoint. Pass the issuer URL (https://cognito-idp.<region>.amazonaws.com/<pool id> for a Cognito user pool). token= skips the exchange.

from plat_sdk import PlatClient

client = PlatClient.connect(
    host="https://demo.wrhs.ai/api",
    client_id="<minted client id>",
    client_secret="<minted secret>",
    issuer="https://cognito-idp.us-east-1.amazonaws.com/<pool id>",
)

for dataset in client.datasets_list().data:
    print(dataset["dataset_id"], dataset["name"], dataset["row_count"])

page = client.sandbox_query(sql="select * from orders limit 20")
print([column["name"] for column in page.data["columns"]])
for row in page.data["rows"]:
    print(row)

host for a token or a client secret is the API base URL, https://<slug>.wrhs.ai/api. Dataset rows from sandbox_query are arrays in columns order. objects_list returns live objects (object_type, key, properties).

PKCE login is plat login --host <slug> from the platform CLI. A slug becomes https://<slug>.wrhs.ai/api, and the refresh token is stored in the OS keychain. This package does not prompt. With that profile saved, PlatClient.connect() with no arguments reads ~/.plat/config.

Metadata

Release files for warehouse-sdk 0.1.0

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

Built distribution (wheel)

Table of built distributions (wheels) for warehouse-sdk 0.1.0
File Interpreter ABI Platform
warehouse_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Release files / warehouse_sdk-0.1.0-py3-none-any.whl

Download URL warehouse_sdk-0.1.0-py3-none-any.whl
Size 79.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f292311473b5a5c34edc633843262cb0c1116e2bd9f689101344bfbc2ef8650
BLAKE2b-256 checksum
How to use checksums
42b72b8b24c05679f8dfdf2f5384152340a54b7517bf41919ba6a086969db9aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

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