exonware-xwlazy 0.1.0.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 (96) hide show
  1. exonware_xwlazy-0.1.0.1/.gitignore +284 -0
  2. exonware_xwlazy-0.1.0.1/LICENSE +21 -0
  3. exonware_xwlazy-0.1.0.1/PKG-INFO +454 -0
  4. exonware_xwlazy-0.1.0.1/README.md +431 -0
  5. exonware_xwlazy-0.1.0.1/pyproject.toml +45 -0
  6. exonware_xwlazy-0.1.0.1/src/exonware/__init__.py +42 -0
  7. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/__init__.py +379 -0
  8. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/__init__.py +55 -0
  9. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/base.py +65 -0
  10. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/cache.py +504 -0
  11. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/logger.py +257 -0
  12. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/services/__init__.py +72 -0
  13. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/services/dependency_mapper.py +250 -0
  14. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/services/install_async_utils.py +170 -0
  15. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/services/install_cache_utils.py +245 -0
  16. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/services/keyword_detection.py +283 -0
  17. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/services/spec_cache.py +165 -0
  18. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/services/state_manager.py +84 -0
  19. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/strategies/__init__.py +28 -0
  20. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/strategies/caching_dict.py +44 -0
  21. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/strategies/caching_installation.py +88 -0
  22. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/strategies/caching_lfu.py +66 -0
  23. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/strategies/caching_lru.py +63 -0
  24. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/strategies/caching_multitier.py +59 -0
  25. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/strategies/caching_ttl.py +59 -0
  26. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/common/utils.py +142 -0
  27. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/config.py +193 -0
  28. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/contracts.py +1533 -0
  29. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/defs.py +378 -0
  30. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/errors.py +276 -0
  31. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/facade.py +1137 -0
  32. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/host/__init__.py +8 -0
  33. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/host/conf.py +16 -0
  34. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/module/__init__.py +18 -0
  35. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/module/base.py +643 -0
  36. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/module/data.py +17 -0
  37. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/module/facade.py +246 -0
  38. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/module/importer_engine.py +2964 -0
  39. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/module/partial_module_detector.py +275 -0
  40. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/module/strategies/__init__.py +22 -0
  41. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/module/strategies/module_helper_lazy.py +93 -0
  42. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/module/strategies/module_helper_simple.py +65 -0
  43. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/module/strategies/module_manager_advanced.py +111 -0
  44. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/module/strategies/module_manager_simple.py +95 -0
  45. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/__init__.py +18 -0
  46. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/base.py +877 -0
  47. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/conf.py +324 -0
  48. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/data.py +17 -0
  49. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/facade.py +480 -0
  50. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/services/__init__.py +84 -0
  51. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/services/async_install_handle.py +87 -0
  52. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/services/config_manager.py +249 -0
  53. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/services/discovery.py +435 -0
  54. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/services/host_packages.py +180 -0
  55. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/services/install_async.py +291 -0
  56. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/services/install_cache.py +145 -0
  57. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/services/install_interactive.py +59 -0
  58. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/services/install_policy.py +156 -0
  59. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/services/install_registry.py +54 -0
  60. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/services/install_result.py +17 -0
  61. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/services/install_sbom.py +153 -0
  62. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/services/install_utils.py +79 -0
  63. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/services/installer_engine.py +406 -0
  64. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/services/lazy_installer.py +803 -0
  65. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/services/manifest.py +503 -0
  66. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/services/strategy_registry.py +324 -0
  67. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/__init__.py +57 -0
  68. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/package_discovery_file.py +129 -0
  69. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/package_discovery_hybrid.py +84 -0
  70. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/package_discovery_manifest.py +101 -0
  71. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/package_execution_async.py +113 -0
  72. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/package_execution_cached.py +90 -0
  73. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/package_execution_pip.py +99 -0
  74. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/package_execution_wheel.py +106 -0
  75. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/package_mapping_discovery_first.py +100 -0
  76. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/package_mapping_hybrid.py +105 -0
  77. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/package_mapping_manifest_first.py +100 -0
  78. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/package_policy_allow_list.py +57 -0
  79. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/package_policy_deny_list.py +57 -0
  80. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/package_policy_permissive.py +46 -0
  81. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/package_timing_clean.py +67 -0
  82. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/package_timing_full.py +66 -0
  83. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/package_timing_smart.py +68 -0
  84. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/package/strategies/package_timing_temporary.py +66 -0
  85. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/runtime/__init__.py +18 -0
  86. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/runtime/adaptive_learner.py +129 -0
  87. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/runtime/base.py +274 -0
  88. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/runtime/facade.py +94 -0
  89. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/runtime/intelligent_selector.py +170 -0
  90. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/runtime/metrics.py +60 -0
  91. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/runtime/performance.py +37 -0
  92. exonware_xwlazy-0.1.0.1/src/exonware/xwlazy/version.py +77 -0
  93. exonware_xwlazy-0.1.0.1/src/xwlazy/__init__.py +14 -0
  94. exonware_xwlazy-0.1.0.1/src/xwlazy/lazy.py +30 -0
  95. exonware_xwlazy-0.1.0.1/src/xwlazy.py +43 -0
  96. exonware_xwlazy-0.1.0.1/src/xwlazy_wrapper.py +20 -0
