harness-studio-sdk (Python)
Client of the Harness Studio Control API for Python 3.11+, generated from the API's OpenAPI document with openapi-python-client (httpx and attrs; sync and asyncio).
Source-only: the PyPI project returned 404 on October 20, 2026. Install it from the repository:
pip install ./sdk/python # or: uv pip install ./sdk/python
The generated part (harness_studio_api) is not committed: the build generates it from sdk/openapi.json, which needs Node.js and uv.
Use
from harness_studio import connect, unwrap, HarnessError
from harness_studio_api.api.models import list_models
from harness_studio_api.api.servers import load_model
from harness_studio_api.api.system import get_status
from harness_studio_api.models import LoadRequest
# Finds the running app or `harness serve` through <data dir>/instance.json
# (HARNESS_DATA_DIR, else the app's folder) and uses the session token.
client = connect()
status = unwrap(get_status.sync_detailed(client=client))
print(status.version, status.servers.running)
library = unwrap(list_models.sync_detailed(client=client))
try:
unwrap(load_model.sync_detailed(client=client, body=LoadRequest(alias=library.definitions[0].alias)))
except HarnessError as e:
print(e.code, e.params)
- Two packages:
harness_studio_apiis generated (one module per operation, grouped by tag:harness_studio_api.api.<tag>.<operation>withsync,sync_detailed,asyncio,asyncio_detailed; models inharness_studio_api.models).harness_studiois the small hand-written layer. create_client(base_url, token=...)connects to a given address (another computer, a named token);connect(data_dir=None)anddiscover(data_dir=None)find the local instance.unwrap(response)returns the parsed answer of a*_detailedcall or raisesHarnessErrorwithstatus,code(api.not_found,api.insufficient_scope...),message_keyandparams.stream_events(client, types=[...])yields the event bus (GET /events) as(type, event).
Examples: examples/.
Development
src/harness_studio_api/ is generated from sdk/openapi.json and not committed: uv sync, a build and the pytest session generate it (node sdk/generate.mjs --from-snapshot --skip-typescript). Tests: see sdk/README.md.
Metadata
Release files for harness-studio-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| harness_studio_sdk-0.1.0.tar.gz | 224.6 kB | With provenance | Details for harness_studio_sdk-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| harness_studio_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for harness_studio_sdk-0.1.0-py3-none-any.whl |
Total release size: 836.1 kB
Release files / harness_studio_sdk-0.1.0.tar.gz
| Download URL | harness_studio_sdk-0.1.0.tar.gz |
|---|---|
| Size | 224.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdaef8ec9d90cce12b551cd80281cc59a3192d41c311ac8553fdd4afdc465821
|
|
BLAKE2b-256 checksum How to use checksums |
3587bbb4921d6ddb105469f436b2c1cf62d35a5256653b66fe7420b754781bb1
|
| 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 20, 2026.
Transparency logRelease files / harness_studio_sdk-0.1.0-py3-none-any.whl
| Download URL | harness_studio_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 611.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aeabf521b9844cd1b92b1ab81f68421973c3ef25e55efb0d4439414fe43917ae
|
|
BLAKE2b-256 checksum How to use checksums |
4389041362e99f7d55ebf2cfdc273fb0bc37ce53b1f3c3772ec3bb7fa41627bd
|
| 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 20, 2026.
Transparency logSecurity for harness-studio-sdk 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for harness_studio_sdk-0.1.0.tar.gz
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 20, 2026.
Transparency logA 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.