servicegraph 0.1.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 (38) hide show
  1. servicegraph-0.1.0/.gitignore +43 -0
  2. servicegraph-0.1.0/LICENSE +196 -0
  3. servicegraph-0.1.0/NOTICE +0 -0
  4. servicegraph-0.1.0/PKG-INFO +1407 -0
  5. servicegraph-0.1.0/README.md +1158 -0
  6. servicegraph-0.1.0/pyproject.toml +218 -0
  7. servicegraph-0.1.0/src/servicegraph/__init__.py +75 -0
  8. servicegraph-0.1.0/src/servicegraph/application_builder.py +85 -0
  9. servicegraph-0.1.0/src/servicegraph/configuration.py +183 -0
  10. servicegraph-0.1.0/src/servicegraph/configuration_builder.py +107 -0
  11. servicegraph-0.1.0/src/servicegraph/configuration_section.py +45 -0
  12. servicegraph-0.1.0/src/servicegraph/dependency_injection_utils.py +77 -0
  13. servicegraph-0.1.0/src/servicegraph/i_configuration.py +34 -0
  14. servicegraph-0.1.0/src/servicegraph/i_configuration_builder.py +27 -0
  15. servicegraph-0.1.0/src/servicegraph/i_configuration_section.py +26 -0
  16. servicegraph-0.1.0/src/servicegraph/request_context.py +63 -0
  17. servicegraph-0.1.0/src/servicegraph/service_collection.py +568 -0
  18. servicegraph-0.1.0/src/servicegraph/service_lifetime.py +7 -0
  19. servicegraph-0.1.0/src/servicegraph/service_locator.py +60 -0
  20. servicegraph-0.1.0/src/servicegraph/service_provider.py +705 -0
  21. servicegraph-0.1.0/src/servicegraph/service_registration.py +43 -0
  22. servicegraph-0.1.0/src/servicegraph/type_hints.py +10 -0
  23. servicegraph-0.1.0/tests/__init__.py +10 -0
  24. servicegraph-0.1.0/tests/conftest.py +135 -0
  25. servicegraph-0.1.0/tests/test_abc_interface_validation_v2.py +440 -0
  26. servicegraph-0.1.0/tests/test_azure_integration_v2.py +529 -0
  27. servicegraph-0.1.0/tests/test_configuration.py +475 -0
  28. servicegraph-0.1.0/tests/test_core_functionality.py +378 -0
  29. servicegraph-0.1.0/tests/test_error_handling.py +557 -0
  30. servicegraph-0.1.0/tests/test_example.py +2 -0
  31. servicegraph-0.1.0/tests/test_integration.py +454 -0
  32. servicegraph-0.1.0/tests/test_lifecycle_validation.py +135 -0
  33. servicegraph-0.1.0/tests/test_performance.py +465 -0
  34. servicegraph-0.1.0/tests/test_primitive_comprehensive.py +175 -0
  35. servicegraph-0.1.0/tests/test_primitive_factory_sanity.py +247 -0
  36. servicegraph-0.1.0/tests/test_primitive_types.py +296 -0
  37. servicegraph-0.1.0/tests/test_service_lifetimes.py +367 -0
  38. servicegraph-0.1.0/tests/test_transient_persistence.py +160 -0
