SuperTag Python SDK
Build Python Workers and connect them to a persistent SuperTag Gateway. The SDK implements the same language-neutral Worker boundary as the TypeScript SDK:
- Worker and Worker Host descriptors
- protocol v7 negotiation
- outbound, reconnecting WebSocket transport
- heartbeats, concurrent jobs, and cancellation
- ordered Task Attempt events
- reusable conformance checks
- a Codex Harness powered by the official
openai-codexSDK
Install the published SDK with Codex support:
python -m pip install 'supertag[codex]'
The distribution and import namespace both use the product name:
from supertag import CodexHarness, CodexWorker, RemoteWorkerHost
When developing this repository, install the local package instead:
python -m pip install -e './sdks/python[codex]'
The Codex Worker uses an existing Codex sign-in. It runs against a local workspace with a read-only sandbox, streams the answer, and saves an opaque Codex thread checkpoint so the next Task in the Session can resume the conversation.
export SUPERTAG_WORKER_PAIRING_TOKEN='pairing-token-from-the-gateway'
supertag-codex-worker \
--gateway https://gateway.example.com \
--workspace /path/to/repository
The pairing token stays in the environment instead of the command line. The Worker connects outward, so the local host does not need a public inbound port.
To build another Worker, implement describe() and execute(), place it in a LocalWorkerHost, and pass that host to RemoteWorkerHost. Run run_worker_conformance() before connecting it to a Gateway.
The JSON Schemas in the repository's spec/ directory are the source of truth for every language implementation.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file supertag-0.1.0.tar.gz.
File metadata
- Download URL: supertag-0.1.0.tar.gz
- Upload date:
- Size: 53.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06e412ed5cd855ac617c904f6187c1edf4c41ca149bced4bac9bfbcb0d41f463
|
|
| MD5 |
fa32688d54fb771cdb958d1a1bd3c8a4
|
|
| BLAKE2b-256 |
3625a0b5bdce3d5901f47fd5e465917d2693a86e73764a2fea2654789bd18ce7
|
File details
Details for the file supertag-0.1.0-py3-none-any.whl.
File metadata
- Download URL: supertag-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbaae82f607ad243013e5274a1f175101ec7951d6b27b0de3c99704ca78de1a5
|
|
| MD5 |
69d4e27d002a16c4eaa42b4d2fe20c6b
|
|
| BLAKE2b-256 |
ca368bb0f1670a570acb0a6abf56f5ae65f78d8544260f8c6122bb11c02262fa
|