Skip to main content

Python Worker SDK for tikeo

Project description

Tikeo Python Worker SDK 🐍

🇨🇳 中文 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=1 when strict sandbox isolation is required; this skips host PATH tools/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


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.18.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tikeo-0.3.18-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file tikeo-0.3.18.tar.gz.

File metadata

  • Download URL: tikeo-0.3.18.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

Hashes for tikeo-0.3.18.tar.gz
Algorithm Hash digest
SHA256 782a86c9ea3d79592ba6f32244c516fe3b9dc9f2cdef9ebc8777de8def5c1071
MD5 ae44fbac6c514a573a58da4f2b2df557
BLAKE2b-256 1d8dfdd13c81d5343bdf03d11ffd53a0ab91c0df25a117793238d64b46bbd900

See more details on using hashes here.

File details

Details for the file tikeo-0.3.18-py3-none-any.whl.

File metadata

  • Download URL: tikeo-0.3.18-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

Hashes for tikeo-0.3.18-py3-none-any.whl
Algorithm Hash digest
SHA256 504c4df65be3179b7214851656a82fb4bb9a43061873e52f3b20c66967b04a46
MD5 0482da3e3859b88937e5974876dbc3d4
BLAKE2b-256 5928aabcfd8f7a12901063aff5215c7425ff338f5130f3fbe562002fe1f3f880

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page