Metadata-Version: 2.4
Name: truyn-sdk
Version: 0.1.0a2
Summary: First-party Python SDK for the TRUYN Intelligence Network
License-Expression: Apache-2.0
Project-URL: Homepage, https://truyn.org
Project-URL: Repository, https://github.com/inn-media/truyn
Project-URL: Issues, https://github.com/inn-media/truyn/issues
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: cryptography<47,>=43
Dynamic: license-file

# truyn-sdk

**Status:** implemented Developer Release Python client; source/build complete, pre-stable, and accepted as immutable public PyPI prerelease `truyn-sdk==0.1.0a1` with accepted public artifact/provenance evidence.

The Python SDK is one of the five required first-party clients. Its bounded Developer Release contract includes:

- local Ed25519 identity and signed TRUYN envelopes;
- authenticated relay registration/session use;
- authorization-aware discovery;
- `OFFER` / `NEED` / verified provider event / correlated `RESULT`;
- requester-owned direct NEED cancellation through canonical signed `REVOKE` semantics;
- stable API-v1 object/artifact reference shapes;
- authenticated event/stream helpers;
- Agent Descriptor HTTP retrieval, schema/version/expiry validation, identity-key signature verification and protocol/interface negotiation;
- normalized fail-closed errors.

Developer Release coordinate:

```text
truyn-sdk==0.1.0a1
import package: truyn
```

Source-checkout example:

```python
from truyn import TruynLocalNodeClient

client = TruynLocalNodeClient.connect("https://relay.example")
receipt = client.need("reasoning.general", {"question": "Hello"})
result = client.wait_for_result(receipt["needId"])
```

Run the Python source/fixture conformance gate from the repository root:

```bash
node sdk/conformance/run-conformance.mjs --language=python --json
```

Run the real five-language Developer Release network gate:

```bash
node sdk/conformance/run-five-language-e2e.mjs
```

Ordinary CI builds and verifies the Python wheel/sdist as part of the common release bundle and records exact source SHA, byte size and SHA-256 provenance. Public PyPI availability for `truyn-sdk==0.1.0a1` is already accepted; stable release status remains separate.

This is a pre-stable `0.x` SDK. The bounded SDK API-v1 surface follows the accepted TRUYN/1, first-class REST/API, and interoperability contracts, while protocol/profile stability and final Open 1.0 release status remain governed by their own exact-head qualification gates. Provider authorization, visibility and billing remain server/runtime policy, never client-supplied authority.

See `../README.md`, `../conformance/README.md`, `../../docs/getting-started/SDK_QUICKSTART.md`, `../../docs/compatibility/SDK_PACKAGING.md` and `../../docs/architecture/SDK_DEVELOPER_EXPERIENCE.md`.
