helixid-sdk-py 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. helixid_sdk_py-0.1.1/LICENSE +201 -0
  2. helixid_sdk_py-0.1.1/PKG-INFO +260 -0
  3. helixid_sdk_py-0.1.1/README.md +229 -0
  4. helixid_sdk_py-0.1.1/pyproject.toml +74 -0
  5. helixid_sdk_py-0.1.1/setup.cfg +4 -0
  6. helixid_sdk_py-0.1.1/src/helix_crewai/__init__.py +39 -0
  7. helixid_sdk_py-0.1.1/src/helix_crewai/middleware.py +72 -0
  8. helixid_sdk_py-0.1.1/src/helix_crewai/py.typed +0 -0
  9. helixid_sdk_py-0.1.1/src/helix_crewai/scope_filter.py +49 -0
  10. helixid_sdk_py-0.1.1/src/helix_langchain/__init__.py +23 -0
  11. helixid_sdk_py-0.1.1/src/helix_langchain/middleware.py +109 -0
  12. helixid_sdk_py-0.1.1/src/helix_langchain/py.typed +0 -0
  13. helixid_sdk_py-0.1.1/src/helix_langchain/scope_filter.py +49 -0
  14. helixid_sdk_py-0.1.1/src/helix_mcp_middleware/__init__.py +28 -0
  15. helixid_sdk_py-0.1.1/src/helix_mcp_middleware/attach.py +22 -0
  16. helixid_sdk_py-0.1.1/src/helix_mcp_middleware/middleware.py +42 -0
  17. helixid_sdk_py-0.1.1/src/helix_mcp_middleware/py.typed +0 -0
  18. helixid_sdk_py-0.1.1/src/helix_mcp_middleware/types.py +40 -0
  19. helixid_sdk_py-0.1.1/src/helix_sdk/__init__.py +138 -0
  20. helixid_sdk_py-0.1.1/src/helix_sdk/client.py +387 -0
  21. helixid_sdk_py-0.1.1/src/helix_sdk/codes.py +119 -0
  22. helixid_sdk_py-0.1.1/src/helix_sdk/delegation.py +61 -0
  23. helixid_sdk_py-0.1.1/src/helix_sdk/did.py +60 -0
  24. helixid_sdk_py-0.1.1/src/helix_sdk/errors.py +641 -0
  25. helixid_sdk_py-0.1.1/src/helix_sdk/grant.py +69 -0
  26. helixid_sdk_py-0.1.1/src/helix_sdk/http_adapter.py +66 -0
  27. helixid_sdk_py-0.1.1/src/helix_sdk/jwt.py +82 -0
  28. helixid_sdk_py-0.1.1/src/helix_sdk/keys.py +152 -0
  29. helixid_sdk_py-0.1.1/src/helix_sdk/proof.py +75 -0
  30. helixid_sdk_py-0.1.1/src/helix_sdk/py.typed +0 -0
  31. helixid_sdk_py-0.1.1/src/helix_sdk/renewal.py +69 -0
  32. helixid_sdk_py-0.1.1/src/helix_sdk/scope.py +23 -0
  33. helixid_sdk_py-0.1.1/src/helix_sdk/session_manager.py +161 -0
  34. helixid_sdk_py-0.1.1/src/helix_sdk/tool_vp.py +50 -0
  35. helixid_sdk_py-0.1.1/src/helix_sdk/verify.py +30 -0
  36. helixid_sdk_py-0.1.1/src/helix_sdk/vp_builder.py +105 -0
  37. helixid_sdk_py-0.1.1/src/helix_sdk/vp_crypto.py +114 -0
  38. helixid_sdk_py-0.1.1/src/helix_sdk/wallet.py +313 -0
  39. helixid_sdk_py-0.1.1/src/helixid_sdk_py.egg-info/PKG-INFO +260 -0
  40. helixid_sdk_py-0.1.1/src/helixid_sdk_py.egg-info/SOURCES.txt +44 -0
  41. helixid_sdk_py-0.1.1/src/helixid_sdk_py.egg-info/dependency_links.txt +1 -0
  42. helixid_sdk_py-0.1.1/src/helixid_sdk_py.egg-info/requires.txt +33 -0
  43. helixid_sdk_py-0.1.1/src/helixid_sdk_py.egg-info/top_level.txt +4 -0
  44. helixid_sdk_py-0.1.1/tests/test_delegation_flow_mocked.py +308 -0
  45. helixid_sdk_py-0.1.1/tests/test_framework_adapters.py +172 -0
  46. helixid_sdk_py-0.1.1/tests/test_golden_vectors.py +105 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing
