shashu-ai 1.0.0__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 (70) hide show
  1. shashu_ai-1.0.0/LICENSE +142 -0
  2. shashu_ai-1.0.0/MANIFEST.in +5 -0
  3. shashu_ai-1.0.0/NOTICE +8 -0
  4. shashu_ai-1.0.0/PKG-INFO +874 -0
  5. shashu_ai-1.0.0/README.md +822 -0
  6. shashu_ai-1.0.0/pyproject.toml +104 -0
  7. shashu_ai-1.0.0/setup.cfg +4 -0
  8. shashu_ai-1.0.0/src/shashu/CHANGELOG.md +1371 -0
  9. shashu_ai-1.0.0/src/shashu/__init__.py +115 -0
  10. shashu_ai-1.0.0/src/shashu/_bus.py +117 -0
  11. shashu_ai-1.0.0/src/shashu/_config.py +161 -0
  12. shashu_ai-1.0.0/src/shashu/_credential.py +309 -0
  13. shashu_ai-1.0.0/src/shashu/_joiner.py +162 -0
  14. shashu_ai-1.0.0/src/shashu/_metadata.py +18 -0
  15. shashu_ai-1.0.0/src/shashu/_transport.py +51 -0
  16. shashu_ai-1.0.0/src/shashu/_version.py +1 -0
  17. shashu_ai-1.0.0/src/shashu/async_client.py +353 -0
  18. shashu_ai-1.0.0/src/shashu/audit.py +149 -0
  19. shashu_ai-1.0.0/src/shashu/client.py +300 -0
  20. shashu_ai-1.0.0/src/shashu/context.py +292 -0
  21. shashu_ai-1.0.0/src/shashu/decision.py +1031 -0
  22. shashu_ai-1.0.0/src/shashu/exceptions.py +693 -0
  23. shashu_ai-1.0.0/src/shashu/gemini.py +282 -0
  24. shashu_ai-1.0.0/src/shashu/http_client.py +251 -0
  25. shashu_ai-1.0.0/src/shashu/memory.py +136 -0
  26. shashu_ai-1.0.0/src/shashu/middleware/__init__.py +6 -0
  27. shashu_ai-1.0.0/src/shashu/middleware/crewai.py +68 -0
  28. shashu_ai-1.0.0/src/shashu/middleware/langchain.py +394 -0
  29. shashu_ai-1.0.0/src/shashu/middleware/langgraph.py +105 -0
  30. shashu_ai-1.0.0/src/shashu/middleware/llamaindex.py +267 -0
  31. shashu_ai-1.0.0/src/shashu/patch.py +630 -0
  32. shashu_ai-1.0.0/src/shashu/rag.py +492 -0
  33. shashu_ai-1.0.0/src/shashu/retry.py +200 -0
  34. shashu_ai-1.0.0/src/shashu/tracer.py +418 -0
  35. shashu_ai-1.0.0/src/shashu_ai.egg-info/PKG-INFO +874 -0
  36. shashu_ai-1.0.0/src/shashu_ai.egg-info/SOURCES.txt +68 -0
  37. shashu_ai-1.0.0/src/shashu_ai.egg-info/dependency_links.txt +1 -0
  38. shashu_ai-1.0.0/src/shashu_ai.egg-info/requires.txt +31 -0
  39. shashu_ai-1.0.0/src/shashu_ai.egg-info/top_level.txt +1 -0
  40. shashu_ai-1.0.0/tests/test_a2a_propagation.py +471 -0
  41. shashu_ai-1.0.0/tests/test_acceptance_direct_client.py +277 -0
  42. shashu_ai-1.0.0/tests/test_async_client.py +161 -0
  43. shashu_ai-1.0.0/tests/test_collectors.py +795 -0
  44. shashu_ai-1.0.0/tests/test_collectors_without_frameworks.py +215 -0
  45. shashu_ai-1.0.0/tests/test_config_guards.py +312 -0
  46. shashu_ai-1.0.0/tests/test_contract_sync.py +101 -0
  47. shashu_ai-1.0.0/tests/test_contract_version_header.py +243 -0
  48. shashu_ai-1.0.0/tests/test_decision.py +459 -0
  49. shashu_ai-1.0.0/tests/test_decision_request_id.py +135 -0
  50. shashu_ai-1.0.0/tests/test_direct_client_joiner.py +372 -0
  51. shashu_ai-1.0.0/tests/test_dropped_carrier_warning.py +212 -0
  52. shashu_ai-1.0.0/tests/test_exceptions.py +480 -0
  53. shashu_ai-1.0.0/tests/test_file_memory_route.py +637 -0
  54. shashu_ai-1.0.0/tests/test_http_client_factory.py +415 -0
  55. shashu_ai-1.0.0/tests/test_identity_s1_step0.py +35 -0
  56. shashu_ai-1.0.0/tests/test_is_trustgate_block.py +267 -0
  57. shashu_ai-1.0.0/tests/test_langchain_agent_demo.py +206 -0
  58. shashu_ai-1.0.0/tests/test_langchain_decision.py +392 -0
  59. shashu_ai-1.0.0/tests/test_patch_deprecation.py +220 -0
  60. shashu_ai-1.0.0/tests/test_patched_construction.py +257 -0
  61. shashu_ai-1.0.0/tests/test_patched_refusals.py +210 -0
  62. shashu_ai-1.0.0/tests/test_provider_credential_transit.py +154 -0
  63. shashu_ai-1.0.0/tests/test_retries.py +217 -0
  64. shashu_ai-1.0.0/tests/test_retrieval_bus.py +663 -0
  65. shashu_ai-1.0.0/tests/test_session_at_origin.py +233 -0
  66. shashu_ai-1.0.0/tests/test_surface.py +373 -0
  67. shashu_ai-1.0.0/tests/test_tracer_honesty.py +116 -0
  68. shashu_ai-1.0.0/tests/test_trustgate.py +177 -0
  69. shashu_ai-1.0.0/tests/test_unknown_values_tolerated.py +116 -0
  70. shashu_ai-1.0.0/tests/test_vendored_contracts.py +97 -0
