algenta 1.0.3__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 (142) hide show
  1. algenta-1.0.3/LICENSE +201 -0
  2. algenta-1.0.3/PKG-INFO +248 -0
  3. algenta-1.0.3/README.md +216 -0
  4. algenta-1.0.3/algenta/__init__.py +623 -0
  5. algenta-1.0.3/algenta/__main__.py +5 -0
  6. algenta-1.0.3/algenta/_contract.py +376 -0
  7. algenta-1.0.3/algenta/_keys/algenta_license_pub.pem +9 -0
  8. algenta-1.0.3/algenta/_keys/algenta_release_pub.pem +11 -0
  9. algenta-1.0.3/algenta/_runtime_manifest_admin_outputs.py +658 -0
  10. algenta-1.0.3/algenta/_runtime_manifest_coercion.py +243 -0
  11. algenta-1.0.3/algenta/_runtime_manifest_enums.py +544 -0
  12. algenta-1.0.3/algenta/_runtime_manifest_modules.py +372 -0
  13. algenta-1.0.3/algenta/_runtime_manifest_operations.py +343 -0
  14. algenta-1.0.3/algenta/_runtime_manifest_references.py +187 -0
  15. algenta-1.0.3/algenta/_runtime_manifest_release.py +241 -0
  16. algenta-1.0.3/algenta/_runtime_manifest_release_outputs.py +460 -0
  17. algenta-1.0.3/algenta/_runtime_manifest_topology.py +301 -0
  18. algenta-1.0.3/algenta/auth.py +151 -0
  19. algenta-1.0.3/algenta/branding.py +143 -0
  20. algenta-1.0.3/algenta/cli.py +623 -0
  21. algenta-1.0.3/algenta/client/__init__.py +150 -0
  22. algenta-1.0.3/algenta/client/_account_billing.py +210 -0
  23. algenta-1.0.3/algenta/client/_agent_runs.py +156 -0
  24. algenta-1.0.3/algenta/client/_capabilities_skills.py +148 -0
  25. algenta-1.0.3/algenta/client/_connectors_datasets_repository.py +150 -0
  26. algenta-1.0.3/algenta/client/_decisions.py +71 -0
  27. algenta-1.0.3/algenta/client/_deployments_models.py +57 -0
  28. algenta-1.0.3/algenta/client/_helpers.py +40 -0
  29. algenta-1.0.3/algenta/client/_llm.py +97 -0
  30. algenta-1.0.3/algenta/client/_products_jobs_triggers.py +133 -0
  31. algenta-1.0.3/algenta/client/_query_resolve.py +34 -0
  32. algenta-1.0.3/algenta/decision.py +244 -0
  33. algenta-1.0.3/algenta/demo.py +712 -0
  34. algenta-1.0.3/algenta/forecast.py +232 -0
  35. algenta-1.0.3/algenta/login.py +211 -0
  36. algenta-1.0.3/algenta/map.py +42 -0
  37. algenta-1.0.3/algenta/map_matching.py +269 -0
  38. algenta-1.0.3/algenta/map_models.py +25 -0
  39. algenta-1.0.3/algenta/map_parsing.py +355 -0
  40. algenta-1.0.3/algenta/map_query.py +218 -0
  41. algenta-1.0.3/algenta/mojo.py +46 -0
  42. algenta-1.0.3/algenta/mojo_entrypoints.py +15 -0
  43. algenta-1.0.3/algenta/mojo_errors.py +28 -0
  44. algenta-1.0.3/algenta/mojo_runtime.py +469 -0
  45. algenta-1.0.3/algenta/native/__init__.py +6 -0
  46. algenta-1.0.3/algenta/native/doctor.py +57 -0
  47. algenta-1.0.3/algenta/native/loader.py +337 -0
  48. algenta-1.0.3/algenta/native/verify.py +215 -0
  49. algenta-1.0.3/algenta/native/worker.py +573 -0
  50. algenta-1.0.3/algenta/optimize.py +176 -0
  51. algenta-1.0.3/algenta/paths.py +105 -0
  52. algenta-1.0.3/algenta/privacy_profile.py +215 -0
  53. algenta-1.0.3/algenta/runtime.py +494 -0
  54. algenta-1.0.3/algenta/runtime_api_exact.py +282 -0
  55. algenta-1.0.3/algenta/runtime_api_payloads.py +156 -0
  56. algenta-1.0.3/algenta/runtime_bundle_overlap.py +75 -0
  57. algenta-1.0.3/algenta/runtime_capability_plane.py +922 -0
  58. algenta-1.0.3/algenta/runtime_connection_descriptors.py +225 -0
  59. algenta-1.0.3/algenta/runtime_connection_normalization.py +38 -0
  60. algenta-1.0.3/algenta/runtime_connection_sql.py +164 -0
  61. algenta-1.0.3/algenta/runtime_connector_definitions.py +203 -0
  62. algenta-1.0.3/algenta/runtime_connector_model_common.py +28 -0
  63. algenta-1.0.3/algenta/runtime_connector_model_dataset.py +172 -0
  64. algenta-1.0.3/algenta/runtime_connector_model_metadata.py +38 -0
  65. algenta-1.0.3/algenta/runtime_connector_model_preview.py +56 -0
  66. algenta-1.0.3/algenta/runtime_connector_models.py +41 -0
  67. algenta-1.0.3/algenta/runtime_connector_preview.py +254 -0
  68. algenta-1.0.3/algenta/runtime_connector_preview_cleanup.py +83 -0
  69. algenta-1.0.3/algenta/runtime_connector_preview_errors.py +48 -0
  70. algenta-1.0.3/algenta/runtime_connector_preview_state.py +155 -0
  71. algenta-1.0.3/algenta/runtime_connector_saved.py +222 -0
  72. algenta-1.0.3/algenta/runtime_connectors.py +174 -0
  73. algenta-1.0.3/algenta/runtime_dataset_surface.py +166 -0
  74. algenta-1.0.3/algenta/runtime_errors.py +50 -0
  75. algenta-1.0.3/algenta/runtime_execution_surface/__init__.py +194 -0
  76. algenta-1.0.3/algenta/runtime_execution_surface/_account_team_billing.py +486 -0
  77. algenta-1.0.3/algenta/runtime_execution_surface/_agent_runs.py +413 -0
  78. algenta-1.0.3/algenta/runtime_execution_surface/_api_client_local.py +267 -0
  79. algenta-1.0.3/algenta/runtime_execution_surface/_decision_repo_product_deploy.py +670 -0
  80. algenta-1.0.3/algenta/runtime_execution_surface/_llm_runtime.py +299 -0
  81. algenta-1.0.3/algenta/runtime_execution_surface/_query_jobs_triggers.py +359 -0
  82. algenta-1.0.3/algenta/runtime_execution_surface/_validation.py +334 -0
  83. algenta-1.0.3/algenta/runtime_facade/__init__.py +291 -0
  84. algenta-1.0.3/algenta/runtime_facade/_account_billing_admin.py +442 -0
  85. algenta-1.0.3/algenta/runtime_facade/_agent_runs.py +381 -0
  86. algenta-1.0.3/algenta/runtime_facade/_capability_plane.py +348 -0
  87. algenta-1.0.3/algenta/runtime_facade/_connectors_datasets.py +263 -0
  88. algenta-1.0.3/algenta/runtime_facade/_decisions_products.py +255 -0
  89. algenta-1.0.3/algenta/runtime_facade/_execution_query.py +243 -0
  90. algenta-1.0.3/algenta/runtime_facade/_internal_helpers.py +224 -0
  91. algenta-1.0.3/algenta/runtime_facade/_jobs_triggers.py +299 -0
  92. algenta-1.0.3/algenta/runtime_facade/_llm.py +309 -0
  93. algenta-1.0.3/algenta/runtime_facade/_repository_imports.py +305 -0
  94. algenta-1.0.3/algenta/runtime_import_preview.py +127 -0
  95. algenta-1.0.3/algenta/runtime_intent.py +82 -0
  96. algenta-1.0.3/algenta/runtime_library_contract.json +1 -0
  97. algenta-1.0.3/algenta/runtime_library_contract.py +217 -0
  98. algenta-1.0.3/algenta/runtime_library_transport.py +244 -0
  99. algenta-1.0.3/algenta/runtime_local_execution.py +654 -0
  100. algenta-1.0.3/algenta/runtime_local_limits.py +98 -0
  101. algenta-1.0.3/algenta/runtime_local_query.py +135 -0
  102. algenta-1.0.3/algenta/runtime_local_registration.py +106 -0
  103. algenta-1.0.3/algenta/runtime_local_resolve.py +247 -0
  104. algenta-1.0.3/algenta/runtime_model_account.py +166 -0
  105. algenta-1.0.3/algenta/runtime_model_agent_runs.py +727 -0
  106. algenta-1.0.3/algenta/runtime_model_capability_plane.py +553 -0
  107. algenta-1.0.3/algenta/runtime_model_common.py +60 -0
  108. algenta-1.0.3/algenta/runtime_model_contract.py +625 -0
  109. algenta-1.0.3/algenta/runtime_model_control_plane.py +773 -0
  110. algenta-1.0.3/algenta/runtime_model_decision_envelope.py +259 -0
  111. algenta-1.0.3/algenta/runtime_model_decision_memory.py +220 -0
  112. algenta-1.0.3/algenta/runtime_model_decision_plan.py +227 -0
  113. algenta-1.0.3/algenta/runtime_model_deployments.py +234 -0
  114. algenta-1.0.3/algenta/runtime_model_import_preview.py +47 -0
  115. algenta-1.0.3/algenta/runtime_model_jobs.py +179 -0
  116. algenta-1.0.3/algenta/runtime_model_llm.py +917 -0
  117. algenta-1.0.3/algenta/runtime_model_manifest.py +115 -0
  118. algenta-1.0.3/algenta/runtime_model_products.py +313 -0
  119. algenta-1.0.3/algenta/runtime_model_query_metadata.py +138 -0
  120. algenta-1.0.3/algenta/runtime_model_query_output.py +71 -0
  121. algenta-1.0.3/algenta/runtime_model_repository_intelligence.py +544 -0
  122. algenta-1.0.3/algenta/runtime_model_resolve_output.py +70 -0
  123. algenta-1.0.3/algenta/runtime_model_resolved_plan.py +141 -0
  124. algenta-1.0.3/algenta/runtime_model_source_registration.py +57 -0
  125. algenta-1.0.3/algenta/runtime_model_triggers.py +249 -0
  126. algenta-1.0.3/algenta/runtime_model_verify_output.py +47 -0
  127. algenta-1.0.3/algenta/runtime_models.py +285 -0
  128. algenta-1.0.3/algenta/runtime_registration_surface.py +179 -0
  129. algenta-1.0.3/algenta/runtime_repository_intelligence.py +120 -0
  130. algenta-1.0.3/algenta/runtime_source_descriptors.py +44 -0
  131. algenta-1.0.3/algenta/runtime_source_naming.py +115 -0
  132. algenta-1.0.3/algenta/runtime_surface_cache.py +51 -0
  133. algenta-1.0.3/algenta/simple.py +374 -0
  134. algenta-1.0.3/algenta/simulate.py +343 -0
  135. algenta-1.0.3/algenta.egg-info/PKG-INFO +248 -0
  136. algenta-1.0.3/algenta.egg-info/SOURCES.txt +140 -0
  137. algenta-1.0.3/algenta.egg-info/dependency_links.txt +1 -0
  138. algenta-1.0.3/algenta.egg-info/entry_points.txt +2 -0
  139. algenta-1.0.3/algenta.egg-info/requires.txt +16 -0
  140. algenta-1.0.3/algenta.egg-info/top_level.txt +1 -0
  141. algenta-1.0.3/pyproject.toml +59 -0
  142. algenta-1.0.3/setup.cfg +4 -0
