Skip to main content

xos-sdk

The Python SDK for the XOS public API. Models, methods and the operation table are generated from the OpenAPI v1 document, so every operation in the API reference is a method. It uses only the standard library and runs on Python 3.9 or later.

pip install xos-sdk

Use

import os
from xos_sdk import XosClient

xos = XosClient("https://api.ghxstship.tech/v1", api_key=os.environ["XOS_API_KEY"])

response = xos.projects.get(project_id)
xos.projects.update(project_id, {"name": "Harborfront Fall Series"}, if_match=response.etag)

for po in xos.purchase_orders.list_all(filter={"po_state": {"eq": "Approved"}}):
    print(po["po_number"])
  • Resources are snake_case attributes; purchaseOrders.approve is xos.purchase_orders.approve(po_id, body).
  • POST methods send an Idempotency-Key and reuse it on retries; updates take if_match.
  • Rows are plain dictionaries typed as TypedDict models, and the package ships py.typed.

Documentation

Guide: Python SDK.

Versioning

The package version follows the XOS release (v4.0.0 publishes 4.0.0). Within /v1 the API changes only additively.

License

MIT. See LICENSE. The XOS platform itself is AGPL-3.0-only.

Metadata

Release files for xos-sdk 4.4.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 xos-sdk 4.4.0
File Size Uploaded Provenance Actions
xos_sdk-4.4.0.tar.gz 344.2 kB Without provenance Details for xos_sdk-4.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xos-sdk 4.4.0
File Interpreter ABI Platform Actions
xos_sdk-4.4.0-py3-none-any.whl Python 3 none any Details for xos_sdk-4.4.0-py3-none-any.whl

Total release size: 688.6 kB

Release files / xos_sdk-4.4.0.tar.gz

Download URL xos_sdk-4.4.0.tar.gz
Size 344.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a03b63c8f5ceb51cb67f1e5ce632457881b413e8e600a2af1dfeed13c77c8039
BLAKE2b-256 checksum
How to use checksums
278b8837bac6a8de04cd295f8254064da295b5c08c0a714c8dc371f78112042d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / xos_sdk-4.4.0-py3-none-any.whl

Download URL xos_sdk-4.4.0-py3-none-any.whl
Size 344.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a95541edbdcee5668fa3ccf2fc0a8055b4a07f58b52a4db1b3c487c1839e5c33
BLAKE2b-256 checksum
How to use checksums
1bf8b39a4fcbe0041515e7c4b16c1b8f86a23ebd1e3676bbcb2f432fb7c0f5ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Security for xos-sdk 4.4.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