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 published package from PyPI:

python -m pip install tkach-security-client==0.1.2

For source development, use python -m pip install ./sdk/python from the repository root.

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.

ClientResponse.kind provides the shared finite result classification: success, refused, provider_failure, outcome_unknown, replay_or_cancelled, unavailable, invalid_request, effect_failed, or other. These are observations only; the client never retries, and outcome_unknown must not be used to repeat an action.

Each exchange now has a 35-second total deadline by default. The current source also accepts a trusted finite timeout in seconds greater than 0 and up to 120; a timeout is not a retry signal and does not prove that an effect did not happen. The 0.1.2 package carries the bounded deadline and slow-response hardening.

health() is liveness only. ready() checks the unauthenticated /readyz admission signal; it becomes non-ready when the runtime is shutting down or its non-evicting replay ledger is full. It does not prove provider connectivity or effect availability. This readiness method is part of the 0.1.2 adapter release.

Run the offline contract tests from this directory:

python -m unittest -v

Metadata

Release files for tkach-security-client 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tkach-security-client 0.1.2
File Size Uploaded Provenance Actions
tkach_security_client-0.1.2.tar.gz 6.0 kB With provenance Details for tkach_security_client-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tkach-security-client 0.1.2
File Interpreter ABI Platform Actions
tkach_security_client-0.1.2-py3-none-any.whl Python 3 none any Details for tkach_security_client-0.1.2-py3-none-any.whl

Total release size: 12.2 kB

Release files / tkach_security_client-0.1.2.tar.gz

Download URL tkach_security_client-0.1.2.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c82177164edc8f06a4ad846567198c3279e9c5445bebf6266efabca6c69477c6
BLAKE2b-256 checksum
How to use checksums
74da4b75a99db91088cbbdf7db2e7e18cf058ef1025d4021ca96c2f34366ed50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release files / tkach_security_client-0.1.2-py3-none-any.whl

Download URL tkach_security_client-0.1.2-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db7fedd40a19cafcd19cb604ef2722fcc6a092ec7b60c6b86fc8235dcee9bf1e
BLAKE2b-256 checksum
How to use checksums
d8a325e6092a80c64b38d4aed732fba9eb6ddd6373b36d36bbe8cef5b4a22feb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Security for tkach-security-client 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tkach_security_client-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files Full provenance

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