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
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
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a13762c1c13fa4d7c8f326d72e4f3a46ad64b95e5f64b8ff34fea5320d32263
|
|
| MD5 |
f787b882639d291e196df67b7540061b
|
|
| BLAKE2b-256 |
3a259d3229f7f9c8d9cfeb59b97012a0f8ebda6e0a0dc77b603e8e658968a507
|
Provenance
The following attestation bundles were made for tkach_security_client-0.1.1.tar.gz:
Publisher:
publish-pypi.yml on ECD5A/Tkach-Security
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tkach_security_client-0.1.1.tar.gz -
Subject digest:
1a13762c1c13fa4d7c8f326d72e4f3a46ad64b95e5f64b8ff34fea5320d32263 - Sigstore transparency entry: 2804531747
- Sigstore integration time:
-
Permalink:
ECD5A/Tkach-Security@76d428d2369a73fc26f69551d38ba6e7af2338b1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ECD5A
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@76d428d2369a73fc26f69551d38ba6e7af2338b1 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file tkach_security_client-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tkach_security_client-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf2a3e378221a93c2d46626e0c3ee5756c1acf589d3c26425ead85fb517ea1a3
|
|
| MD5 |
6a762aa459cb198bac5f17d51fd09665
|
|
| BLAKE2b-256 |
7397c792ec66a9455d151bc6b33c97adfbda865245f4cbca465e1fd72bf9be81
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tkach_security_client-0.1.1-py3-none-any.whl -
Subject digest:
cf2a3e378221a93c2d46626e0c3ee5756c1acf589d3c26425ead85fb517ea1a3 - Sigstore transparency entry: 2804531877
- Sigstore integration time:
-
Permalink:
ECD5A/Tkach-Security@76d428d2369a73fc26f69551d38ba6e7af2338b1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ECD5A
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@76d428d2369a73fc26f69551d38ba6e7af2338b1 -
Trigger Event:
workflow_dispatch
-
Statement type: