Skip to main content

Tkach Python adapter

This is a deliberately small, standard-library-only client for the reviewed local HTTP contract. It is not a Python reimplementation of Tkach Core.

Install the local package while the public PyPI release is still deferred:

python -m pip install ./sdk/python
from tkach_client import TkachClient

with TkachClient("127.0.0.1", 8080, "local-development-secret") as tkach:
    tkach.health()
    response = tkach.run(
        "request-1",
        "lifecycle-1",
        {"messages": [{"role": "user", "content": "hello"}]},
    )
    print(response.status_code, response.body)

The adapter accepts numeric loopback IP addresses only, uses one bounded HTTP request without retries, rejects chunked/ambiguous/oversized responses, and keeps policy interpretation inside the Rust runtime. It is a local carrier, not TLS, process isolation, a public client, or an authority API.

Run the offline contract tests from this directory:

python -m unittest -v

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tkach_security_client-0.1.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

tkach_security_client-0.1.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file tkach_security_client-0.1.1.tar.gz.

File metadata

  • Download URL: tkach_security_client-0.1.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tkach_security_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1a13762c1c13fa4d7c8f326d72e4f3a46ad64b95e5f64b8ff34fea5320d32263
MD5 f787b882639d291e196df67b7540061b
BLAKE2b-256 3a259d3229f7f9c8d9cfeb59b97012a0f8ebda6e0a0dc77b603e8e658968a507

See more details on using hashes here.

Provenance

The following attestation bundles were made for tkach_security_client-0.1.1.tar.gz:

Publisher: publish-pypi.yml on ECD5A/Tkach-Security

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tkach_security_client-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tkach_security_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf2a3e378221a93c2d46626e0c3ee5756c1acf589d3c26425ead85fb517ea1a3
MD5 6a762aa459cb198bac5f17d51fd09665
BLAKE2b-256 7397c792ec66a9455d151bc6b33c97adfbda865245f4cbca465e1fd72bf9be81

See more details on using hashes here.

Provenance

The following attestation bundles were made for tkach_security_client-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on ECD5A/Tkach-Security

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page