@@ -0,0 +1,43 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ develop-eggs/
9
+ dist/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ sdist/
17
+ var/
18
+ wheels/
19
+ *.egg-info/
20
+ .installed.cfg
21
+ *.egg
22
+
23
+ # Virtual environments
24
+ venv/
25
+ env/
26
+ ENV/
27
+
28
+ # Testing
29
+ .pytest_cache/
30
+ .coverage
31
+ htmlcov/
32
+ coverage.xml
33
+ *.cover
34
+
35
+ # IDEs
36
+ .vscode/
37
+ .idea/
38
+ *.swp
39
+ *.swo
40
+
41
+ # OS
42
+ .DS_Store
43
+ Thumbs.db
@@ -0,0 +1,196 @@
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 not
32
+ limited to compiled object code, generated documentation, and
33
+ 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
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other modifications
42
+ represent, as a whole, an original work of authorship. For the purposes
43
+ of this License, Derivative Works shall not include works that remain
44
+ separable from, or merely link (or bind by name) to the interfaces of,
45
+ the Work and Derivative Works thereof.
46
+
47
+ "Contribution" shall mean any work of authorship, including the
48
+ original version of the Work and any modifications or additions
49
+ to that Work or Derivative Works thereof, that is intentionally
50
+ submitted to Licensor for inclusion in the Work by the copyright owner
51
+ or by an individual or Legal Entity authorized to submit on behalf of
52
+ the copyright owner.
53
+
54
+ "Contributor" shall mean Licensor and any individual or Legal Entity
55
+ on behalf of whom a Contribution has been received by Licensor and
56
+ subsequently incorporated within the Work.
57
+
58
+ 2. Grant of Copyright License.
59
+
60
+ Subject to the terms and conditions of this License, each Contributor
61
+ hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
62
+ royalty-free, irrevocable copyright license to reproduce, prepare
63
+ Derivative Works of, publicly display, publicly perform, sublicense,
64
+ and distribute the Work and such Derivative Works in Source or Object
65
+ form.
66
+
67
+ 3. Grant of Patent License.
68
+
69
+ Subject to the terms and conditions of this License, each Contributor
70
+ hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
71
+ royalty-free, irrevocable (except as stated in this section) patent
72
+ license to make, have made, use, offer to sell, sell, import, and
73
+ otherwise transfer the Work, where such license applies only to those
74
+ patent claims licensable by such Contributor that are necessarily
75
+ infringed by their Contribution(s) alone or by combination of their
76
+ Contribution(s) with the Work to which such Contribution(s) was submitted.
77
+ If You institute patent litigation against any entity (including a
78
+ cross-claim or counterclaim in a lawsuit) alleging that the Work or a
79
+ Contribution incorporated within the Work constitutes direct or
80
+ contributory patent infringement, then any patent licenses granted to
81
+ You under this License for that Work shall terminate as of the date such
82
+ litigation is filed.
83
+
84
+ 4. Redistribution.
85
+
86
+ You may reproduce and distribute copies of the Work or Derivative Works
87
+ thereof in any medium, with or without modifications, and in Source or
88
+ Object form, provided that You meet the following conditions:
89
+
90
+ (a) You must give any other recipients of the Work or Derivative Works a
91
+ copy of this License; and
92
+
93
+ (b) You must cause any modified files to carry prominent notices stating
94
+ that You changed the files; and
95
+
96
+ (c) You must retain, in the Source form of any Derivative Works that You
97
+ distribute, all copyright, patent, trademark, and attribution notices
98
+ from the Source form of the Work, excluding those notices that do not
99
+ pertain to any part of the Derivative Works; and
100
+
101
+ (d) If the Work includes a "NOTICE" text file as part of its distribution,
102
+ then any Derivative Works that You distribute must include a readable
103
+ copy of the attribution notices contained within such NOTICE file,
104
+ excluding those that do not pertain to any part of the Derivative Works,
105
+ in at least one of the following places: within a NOTICE text file
106
+ distributed as part of the Derivative Works; within the Source form or
107
+ documentation, if provided along with the Derivative Works; or, within a
108
+ display generated by the Derivative Works, if and wherever such third-party
109
+ notices normally appear. The contents of the NOTICE file are for
110
+ informational purposes only and do not modify the License. You may add
111
+ Your own attribution notices within Derivative Works that You distribute,
112
+ alongside or as an addendum to the NOTICE text from the Work, provided
113
+ that such additional attribution notices cannot be construed as
114
+ modifying the License.
115
+
116
+ You may add Your own copyright statement to Your modifications and may
117
+ provide additional or different license terms and conditions for use,
118
+ reproduction, or distribution of Your modifications, or for any such
119
+ Derivative Works as a whole, provided Your use, reproduction, and
120
+ distribution of the Work otherwise complies with the conditions stated
121
+ in this License.
122
+
123
+ 5. Submission of Contributions.
124
+
125
+ Unless You explicitly state otherwise, any Contribution intentionally
126
+ submitted for inclusion in the Work by You to the Licensor shall be
127
+ under the terms and conditions of this License, without any additional
128
+ terms or conditions. Notwithstanding the above, nothing herein shall
129
+ supersede or modify the terms of any separate license agreement you may
130
+ have executed with Licensor regarding such Contributions.
131
+
132
+ 6. Trademarks.
133
+
134
+ This License does not grant permission to use the trade names, trademarks,
135
+ service marks, or product names of the Licensor, except as required for
136
+ describing the origin of the Work and reproducing the content of the
137
+ NOTICE file.
138
+
139
+ 7. Disclaimer of Warranty.
140
+
141
+ Unless required by applicable law or agreed to in writing, Licensor provides
142
+ the Work (and each Contributor provides its Contributions) on an "AS IS"
143
+ BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
144
+ implied, including, without limitation, any warranties or conditions of
145
+ TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR
146
+ PURPOSE. You are solely responsible for determining the appropriateness
147
+ of using or redistributing the Work and assume any risks associated with
148
+ Your exercise of permissions under this License.
149
+
150
+ 8. Limitation of Liability.
151
+
152
+ In no event and under no legal theory, whether in tort (including
153
+ negligence), contract, or otherwise, unless required by applicable law
154
+ (such as deliberate and grossly negligent acts) or agreed to in writing,
155
+ shall any Contributor be liable to You for damages, including any direct,
156
+ indirect, special, incidental, or consequential damages of any character
157
+ arising as a result of this License or out of the use or inability to use
158
+ the Work (including but not limited to damages for loss of goodwill, work
159
+ stoppage, computer failure or malfunction, or any and all other commercial
160
+ damages or losses), even if such Contributor has been advised of the
161
+ possibility of such damages.
162
+
163
+ 9. Accepting Warranty or Additional Liability.
164
+
165
+ While redistributing the Work or Derivative Works thereof, You may choose
166
+ to offer, and charge a fee for, acceptance of support, warranty, indemnity,
167
+ or other liability obligations and/or rights consistent with this License.
168
+ However, in accepting such obligations, You may act only on Your own behalf
169
+ and on Your sole responsibility, not on behalf of any other Contributor,
170
+ and only if You agree to indemnify, defend, and hold each Contributor
171
+ harmless for any liability incurred by, or claims asserted against, such
172
+ Contributor by reason of your accepting any such warranty or additional
173
+ liability.
174
+
175
+ END OF TERMS AND CONDITIONS
176
+
177
+ ---
178
+
179
+ COMMONS CLAUSE RESTRICTION
180
+
181
+ The Software is provided under the Apache License, Version 2.0, with the following additional restriction:
182
+
183
+ *The Software and Derivative Works thereof may not be sold, nor may You or others charge fees for the Software or Derivative Works thereof, including through hosting or offering the Software as a paid service.*
184
+
185
+ ---
186
+
187
+ NO RELICENSING / AI RESALE CLAUSE
188
+
189
+ 1. The Work and any Derivative Works thereof may not be relicensed, in whole or in part, under any license or terms that weaken, circumvent, or nullify the restrictions or conditions of this License.
190
+ 2. The Work and any Derivative Works thereof may not be used, modified, or reproduced—whether manually or through automated systems, including artificial intelligence or machine learning models—for the purpose of creating substantially similar code, libraries, or systems intended for resale, commercialization, or redistribution under another name, license, or entity, without the express written consent of the original Licensor.
191
+ 3. These restrictions do not prohibit legitimate commercial use, internal deployment, or integration of the unmodified Work or approved Derivative Works as part of broader applications, products, or services.
192
+
193
+ ---
194
+
195
+ Copyright (c) 2025 Kenneth McManis
196
+ All rights reserved.
File without changes