Metadata-Version: 2.4
Name: tkach-security-client
Version: 0.1.1
Summary: Thin, bounded Python client for the Tkach Security loopback HTTP contract
Author: ECD5A
License: Apache-2.0
Keywords: security,ai,authorization,http
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Security
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# 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:

```text
python -m pip install ./sdk/python
```

```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:

```text
python -m unittest -v
```