algenta-1.0.3/LICENSE ADDED
@@ -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 the
141
+ 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 Algenta
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.
algenta-1.0.3/PKG-INFO ADDED
@@ -0,0 +1,248 @@
1
+ Metadata-Version: 2.4
2
+ Name: algenta
3
+ Version: 1.0.3
4
+ Summary: Algenta repository intelligence and decision engine CLI with an automatically installed local runtime.
5
+ License-Expression: Apache-2.0
6
+ Project-URL: Homepage, https://algenta.ai
7
+ Project-URL: Documentation, https://docs.algenta.ai
8
+ Project-URL: Repository, https://github.com/thyn-ai/algenta
9
+ Keywords: algenta,repository-intelligence,decision-engine,cli,mcp,runtime,deterministic,structured-data,query,resolve,agent
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.14
15
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
16
+ Requires-Python: <3.15,>=3.14
17
+ Description-Content-Type: text/markdown
18
+ License-File: LICENSE
19
+ Requires-Dist: algenta-runtime-native==1.0.3
20
+ Requires-Dist: cryptography>=42
21
+ Requires-Dist: keyring<26,>=25
22
+ Provides-Extra: cloud
23
+ Requires-Dist: algenta-sdk>=1.0.0; extra == "cloud"
24
+ Provides-Extra: mcp
25
+ Requires-Dist: algenta-mcp>=1.0.0; extra == "mcp"
26
+ Provides-Extra: benchmark
27
+ Requires-Dist: numpy; extra == "benchmark"
28
+ Provides-Extra: all
29
+ Requires-Dist: algenta-sdk>=1.0.0; extra == "all"
30
+ Requires-Dist: numpy; extra == "all"
31
+ Dynamic: license-file
32
+
33
+ # algenta
34
+
35
+ `algenta` is the public Python facade and CLI for Algenta's local native runtime.
36
+ The matching platform runtime is installed automatically as a required
37
+ dependency. Users do not install Mojo, compile binaries, launch a daemon, or
38
+ configure a side process.
39
+
40
+ For the typed HTTP-only client, use
41
+ [`algenta-sdk`](https://pypi.org/project/algenta-sdk/) instead.
42
+
43
+ ## Install
44
+
45
+ ```bash
46
+ python3.14 -m venv .venv
47
+ source .venv/bin/activate
48
+ pip install algenta
49
+ ```
50
+
51
+ Supported release targets:
52
+
53
+ - macOS Apple Silicon
54
+ - Linux x86-64
55
+ - Python 3.14
56
+
57
+ Package resolution fails on an unsupported platform instead of installing a
58
+ runtime that cannot execute.
59
+
60
+ ## Verify
61
+
62
+ ```bash
63
+ algenta version
64
+ algenta runtime doctor
65
+ algenta simulate
66
+ algenta benchmark
67
+ ```
68
+
69
+ `benchmark` reports cold startup separately from warm native executions. It
70
+ does not use a Python compute fallback or print a synthetic speedup.
71
+
72
+ ## Runtime libraries
73
+
74
+ The installed contract contains 472 modules and 4,757 callable functions.
75
+ Discover and execute them without starting another service:
76
+
77
+ ```bash
78
+ algenta runtime modules
79
+ algenta runtime functions vector_kernels.dot
80
+ algenta runtime execute vector_kernels.dot dot64_f32 \
81
+ --args-json '{"a":[1,2,6],"b":[3,2,1]}'
82
+ ```
83
+
84
+ The same surface is available from Python:
85
+
86
+ ```python
87
+ from algenta import MojoRuntime
88
+
89
+ runtime = MojoRuntime(mode="local")
90
+
91
+ print(runtime.health())
92
+ print(runtime.list_functions("vector_kernels.dot"))
93
+
94
+ result = runtime.execute(
95
+ "vector_kernels.dot",
96
+ "dot64_f32",
97
+ {"a": [1, 2, 6], "b": [3, 2, 1]},
98
+ )
99
+
100
+ if not result["success"]:
101
+ raise RuntimeError(result["error"])
102
+
103
+ print(result["result"]) # 13.0
104
+ print(result["latency_ms"])
105
+ print(result["engine_used"]) # mojo
106
+ ```
107
+
108
+ The runtime validates module names, function names, argument counts, scalar and
109
+ list types, and public struct fields before execution.
110
+
111
+ ## Local data helpers
112
+
113
+ ```bash
114
+ algenta import orders.csv --name orders
115
+ algenta map orders.csv
116
+ algenta query "revenue by region" orders.csv
117
+ algenta demo
118
+ ```
119
+
120
+ These commands are local helpers. The governed hosted or self-hosted data/query
121
+ surface is available through API mode.
122
+
123
+ ## API mode
124
+
125
+ Install the cloud extra when the same facade should call an Algenta deployment:
126
+
127
+ ```bash
128
+ pip install "algenta[cloud]"
129
+ ```
130
+
131
+ ```python
132
+ import os
133
+
134
+ from algenta import Runtime
135
+
136
+ runtime = Runtime(
137
+ mode="self_hosted",
138
+ api_key=os.environ["ALGENTA_API_KEY"],
139
+ base_url="http://localhost:8000",
140
+ )
141
+
142
+ datasets = runtime.list_datasets(search="orders", compact=True)
143
+ print(datasets)
144
+ ```
145
+
146
+ Private deployment modes require an explicit base URL and fail closed instead
147
+ of silently using Algenta cloud.
148
+
149
+ ### Contract discovery
150
+
151
+ The facade exports the generated public query contract, so applications can
152
+ discover endpoint and filter capabilities without hard-coded paths:
153
+
154
+ ```python
155
+ from algenta import PRIMARY_DATA_QUERY_CONTRACT
156
+
157
+ print(PRIMARY_DATA_QUERY_CONTRACT["api"]["contract_endpoint"])
158
+ ```
159
+
160
+ The API publishes its OpenAPI document at `/openapi.json` and identifies the
161
+ active query contract with `x-primary-data-query-contract`. The main HTTP
162
+ facade methods are `get_contract()`, `list_connectors()`, `connect_data()`,
163
+ `get_dataset()`, `get_dataset_summary()`, `refresh_dataset()`,
164
+ `delete_dataset()`, `query_batch()`, and `query_sql_report()`. Runtime evidence
165
+ is discoverable through `get_runtime_manifest()`, `get_runtime_modules()`,
166
+ `get_runtime_benchmarks()`, and `get_runtime_release_validation()`.
167
+
168
+ `Runtime(mode="api")` targets Algenta cloud. `Runtime(mode="self_hosted")`
169
+ requires `base_url` to point at your own service and intentionally fails closed
170
+ when that configuration is missing.
171
+
172
+ ## Unified Capability Plane
173
+
174
+ The same facade routes datasets, skills, MCP tools, and runtime libraries:
175
+
176
+ ```python
177
+ route = runtime.route_capabilities(
178
+ {
179
+ "objective": "Investigate the latest checkout incident",
180
+ "kinds": ["dataset", "skill", "mcp_tool", "runtime_library"],
181
+ }
182
+ )
183
+
184
+ capability = runtime.get_capability(
185
+ route.selected_capability_id,
186
+ include_instruction=True,
187
+ )
188
+ execution = runtime.execute_capability(
189
+ {
190
+ "capability_id": route.selected_capability_id,
191
+ "binding_id": route.selected_binding_id,
192
+ "input": {"objective": "Investigate the latest checkout incident"},
193
+ }
194
+ )
195
+ providers = runtime.list_capability_providers()
196
+ skills = runtime.list_skills()
197
+ mcp_providers = runtime.list_mcp_providers()
198
+ ```
199
+
200
+ Local runtime execution fails closed for `algenta_managed` capabilities. Use
201
+ `Runtime(mode="api")` or `Runtime(mode="self_hosted")` for those routes. Local
202
+ adapters registered with `runtime.register_capability_adapter(adapter)` execute
203
+ only `client_managed` capabilities. Full route and execution examples are in
204
+ [`examples/capability-plane/`](../../examples/capability-plane/) and
205
+ [`examples/langgraph/capability_router.py`](../../examples/langgraph/capability_router.py).
206
+
207
+ ## Authentication
208
+
209
+ `algenta login` stores API and license credentials only in the operating-system
210
+ credential store. If no secure keyring backend is available, storage fails
211
+ explicitly; set `ALGENTA_API_KEY` in the process environment instead.
212
+
213
+ ```bash
214
+ algenta login
215
+ algenta whoami
216
+ ```
217
+
218
+ The runtime wheel is verified against its signed manifest and platform tag
219
+ before public release execution. Release mode denies unverified overrides and
220
+ does not open a TCP listener.
221
+
222
+ ## MCP
223
+
224
+ The MCP client is a separate, thin package because it connects editors and
225
+ agents to hosted or self-hosted Algenta:
226
+
227
+ ```bash
228
+ pipx install algenta-mcp
229
+ algenta-mcp
230
+ ```
231
+
232
+ Or install the optional dependency with this package:
233
+
234
+ ```bash
235
+ pip install "algenta[mcp]"
236
+ algenta mcp
237
+ ```
238
+
239
+ Its runtime tools are `list_runtime_libraries` and `execute_runtime_library`.
240
+
241
+ ## Links
242
+
243
+ - [Documentation](https://docs.algenta.ai)
244
+ - [Python and CLI install guide](https://docs.algenta.ai/install)
245
+ - [Python SDK reference](https://docs.algenta.ai/sdk/python)
246
+ - [Runtime libraries](https://docs.algenta.ai/engine/runtime-libraries)
247
+ - [Source](https://github.com/thyn-ai/algenta)
248
+ - [Issues](https://github.com/thyn-ai/algenta/issues)
@@ -0,0 +1,216 @@
1
+ # algenta
2
+
3
+ `algenta` is the public Python facade and CLI for Algenta's local native runtime.
4
+ The matching platform runtime is installed automatically as a required
5
+ dependency. Users do not install Mojo, compile binaries, launch a daemon, or
6
+ configure a side process.
7
+
8
+ For the typed HTTP-only client, use
9
+ [`algenta-sdk`](https://pypi.org/project/algenta-sdk/) instead.
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ python3.14 -m venv .venv
15
+ source .venv/bin/activate
16
+ pip install algenta
17
+ ```
18
+
19
+ Supported release targets:
20
+
21
+ - macOS Apple Silicon
22
+ - Linux x86-64
23
+ - Python 3.14
24
+
25
+ Package resolution fails on an unsupported platform instead of installing a
26
+ runtime that cannot execute.
27
+
28
+ ## Verify
29
+
30
+ ```bash
31
+ algenta version
32
+ algenta runtime doctor
33
+ algenta simulate
34
+ algenta benchmark
35
+ ```
36
+
37
+ `benchmark` reports cold startup separately from warm native executions. It
38
+ does not use a Python compute fallback or print a synthetic speedup.
39
+
40
+ ## Runtime libraries
41
+
42
+ The installed contract contains 472 modules and 4,757 callable functions.
43
+ Discover and execute them without starting another service:
44
+
45
+ ```bash
46
+ algenta runtime modules
47
+ algenta runtime functions vector_kernels.dot
48
+ algenta runtime execute vector_kernels.dot dot64_f32 \
49
+ --args-json '{"a":[1,2,6],"b":[3,2,1]}'
50
+ ```
51
+
52
+ The same surface is available from Python:
53
+
54
+ ```python
55
+ from algenta import MojoRuntime
56
+
57
+ runtime = MojoRuntime(mode="local")
58
+
59
+ print(runtime.health())
60
+ print(runtime.list_functions("vector_kernels.dot"))
61
+
62
+ result = runtime.execute(
63
+ "vector_kernels.dot",
64
+ "dot64_f32",
65
+ {"a": [1, 2, 6], "b": [3, 2, 1]},
66
+ )
67
+
68
+ if not result["success"]:
69
+ raise RuntimeError(result["error"])
70
+
71
+ print(result["result"]) # 13.0
72
+ print(result["latency_ms"])
73
+ print(result["engine_used"]) # mojo
74
+ ```
75
+
76
+ The runtime validates module names, function names, argument counts, scalar and
77
+ list types, and public struct fields before execution.
78
+
79
+ ## Local data helpers
80
+
81
+ ```bash
82
+ algenta import orders.csv --name orders
83
+ algenta map orders.csv
84
+ algenta query "revenue by region" orders.csv
85
+ algenta demo
86
+ ```
87
+
88
+ These commands are local helpers. The governed hosted or self-hosted data/query
89
+ surface is available through API mode.
90
+
91
+ ## API mode
92
+
93
+ Install the cloud extra when the same facade should call an Algenta deployment:
94
+
95
+ ```bash
96
+ pip install "algenta[cloud]"
97
+ ```
98
+
99
+ ```python
100
+ import os
101
+
102
+ from algenta import Runtime
103
+
104
+ runtime = Runtime(
105
+ mode="self_hosted",
106
+ api_key=os.environ["ALGENTA_API_KEY"],
107
+ base_url="http://localhost:8000",
108
+ )
109
+
110
+ datasets = runtime.list_datasets(search="orders", compact=True)
111
+ print(datasets)
112
+ ```
113
+
114
+ Private deployment modes require an explicit base URL and fail closed instead
115
+ of silently using Algenta cloud.
116
+
117
+ ### Contract discovery
118
+
119
+ The facade exports the generated public query contract, so applications can
120
+ discover endpoint and filter capabilities without hard-coded paths:
121
+
122
+ ```python
123
+ from algenta import PRIMARY_DATA_QUERY_CONTRACT
124
+
125
+ print(PRIMARY_DATA_QUERY_CONTRACT["api"]["contract_endpoint"])
126
+ ```
127
+
128
+ The API publishes its OpenAPI document at `/openapi.json` and identifies the
129
+ active query contract with `x-primary-data-query-contract`. The main HTTP
130
+ facade methods are `get_contract()`, `list_connectors()`, `connect_data()`,
131
+ `get_dataset()`, `get_dataset_summary()`, `refresh_dataset()`,
132
+ `delete_dataset()`, `query_batch()`, and `query_sql_report()`. Runtime evidence
133
+ is discoverable through `get_runtime_manifest()`, `get_runtime_modules()`,
134
+ `get_runtime_benchmarks()`, and `get_runtime_release_validation()`.
135
+
136
+ `Runtime(mode="api")` targets Algenta cloud. `Runtime(mode="self_hosted")`
137
+ requires `base_url` to point at your own service and intentionally fails closed
138
+ when that configuration is missing.
139
+
140
+ ## Unified Capability Plane
141
+
142
+ The same facade routes datasets, skills, MCP tools, and runtime libraries:
143
+
144
+ ```python
145
+ route = runtime.route_capabilities(
146
+ {
147
+ "objective": "Investigate the latest checkout incident",
148
+ "kinds": ["dataset", "skill", "mcp_tool", "runtime_library"],
149
+ }
150
+ )
151
+
152
+ capability = runtime.get_capability(
153
+ route.selected_capability_id,
154
+ include_instruction=True,
155
+ )
156
+ execution = runtime.execute_capability(
157
+ {
158
+ "capability_id": route.selected_capability_id,
159
+ "binding_id": route.selected_binding_id,
160
+ "input": {"objective": "Investigate the latest checkout incident"},
161
+ }
162
+ )
163
+ providers = runtime.list_capability_providers()
164
+ skills = runtime.list_skills()
165
+ mcp_providers = runtime.list_mcp_providers()
166
+ ```
167
+
168
+ Local runtime execution fails closed for `algenta_managed` capabilities. Use
169
+ `Runtime(mode="api")` or `Runtime(mode="self_hosted")` for those routes. Local
170
+ adapters registered with `runtime.register_capability_adapter(adapter)` execute
171
+ only `client_managed` capabilities. Full route and execution examples are in
172
+ [`examples/capability-plane/`](../../examples/capability-plane/) and
173
+ [`examples/langgraph/capability_router.py`](../../examples/langgraph/capability_router.py).
174
+
175
+ ## Authentication
176
+
177
+ `algenta login` stores API and license credentials only in the operating-system
178
+ credential store. If no secure keyring backend is available, storage fails
179
+ explicitly; set `ALGENTA_API_KEY` in the process environment instead.
180
+
181
+ ```bash
182
+ algenta login
183
+ algenta whoami
184
+ ```
185
+
186
+ The runtime wheel is verified against its signed manifest and platform tag
187
+ before public release execution. Release mode denies unverified overrides and
188
+ does not open a TCP listener.
189
+
190
+ ## MCP
191
+
192
+ The MCP client is a separate, thin package because it connects editors and
193
+ agents to hosted or self-hosted Algenta:
194
+
195
+ ```bash
196
+ pipx install algenta-mcp
197
+ algenta-mcp
198
+ ```
199
+
200
+ Or install the optional dependency with this package:
201
+
202
+ ```bash
203
+ pip install "algenta[mcp]"
204
+ algenta mcp
205
+ ```
206
+
207
+ Its runtime tools are `list_runtime_libraries` and `execute_runtime_library`.
208
+
209
+ ## Links
210
+
211
+ - [Documentation](https://docs.algenta.ai)
212
+ - [Python and CLI install guide](https://docs.algenta.ai/install)
213
+ - [Python SDK reference](https://docs.algenta.ai/sdk/python)
214
+ - [Runtime libraries](https://docs.algenta.ai/engine/runtime-libraries)
215
+ - [Source](https://github.com/thyn-ai/algenta)
216
+ - [Issues](https://github.com/thyn-ai/algenta/issues)