@@ -0,0 +1,284 @@
1
+ # ========================================
2
+ # eXonware xSystem .gitignore
3
+ # ========================================
4
+
5
+ # CI/CD Tools (keep private)
6
+ .ci/
7
+
8
+ # Migration/legacy directories (may contain paths too long for Windows)
9
+ MIGRAT/
10
+ MIGRATE/
11
+
12
+ # ========================================
13
+ # Python
14
+ # ========================================
15
+ __pycache__/
16
+ *.py[cod]
17
+ *$py.class
18
+ *.so
19
+ .Python
20
+ build/
21
+ develop-eggs/
22
+ dist/
23
+ downloads/
24
+ eggs/
25
+ .eggs/
26
+ lib/
27
+ lib64/
28
+ parts/
29
+ sdist/
30
+ var/
31
+ wheels/
32
+ pip-wheel-metadata/
33
+ share/python-wheels/
34
+ *.egg-info/
35
+ .installed.cfg
36
+ *.egg
37
+ MANIFEST
38
+
39
+ # PyInstaller
40
+ *.manifest
41
+ *.spec
42
+
43
+ # Installer logs
44
+ pip-log.txt
45
+ pip-delete-this-directory.txt
46
+
47
+ # Unit test / coverage reports
48
+ htmlcov/
49
+ .tox/
50
+ .nox/
51
+ .coverage
52
+ .coverage.*
53
+ .cache
54
+ nosetests.xml
55
+ coverage.xml
56
+ *.cover
57
+ *.py,cover
58
+ .hypothesis/
59
+ .pytest_cache/
60
+ cover/
61
+
62
+ # Translations
63
+ *.mo
64
+ *.pot
65
+
66
+ # Django stuff
67
+ *.log
68
+ local_settings.py
69
+ db.sqlite3
70
+ db.sqlite3-journal
71
+
72
+ # Flask stuff
73
+ instance/
74
+ .webassets-cache
75
+
76
+ # Scrapy stuff
77
+ .scrapy
78
+
79
+ # Sphinx documentation
80
+ docs/_build/
81
+
82
+ # PyBuilder
83
+ .pybuilder/
84
+ target/
85
+
86
+ # Jupyter Notebook
87
+ .ipynb_checkpoints
88
+
89
+ # IPython
90
+ profile_default/
91
+ ipython_config.py
92
+
93
+ # pyenv
94
+ # For a library or package, you might want to ignore these files since the code is
95
+ # intended to run in multiple environments; otherwise, check them in:
96
+ # .python-version
97
+
98
+ # pipenv
99
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
100
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
101
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
102
+ # install all needed dependencies.
103
+ #Pipfile.lock
104
+
105
+ # poetry
106
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
107
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
108
+ # commonly ignored for libraries.
109
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
110
+ #poetry.lock
111
+
112
+ # pdm
113
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
114
+ #pdm.lock
115
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
116
+ # in version control.
117
+ # https://pdm.fming.dev/#use-with-ide
118
+ .pdm.toml
119
+
120
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121
+ __pypackages__/
122
+
123
+ # Celery stuff
124
+ celerybeat-schedule
125
+ celerybeat.pid
126
+
127
+ # SageMath parsed files
128
+ *.sage.py
129
+
130
+ # Environments
131
+ .env
132
+ .venv
133
+ env/
134
+ venv/
135
+ ENV/
136
+ env.bak/
137
+ venv.bak/
138
+
139
+ # Spyder project settings
140
+ .spyderproject
141
+ .spyproject
142
+
143
+ # Rope project settings
144
+ .ropeproject
145
+
146
+ # mkdocs documentation
147
+ /site
148
+
149
+ # mypy
150
+ .mypy_cache/
151
+ .dmypy.json
152
+ dmypy.json
153
+
154
+ # Pyre type checker
155
+ .pyre/
156
+
157
+ # pytype static type analyzer
158
+ .pytype/
159
+
160
+ # Cython debug symbols
161
+ cython_debug/
162
+
163
+ # ========================================
164
+ # IDEs and Editors
165
+ # ========================================
166
+
167
+ # Visual Studio Code
168
+ .vscode/
169
+ !.vscode/settings.json
170
+ !.vscode/tasks.json
171
+ !.vscode/launch.json
172
+ !.vscode/extensions.json
173
+ !.vscode/*.code-snippets
174
+
175
+ # Local History for Visual Studio Code
176
+ .history/
177
+
178
+ # Built Visual Studio Code Extensions
179
+ *.vsix
180
+
181
+ # PyCharm
182
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
183
+ # be added to the global gitignore or merged into this file. For a more nuclear
184
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
185
+ .idea/
186
+
187
+ # Sublime Text
188
+ *.tmlanguage.cache
189
+ *.tmPreferences.cache
190
+ *.stTheme.cache
191
+ *.sublime-workspace
192
+ *.sublime-project
193
+
194
+ # Vim
195
+ *~
196
+ *.swp
197
+ *.swo
198
+ *tmp
199
+
200
+ # Emacs
201
+ *~
202
+ \#*\#
203
+ /.emacs.desktop
204
+ /.emacs.desktop.lock
205
+ *.elc
206
+ auto-save-list
207
+ tramp
208
+ .\#*
209
+
210
+ # ========================================
211
+ # Operating Systems
212
+ # ========================================
213
+
214
+ # Windows
215
+ Thumbs.db
216
+ Thumbs.db:encryptable
217
+ ehthumbs.db
218
+ ehthumbs_vista.db
219
+ *.stackdump
220
+ [Dd]esktop.ini
221
+ $RECYCLE.BIN/
222
+ *.cab
223
+ *.msi
224
+ *.msix
225
+ *.msm
226
+ *.msp
227
+ *.lnk
228
+
229
+ # macOS
230
+ .DS_Store
231
+ .AppleDouble
232
+ .LSOverride
233
+ Icon
234
+ ._*
235
+ .DocumentRevisions-V100
236
+ .fseventsd
237
+ .Spotlight-V100
238
+ .TemporaryItems
239
+ .Trashes
240
+ .VolumeIcon.icns
241
+ .com.apple.timemachine.donotpresent
242
+ .AppleDB
243
+ .AppleDesktop
244
+ Network Trash Folder
245
+ Temporary Items
246
+ .apdisk
247
+
248
+ # Linux
249
+ *~
250
+ .fuse_hidden*
251
+ .directory
252
+ .Trash-*
253
+ .nfs*
254
+
255
+ # ========================================
256
+ # Development Tools
257
+ # ========================================
258
+
259
+ # Backup files
260
+ *.bak
261
+ *.backup
262
+ *.tmp
263
+ *.temp
264
+
265
+ # Log files
266
+ *.log
267
+ logs/
268
+
269
+ # Database files
270
+ *.sqlite
271
+ *.sqlite3
272
+ *.db
273
+
274
+ # Configuration files with secrets
275
+ config.ini
276
+ secrets.json
277
+ .secrets
278
+ credentials.json
279
+
280
+ # Local environment files
281
+ .env.local
282
+ .env.development.local
283
+ .env.test.local
284
+ .env.production.local
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 eXonware.com - Eng. Muhammad AlShehri
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.