@@ -0,0 +1,142 @@
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
+ "Work" shall mean the work of authorship, whether in Source or
27
+ Object form, made available under the License, as indicated by a
28
+ copyright notice that is included in or attached to the work
29
+ (an example is provided in the Appendix below).
30
+
31
+ "Derivative Works" shall mean any work, whether in Source or Object
32
+ form, that is based on (or derived from) the Work and for which the
33
+ editorial revisions, annotations, elaborations, or other modifications
34
+ represent, as a whole, an original work of authorship. For the purposes
35
+ of this License, Derivative Works shall not include works that remain
36
+ separable from, or merely link (or bind by name) to the interfaces of,
37
+ the Work and Derivative Works thereof.
38
+
39
+ "Contribution" shall mean any work of authorship, including
40
+ the original version of the Work and any modifications or additions
41
+ to that Work or Derivative Works thereof, that is intentionally
42
+ submitted to Licensor for inclusion in the Work by the copyright owner
43
+ or by an individual or Legal Entity authorized to submit on behalf of
44
+ the copyright owner.
45
+
46
+ "Contributor" shall mean Licensor and any individual or Legal Entity
47
+ on behalf of whom a Contribution has been received by Licensor and
48
+ subsequently incorporated within the Work.
49
+
50
+ 2. Grant of Copyright License. Subject to the terms and conditions of
51
+ this License, each Contributor hereby grants to You a perpetual,
52
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
53
+ copyright license to reproduce, prepare Derivative Works of,
54
+ publicly display, publicly perform, sublicense, and distribute the
55
+ Work and such Derivative Works in Source or Object form.
56
+
57
+ 3. Grant of Patent License. Subject to the terms and conditions of
58
+ this License, each Contributor hereby grants to You a perpetual,
59
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
60
+ (except as stated in this section) patent license to make, have made,
61
+ use, offer to sell, sell, import, and otherwise transfer the Work,
62
+ where such license applies only to those patent claims licensable
63
+ by such Contributor that are necessarily infringed by their
64
+ Contribution(s) alone or by combination of their Contribution(s)
65
+ with the Work to which such Contribution(s) was submitted.
66
+
67
+ 4. Redistribution. You may reproduce and distribute copies of the
68
+ Work or Derivative Works thereof in any medium, with or without
69
+ modifications, and in Source or Object form, provided that You
70
+ meet the following conditions:
71
+
72
+ (a) You must give any other recipients of the Work or
73
+ Derivative Works a copy of this License; and
74
+
75
+ (b) You must cause any modified files to carry prominent notices
76
+ stating that You changed the files; and
77
+
78
+ (c) You must retain, in the Source form of any Derivative Works
79
+ that You distribute, all copyright, patent, trademark, and
80
+ attribution notices from the Source form of the Work,
81
+ excluding those notices that do not pertain to any part of
82
+ the Derivative Works; and
83
+
84
+ (d) If the Work includes a "NOTICE" text file as part of its
85
+ distribution, then any Derivative Works that You distribute must
86
+ include a readable copy of the attribution notices contained
87
+ within such NOTICE file, excluding those notices that do not
88
+ pertain to any part of the Derivative Works, in at least one
89
+ of the following places: within a NOTICE text file distributed
90
+ as part of the Derivative Works; within the Source form or
91
+ documentation, if provided along with the Derivative Works; or,
92
+ within a display generated by the Derivative Works, if and
93
+ wherever such third-party notices normally appear.
94
+
95
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
96
+ any Contribution intentionally submitted for inclusion in the Work
97
+ by You to the Licensor shall be under the terms and conditions of
98
+ this License, without any additional terms or conditions.
99
+
100
+ 6. Trademarks. This License does not grant permission to use the trade
101
+ names, trademarks, service marks, or product names of the Licensor,
102
+ except as required for reasonable and customary use in describing the
103
+ origin of the Work and reproducing the content of the NOTICE file.
104
+
105
+ 7. Disclaimer of Warranty. Unless required by applicable law or
106
+ agreed to in writing, Licensor provides the Work (and each
107
+ Contributor provides its Contributions) on an "AS IS" BASIS,
108
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
109
+ implied, including, without limitation, any warranties or conditions
110
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
111
+ PARTICULAR PURPOSE.
112
+
113
+ 8. Limitation of Liability. In no event and under no legal theory,
114
+ whether in tort (including negligence), contract, or otherwise,
115
+ unless required by applicable law (such as deliberate and grossly
116
+ negligent acts) or agreed to in writing, shall any Contributor be
117
+ liable to You for damages, including any direct, indirect, special,
118
+ incidental, or consequential damages of any character arising as a
119
+ result of this License or out of the use or inability to use the
120
+ Work.
121
+
122
+ 9. Accepting Warranty or Additional Liability. While redistributing
123
+ the Work or Derivative Works thereof, You may choose to offer,
124
+ and charge a fee for, acceptance of support, warranty, indemnity,
125
+ or other liability obligations and/or rights consistent with this
126
+ License.
127
+
128
+ END OF TERMS AND CONDITIONS
129
+
130
+ Copyright 2026 Trustgate AI LLC
131
+
132
+ Licensed under the Apache License, Version 2.0 (the "License");
133
+ you may not use this file except in compliance with the License.
134
+ You may obtain a copy of the License at
135
+
136
+ http://www.apache.org/licenses/LICENSE-2.0
137
+
138
+ Unless required by applicable law or agreed to in writing, software
139
+ distributed under the License is distributed on an "AS IS" BASIS,
140
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
141
+ See the License for the specific language governing permissions and
142
+ limitations under the License.
@@ -0,0 +1,5 @@
1
+ # sdist contents. package-data covers the wheel; this covers the source dist.
2
+ include src/shashu/CHANGELOG.md
3
+ include README.md
4
+ include LICENSE
5
+ include NOTICE
shashu_ai-1.0.0/NOTICE ADDED
@@ -0,0 +1,8 @@
1
+ SHASHU by Trustgate AI
2
+ Copyright 2026 Trustgate AI LLC
3
+
4
+ This product includes software developed by Trustgate AI LLC.
5
+ Licensed under the Apache License, Version 2.0.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0