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_sdk_processor("demo.echo")
client = Client(config)

Operational cautions

  • 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.2.10.tar.gz (24.3 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.2.10-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tikeo-0.2.10.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for tikeo-0.2.10.tar.gz
Algorithm Hash digest
SHA256 6594779bcfb96b148e5b5f3574ac8f44bb7f12d216a01b2c441245d4fcb44779
MD5 4857909329e800ee9c3a3e217d1ce13c
BLAKE2b-256 19aedc7ee2f735307c1c0748d8ea1d1a084b05cf3b7ccfed2dd231e69b9d010b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tikeo-0.2.10-py3-none-any.whl
  • Upload date:
  • Size: 24.2 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.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 35d96fd74b5a790a5a443e862e2e0d21c7d68973361f76310b9a5305b3549387
MD5 6c748180192b0568de98032fdd056b6e
BLAKE2b-256 aed658262be0a59f6c5c5c43ebd94680b98ebc3616863df7c01958e5b7ec250c

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