Python Worker SDK for tikeo
Project description
Tikeo Python Worker SDK 🐍
Python SDK aligned with the Java, Rust, Go, and Node.js Worker SDKs.
Runtime requirements
- Python 3.11+ is required by
pyproject.toml. - CI verifies the SDK and demo with Python 3.12.
Features
- Worker Tunnel client with structured capabilities.
- Task processors and precise task-scoped logs.
- Standard-library SDK diagnostics through
configure_logging(LogConfig.from_env()). - Optional SDK file output to
tikeo-sdk.log. - Management API client using
x-tikeo-api-key. - SRT/Deno/container/local script runners and fail-closed unavailable handlers.
Usage
from tikeo import Client, LogConfig, configure_logging, local_config
configure_logging(LogConfig.from_env())
config = local_config("http://127.0.0.1:9998", "orders-python-1")
config.namespace = "dev-alpha"
config.app = "orders"
config.add_normal_processor("demo.echo", "Echo payload demo processor")
client = Client(config)
Operational cautions
- Sandbox auto-install is background prewarm only: SDK startup never waits for downloads; missing tools stay unadvertised and fail closed until available.
- Set
TIKEO_SANDBOX_STRICT_ISOLATION=1when strict sandbox isolation is required; this skips hostPATHtools/interpreters and uses only sandbox-tools cache binaries. - Do not log API keys or raw payloads through SDK diagnostics.
- Use task context logging for execution output that belongs in instance logs.
- Keep script runners fail-closed when sandbox tools are unavailable.
Verification
python -m pip install -e .[test]
python -m pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tikeo-0.3.20.tar.gz
(27.4 kB
view details)
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
tikeo-0.3.20-py3-none-any.whl
(26.7 kB
view details)
File details
Details for the file tikeo-0.3.20.tar.gz.
File metadata
- Download URL: tikeo-0.3.20.tar.gz
- Upload date:
- Size: 27.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e167e10c969c42f5cf94b3c4031e417db3c108b2b6716149d7932fca7fbea028
|
|
| MD5 |
09972324ff22bc55477c95e86da01471
|
|
| BLAKE2b-256 |
aff6cd8db216b5a376618e41632a1654c95f1717f60d22eba53f3ddf17ccedb5
|
File details
Details for the file tikeo-0.3.20-py3-none-any.whl.
File metadata
- Download URL: tikeo-0.3.20-py3-none-any.whl
- Upload date:
- Size: 26.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daaa3ed785d0cfa6164a391bdffa21b165098dda6a3414d3406d2e47075de96a
|
|
| MD5 |
e7488809e9172c9ced27503700117b22
|
|
| BLAKE2b-256 |
f5015a607b86b0559660cdd32b0f9e29d88596e9190df5e2f230e3c8e2a9f30e
|