141
+ the origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 DgVerse LLP
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,260 @@
1
+ Metadata-Version: 2.4
2
+ Name: helixid-sdk-py
3
+ Version: 0.1.1
4
+ Summary: Python SDK for HelixID -- decentralized agent identity via DID/VC.
5
+ Author: DgVerse LLP
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/helixid/helix-sdk-py
8
+ Project-URL: Repository, https://github.com/helixid/helix-sdk-py
9
+ Requires-Python: >=3.9
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Requires-Dist: pynacl<2.0,>=1.5
13
+ Requires-Dist: cryptography>=41.0
14
+ Requires-Dist: requests>=2.31
15
+ Provides-Extra: dev
16
+ Requires-Dist: pytest>=7.4; extra == "dev"
17
+ Requires-Dist: pytest-cov>=4.1; extra == "dev"
18
+ Requires-Dist: langchain-core>=0.3; python_version >= "3.10" and extra == "dev"
19
+ Requires-Dist: crewai>=1.0; python_version >= "3.10" and extra == "dev"
20
+ Provides-Extra: mcp-middleware
21
+ Requires-Dist: mcp<2,>=1.9; python_version >= "3.10" and extra == "mcp-middleware"
22
+ Provides-Extra: langchain
23
+ Requires-Dist: langchain-core>=0.3; python_version >= "3.10" and extra == "langchain"
24
+ Provides-Extra: crewai
25
+ Requires-Dist: crewai>=1.0; python_version >= "3.10" and extra == "crewai"
26
+ Provides-Extra: all
27
+ Requires-Dist: mcp<2,>=1.9; python_version >= "3.10" and extra == "all"
28
+ Requires-Dist: langchain-core>=0.3; python_version >= "3.10" and extra == "all"
29
+ Requires-Dist: crewai>=1.0; python_version >= "3.10" and extra == "all"
30
+ Dynamic: license-file
31
+
32
+ # helixid-sdk-py
33
+
34
+ Python SDK for [HelixID](https://github.com/helixid/helixid) -- decentralized
35
+ agent identity via DID/VC standards (did:hedera, did:key, did:web), delegation,
36
+ and Verifiable Presentation verification.
37
+
38
+ This is the Python counterpart to
39
+ [`helix-sdk-js`](https://github.com/helixid/helix-sdk-js), following the same
40
+ **SDK-API-only** architecture (see `docs/proposal-sdk-api-only.md` and
41
+ `docs/proposal-retire-core-package.md` in the `helixid/helixid` repo): every
42
+ SDK, in every language, depends only on the HelixID API -- never on a shared
43
+ "core" package -- except for private-key operations that must stay local:
44
+ keygen, sign, canonical-hash and `VPBuilder.sign()`, which issuers and Service
45
+ Providers still use to sign with their own keys. Verification, delegation-VC
46
+ construction, DID resolution, and status checks are all API calls made through
47
+ `HelixClient`.
48
+
49
+ **Agents hold no keys.** Agent self-custody has been retired: the server
50
+ generates an agent's keypair during onboarding and holds the private key, so
51
+ onboarding, presenting and delegating are all API calls
52
+ (`onboard_agent()`, `sign_vp()`, `delegate_authority()`).
53
+
54
+ ## Documentation
55
+
56
+ Full documentation is at **[docs.helixid.dev](https://docs.helixid.dev)** — concepts,
57
+ guides, and reference. This README covers only what is specific to this repository.
58
+
59
+ | | |
60
+ |---|---|
61
+ | **Start here** | [Introduction](https://docs.helixid.dev/) |
62
+ | **Concepts** | [The Trust Stack](https://docs.helixid.dev/concepts/trust-stack) · [Two-Issuer Model](https://docs.helixid.dev/concepts/two-issuer-model) · [Delegation](https://docs.helixid.dev/concepts/delegation) · [Revocation](https://docs.helixid.dev/concepts/revocation) |
63
+ | **Get started** | [Quick Start](https://docs.helixid.dev/get-started/quick-start) · [Installation & Modes](https://docs.helixid.dev/get-started/installation-and-modes) |
64
+ | **Contributing** | [How to Contribute](https://docs.helixid.dev/contributing/how-to-contribute) · [`CONTRIBUTING.md`](CONTRIBUTING.md) |
65
+ | **Security** | [Reporting a Vulnerability](https://docs.helixid.dev/security/reporting-a-vulnerability) · [`SECURITY.md`](SECURITY.md) |
66
+
67
+ ---
68
+
69
+ ## Status: v0.1.0, early
70
+
71
+ This is the first release. Core local-signing primitives and the full
72
+ `HelixClient` API surface are implemented and tested; a few areas are
73
+ still gaps -- see [Known gaps](#known-gaps) below.
74
+
75
+ ## Install
76
+
77
+ ```bash
78
+ pip install helixid-sdk-py
79
+ ```
80
+
81
+ Or from source:
82
+
83
+ ```bash
84
+ pip install -e .
85
+ ```
86
+
87
+ ## Cross-language parity
88
+
89
+ The local-signing primitives (`keys.py`, `vp_crypto.py`, `proof.py`,
90
+ `vp_builder.py`) are verified **byte-for-byte** against the same
91
+ `fixtures/golden-vectors/*.json` fixtures that `helix-sdk-js` and
92
+ `helix-core` assert against -- same private key, same payload, same
93
+ signature, same base58btc-encoded proof value, in every language. See
94
+ `tests/test_golden_vectors.py` and `fixtures/golden-vectors/README.md`.
95
+
96
+ If you regenerate the vectors in `helix-server` (`pnpm generate:golden-vectors`),
97
+ re-copy the three JSON files here too, the same way `helix-sdk-js` does.
98
+
99
+ ## Packages in this repo
100
+
101
+ - **`helix_sdk`** -- core SDK (see Quick example below).
102
+ - **`helix_mcp_middleware`** -- Model Context Protocol integration:
103
+ server-side VP verification middleware and client-side VP attachment.
104
+ Install with the `mcp-middleware` extra:
105
+ `pip install helixid-sdk-py[mcp-middleware]`.
106
+ - **`helix_langchain`** -- LangChain integration: a tool wrapper that
107
+ injects a signed VP into every tool call, plus scope-based tool
108
+ filtering. Install with `pip install helixid-sdk-py[langchain]`.
109
+ - **`helix_crewai`** -- CrewAI integration, following the same pattern as
110
+ `helix_langchain`. There is no CrewAI counterpart in `helix-sdk-js` --
111
+ this is Python-only. Install with `pip install helixid-sdk-py[crewai]`.
112
+
113
+ Install everything at once with `pip install helixid-sdk-py[all]`.
114
+
115
+ ## Quick example
116
+
117
+ ```python
118
+ from helix_sdk import HelixClient
119
+
120
+ client = HelixClient(
121
+ "https://your-helix-api.example.com",
122
+ admin_api_key="...", # signing is admin-gated in OSS
123
+ )
124
+
125
+ # The enrollment token is minted beforehand by the agent's owner
126
+ # (POST /v1/enrollment-tokens) -- not by the agent itself.
127
+ onboarding = client.onboard_agent(token, ["https://agent.example.com"])
128
+ agent_did = onboarding["agentDid"]
129
+
130
+ # Signing is an API call: the caller never has the agent's private key.
131
+ vp = client.sign_vp(agent_did, "https://api.example.com/v1/tools/orders")
132
+
133
+ result = client.verify_vp(vp)
134
+ print(result["valid"], result["effectiveScopes"])
135
+ ```
136
+
137
+ See `examples/verify_vp_demo.py` for this flow end to end, including scope
138
+ checks and a revoked-credential rejection.
139
+
140
+ ## Examples
141
+
142
+ See `examples/`:
143
+
144
+ - `verify_vp_demo.py` -- onboards an agent with `onboard_agent()`, signs a VP
145
+ through `sign_vp()`, verifies it, exercises `check_scope()`/`require_scope()`,
146
+ then revokes the VC and shows the next verification attempt fail with
147
+ `VC_REVOKED`.
148
+ - `agent_delegation_demo.py` -- onboards a delegator and a sub-agent, delegates
149
+ a scope subset with `delegate_authority()`, has the sub-agent present the
150
+ delegated credential, and shows a further delegation being refused because
151
+ the sub-agent has no delegation authority of its own.
152
+
153
+ Both require a running `helix-api` instance:
154
+
155
+ ```bash
156
+ HELIX_API_URL=http://127.0.0.1:3579 \
157
+ HELIX_ADMIN_API_KEY=your-admin-key \
158
+ python examples/agent_delegation_demo.py
159
+ ```
160
+
161
+ The TypeScript side has since been migrated too: `helixid`'s
162
+ `examples/delegation-demo.ts` and its live integration test
163
+ (`tests/live/agent-delegation.live.integration.test.ts`) both use
164
+ `delegateAuthority()` -- the server signs on the delegator's behalf, since no
165
+ caller holds an agent's key any more. `delegate_authority()` here is the
166
+ Python equivalent.
167
+
168
+ ## CLI
169
+
170
+ There is no Python CLI. Platform-operator workflows (DID/wallet/status-list/
171
+ VC lifecycle) are covered by `helix-sdk-js`'s `cli` package -- see
172
+ `docs/decision-cli-mcp-scope.md` in the `helixid/helixid` repo for why the
173
+ CLI has a single canonical implementation rather than one per SDK language.
174
+
175
+ ## Testing
176
+
177
+ ```bash
178
+ pip install -e ".[dev,all]"
179
+ pytest
180
+ ```
181
+
182
+ `pytest` always runs with coverage (`[tool.pytest.ini_options]` in
183
+ `pyproject.toml`) and fails under 60% -- the measured baseline as of
184
+ 2026-09-03, not a target. `helix-sdk-js`/`helix-api` enforce 90%
185
+ lines/statements, 85% branches, 90% functions; closing this gap (some
186
+ modules, like `did.py`, currently have no direct unit tests at all) is
187
+ real follow-up work, not something this tooling change did on its own.
188
+
189
+ - `tests/test_golden_vectors.py` -- cross-language crypto parity (no network).
190
+ - `tests/test_delegation_flow_mocked.py` -- exercises the full
191
+ `delegate()` / `VPBuilder` / wallet flow against a mocked HTTP layer that
192
+ faithfully reproduces helix-api's real prepare/finalize contract,
193
+ including asserting the delegator's private key never appears in any
194
+ outgoing request body.
195
+ - `tests/test_framework_adapters.py` -- exercises `helix_mcp_middleware`,
196
+ `helix_langchain`, and `helix_crewai` against the real installed
197
+ `langchain-core` and `crewai` packages (not mocks of them), so a real
198
+ interface drift in either framework would fail these tests. Skips
199
+ gracefully on Python < 3.10, since both frameworks require it.
200
+
201
+ There is currently no automated **live** integration test against a real
202
+ `helix-api` instance in this repo's CI (see Known gaps) -- if you have a
203
+ running instance, you can exercise the real network path with the two
204
+ example scripts above.
205
+
206
+ ## Known gaps
207
+
208
+ - **No live network integration test yet.** The mocked tests above verify
209
+ the SDK's logic faithfully, but nothing here has been run against a real,
210
+ live `helix-api` process end-to-end. (The sandbox used to build this SDK
211
+ could not start one -- `helix-api`'s `server.ts` imports the generated
212
+ Prisma client unconditionally, even in SQLite storage mode, and `prisma
213
+ generate` needs network access to `binaries.prisma.sh`, which was outside
214
+ that environment's egress allowlist. This is a sandbox-only limitation,
215
+ not a code issue, and shouldn't block real CI or local development where
216
+ Prisma can actually run.) Running the two example scripts against a real
217
+ instance is the recommended way to close this gap.
218
+ - **`HttpAdapter` is synchronous** (built on `requests`), unlike
219
+ `helix-sdk-js`'s async `fetch`-based adapter. This was a deliberate v0
220
+ choice -- most Python agent/automation call sites are synchronous -- not
221
+ an oversight; an async variant can be added later without breaking this
222
+ one.
223
+ - **No `did:hedera` package yet.** DID resolution generally is always an
224
+ API call in this architecture (per `docs/proposal-sdk-api-only.md`), so
225
+ this is really about offline Hedera anchoring specifically, which
226
+ `helix-sdk-js`'s `cli` package supports via a separate `did-hedera`
227
+ package this repo hasn't ported. Since the CLI itself is JS-only (see
228
+ `docs/decision-cli-mcp-scope.md`), this gap only matters if this SDK's
229
+ own local-signing primitives grow a `did:hedera` creation path.
230
+ - **No `widget` package** (helix-sdk-js's browser-embeddable consent
231
+ widget has no obvious Python equivalent and hasn't been attempted).
232
+ - **`HelixIDCallbackHandler` in `helix_langchain` cannot rewrite tool
233
+ input before execution** -- documented in its own docstring. LangChain
234
+ Python's `on_tool_start` callback is a notification hook, not an
235
+ interceptor (unlike the JS SDK's bespoke `RunnableConfigLike.
236
+ handleToolStart`, which really can mutate input first). Real VP
237
+ injection happens through `helix_id_tool_wrapper()` instead; the
238
+ callback handler is offered for observability/wallet-warming only. This
239
+ is a genuine LangChain Python API constraint, not an incomplete port.
240
+ - **Version numbering does not yet track `helix-sdk-js`'s version.** Per
241
+ `docs/decision-sdk-py-scope.md`, this SDK's version should track the JS
242
+ SDK's; that mapping strategy hasn't been decided yet, so this starts at
243
+ `0.1.0` independently.
244
+
245
+ ## The HelixID ecosystem
246
+
247
+ | Repository | What it is |
248
+ |---|---|
249
+ | [helixid](https://github.com/helixid/helixid) | HelixID API — the issuer and verifier service |
250
+ | [helix-core](https://github.com/helixid/helix-core) | `@helixid/core` — crypto, schemas, resolver, verification primitives |
251
+ | [helix-sdk-js](https://github.com/helixid/helix-sdk-js) | JS/TS SDK, CLI, LangChain + MCP middleware, consent widget |
252
+ | **helix-sdk-py** — you are here | `helixid-sdk-py` — the Python SDK |
253
+ | [helix-console](https://github.com/helixid/helix-console) | Operator Console SPA |
254
+ | [helix-wiki](https://github.com/helixid/helix-wiki) | Source for [docs.helixid.dev](https://docs.helixid.dev) |
255
+
256
+ ---
257
+
258
+ ## License
259
+
260
+ Apache-2.0