kstlib 0.0.1a0__tar.gz → 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 (176) hide show
  1. kstlib-1.0.1/LICENSE.md +9 -0
  2. kstlib-1.0.1/MANIFEST.in +49 -0
  3. kstlib-1.0.1/PKG-INFO +201 -0
  4. kstlib-1.0.1/README.md +114 -0
  5. kstlib-1.0.1/pyproject.toml +479 -0
  6. {kstlib-0.0.1a0 → kstlib-1.0.1}/setup.cfg +4 -4
  7. kstlib-1.0.1/src/kstlib/__init__.py +266 -0
  8. kstlib-1.0.1/src/kstlib/__main__.py +16 -0
  9. kstlib-1.0.1/src/kstlib/alerts/__init__.py +110 -0
  10. kstlib-1.0.1/src/kstlib/alerts/channels/__init__.py +36 -0
  11. kstlib-1.0.1/src/kstlib/alerts/channels/base.py +197 -0
  12. kstlib-1.0.1/src/kstlib/alerts/channels/email.py +227 -0
  13. kstlib-1.0.1/src/kstlib/alerts/channels/slack.py +389 -0
  14. kstlib-1.0.1/src/kstlib/alerts/exceptions.py +72 -0
  15. kstlib-1.0.1/src/kstlib/alerts/manager.py +651 -0
  16. kstlib-1.0.1/src/kstlib/alerts/models.py +142 -0
  17. kstlib-1.0.1/src/kstlib/alerts/throttle.py +263 -0
  18. kstlib-1.0.1/src/kstlib/auth/__init__.py +139 -0
  19. kstlib-1.0.1/src/kstlib/auth/callback.py +399 -0
  20. kstlib-1.0.1/src/kstlib/auth/config.py +502 -0
  21. kstlib-1.0.1/src/kstlib/auth/errors.py +127 -0
  22. kstlib-1.0.1/src/kstlib/auth/models.py +316 -0
  23. kstlib-1.0.1/src/kstlib/auth/providers/__init__.py +14 -0
  24. kstlib-1.0.1/src/kstlib/auth/providers/base.py +393 -0
  25. kstlib-1.0.1/src/kstlib/auth/providers/oauth2.py +645 -0
  26. kstlib-1.0.1/src/kstlib/auth/providers/oidc.py +821 -0
  27. kstlib-1.0.1/src/kstlib/auth/session.py +338 -0
  28. kstlib-1.0.1/src/kstlib/auth/token.py +482 -0
  29. kstlib-1.0.1/src/kstlib/cache/__init__.py +50 -0
  30. kstlib-1.0.1/src/kstlib/cache/decorator.py +261 -0
  31. kstlib-1.0.1/src/kstlib/cache/strategies.py +516 -0
  32. kstlib-1.0.1/src/kstlib/cli/__init__.py +8 -0
  33. kstlib-1.0.1/src/kstlib/cli/app.py +195 -0
  34. kstlib-1.0.1/src/kstlib/cli/commands/__init__.py +5 -0
  35. kstlib-1.0.1/src/kstlib/cli/commands/auth/__init__.py +39 -0
  36. kstlib-1.0.1/src/kstlib/cli/commands/auth/common.py +122 -0
  37. kstlib-1.0.1/src/kstlib/cli/commands/auth/login.py +325 -0
  38. kstlib-1.0.1/src/kstlib/cli/commands/auth/logout.py +74 -0
  39. kstlib-1.0.1/src/kstlib/cli/commands/auth/providers.py +57 -0
  40. kstlib-1.0.1/src/kstlib/cli/commands/auth/status.py +291 -0
  41. kstlib-1.0.1/src/kstlib/cli/commands/auth/token.py +199 -0
  42. kstlib-1.0.1/src/kstlib/cli/commands/auth/whoami.py +106 -0
  43. kstlib-1.0.1/src/kstlib/cli/commands/config.py +89 -0
  44. kstlib-1.0.1/src/kstlib/cli/commands/ops/__init__.py +39 -0
  45. kstlib-1.0.1/src/kstlib/cli/commands/ops/attach.py +49 -0
  46. kstlib-1.0.1/src/kstlib/cli/commands/ops/common.py +269 -0
  47. kstlib-1.0.1/src/kstlib/cli/commands/ops/list_sessions.py +252 -0
  48. kstlib-1.0.1/src/kstlib/cli/commands/ops/logs.py +49 -0
  49. kstlib-1.0.1/src/kstlib/cli/commands/ops/start.py +98 -0
  50. kstlib-1.0.1/src/kstlib/cli/commands/ops/status.py +138 -0
  51. kstlib-1.0.1/src/kstlib/cli/commands/ops/stop.py +60 -0
  52. kstlib-1.0.1/src/kstlib/cli/commands/rapi/__init__.py +60 -0
  53. kstlib-1.0.1/src/kstlib/cli/commands/rapi/call.py +341 -0
  54. kstlib-1.0.1/src/kstlib/cli/commands/rapi/list.py +99 -0
  55. kstlib-1.0.1/src/kstlib/cli/commands/rapi/show.py +206 -0
  56. kstlib-1.0.1/src/kstlib/cli/commands/secrets/__init__.py +35 -0
  57. kstlib-1.0.1/src/kstlib/cli/commands/secrets/common.py +425 -0
  58. kstlib-1.0.1/src/kstlib/cli/commands/secrets/decrypt.py +88 -0
  59. kstlib-1.0.1/src/kstlib/cli/commands/secrets/doctor.py +743 -0
  60. kstlib-1.0.1/src/kstlib/cli/commands/secrets/encrypt.py +242 -0
  61. kstlib-1.0.1/src/kstlib/cli/commands/secrets/shred.py +96 -0
  62. kstlib-1.0.1/src/kstlib/cli/common.py +86 -0
  63. kstlib-1.0.1/src/kstlib/config/__init__.py +76 -0
  64. kstlib-1.0.1/src/kstlib/config/exceptions.py +110 -0
  65. kstlib-1.0.1/src/kstlib/config/export.py +225 -0
  66. kstlib-1.0.1/src/kstlib/config/loader.py +963 -0
  67. kstlib-1.0.1/src/kstlib/config/sops.py +287 -0
  68. kstlib-1.0.1/src/kstlib/db/__init__.py +54 -0
  69. kstlib-1.0.1/src/kstlib/db/aiosqlcipher.py +137 -0
  70. kstlib-1.0.1/src/kstlib/db/cipher.py +112 -0
  71. kstlib-1.0.1/src/kstlib/db/database.py +367 -0
  72. kstlib-1.0.1/src/kstlib/db/exceptions.py +25 -0
  73. kstlib-1.0.1/src/kstlib/db/pool.py +302 -0
  74. kstlib-1.0.1/src/kstlib/helpers/__init__.py +35 -0
  75. kstlib-1.0.1/src/kstlib/helpers/exceptions.py +11 -0
  76. kstlib-1.0.1/src/kstlib/helpers/time_trigger.py +396 -0
  77. kstlib-1.0.1/src/kstlib/kstlib.conf.yml +890 -0
  78. kstlib-1.0.1/src/kstlib/limits.py +963 -0
  79. kstlib-1.0.1/src/kstlib/logging/__init__.py +108 -0
  80. kstlib-1.0.1/src/kstlib/logging/manager.py +633 -0
  81. kstlib-1.0.1/src/kstlib/mail/__init__.py +42 -0
  82. kstlib-1.0.1/src/kstlib/mail/builder.py +626 -0
  83. kstlib-1.0.1/src/kstlib/mail/exceptions.py +27 -0
  84. kstlib-1.0.1/src/kstlib/mail/filesystem.py +248 -0
  85. kstlib-1.0.1/src/kstlib/mail/transport.py +224 -0
  86. kstlib-1.0.1/src/kstlib/mail/transports/__init__.py +19 -0
  87. kstlib-1.0.1/src/kstlib/mail/transports/gmail.py +268 -0
  88. kstlib-1.0.1/src/kstlib/mail/transports/resend.py +324 -0
  89. kstlib-1.0.1/src/kstlib/mail/transports/smtp.py +326 -0
  90. kstlib-1.0.1/src/kstlib/meta.py +72 -0
  91. kstlib-1.0.1/src/kstlib/metrics/__init__.py +88 -0
  92. kstlib-1.0.1/src/kstlib/metrics/decorators.py +1090 -0
  93. kstlib-1.0.1/src/kstlib/metrics/exceptions.py +14 -0
  94. kstlib-1.0.1/src/kstlib/monitoring/__init__.py +116 -0
  95. kstlib-1.0.1/src/kstlib/monitoring/_styles.py +163 -0
  96. kstlib-1.0.1/src/kstlib/monitoring/cell.py +57 -0
  97. kstlib-1.0.1/src/kstlib/monitoring/config.py +424 -0
  98. kstlib-1.0.1/src/kstlib/monitoring/delivery.py +579 -0
  99. kstlib-1.0.1/src/kstlib/monitoring/exceptions.py +63 -0
  100. kstlib-1.0.1/src/kstlib/monitoring/image.py +220 -0
  101. kstlib-1.0.1/src/kstlib/monitoring/kv.py +79 -0
  102. kstlib-1.0.1/src/kstlib/monitoring/list.py +69 -0
  103. kstlib-1.0.1/src/kstlib/monitoring/metric.py +88 -0
  104. kstlib-1.0.1/src/kstlib/monitoring/monitoring.py +341 -0
  105. kstlib-1.0.1/src/kstlib/monitoring/renderer.py +139 -0
  106. kstlib-1.0.1/src/kstlib/monitoring/service.py +392 -0
  107. kstlib-1.0.1/src/kstlib/monitoring/table.py +129 -0
  108. kstlib-1.0.1/src/kstlib/monitoring/types.py +56 -0
  109. kstlib-1.0.1/src/kstlib/ops/__init__.py +86 -0
  110. kstlib-1.0.1/src/kstlib/ops/base.py +148 -0
  111. kstlib-1.0.1/src/kstlib/ops/container.py +577 -0
  112. kstlib-1.0.1/src/kstlib/ops/exceptions.py +209 -0
  113. kstlib-1.0.1/src/kstlib/ops/manager.py +407 -0
  114. kstlib-1.0.1/src/kstlib/ops/models.py +176 -0
  115. kstlib-1.0.1/src/kstlib/ops/tmux.py +372 -0
  116. kstlib-1.0.1/src/kstlib/ops/validators.py +287 -0
  117. kstlib-1.0.1/src/kstlib/py.typed +0 -0
  118. kstlib-1.0.1/src/kstlib/rapi/__init__.py +118 -0
  119. kstlib-1.0.1/src/kstlib/rapi/client.py +875 -0
  120. kstlib-1.0.1/src/kstlib/rapi/config.py +861 -0
  121. kstlib-1.0.1/src/kstlib/rapi/credentials.py +887 -0
  122. kstlib-1.0.1/src/kstlib/rapi/exceptions.py +213 -0
  123. kstlib-1.0.1/src/kstlib/resilience/__init__.py +101 -0
  124. kstlib-1.0.1/src/kstlib/resilience/circuit_breaker.py +440 -0
  125. kstlib-1.0.1/src/kstlib/resilience/exceptions.py +95 -0
  126. kstlib-1.0.1/src/kstlib/resilience/heartbeat.py +491 -0
  127. kstlib-1.0.1/src/kstlib/resilience/rate_limiter.py +506 -0
  128. kstlib-1.0.1/src/kstlib/resilience/shutdown.py +417 -0
  129. kstlib-1.0.1/src/kstlib/resilience/watchdog.py +637 -0
  130. kstlib-1.0.1/src/kstlib/secrets/__init__.py +29 -0
  131. kstlib-1.0.1/src/kstlib/secrets/exceptions.py +19 -0
  132. kstlib-1.0.1/src/kstlib/secrets/models.py +62 -0
  133. kstlib-1.0.1/src/kstlib/secrets/providers/__init__.py +79 -0
  134. kstlib-1.0.1/src/kstlib/secrets/providers/base.py +58 -0
  135. kstlib-1.0.1/src/kstlib/secrets/providers/environment.py +66 -0
  136. kstlib-1.0.1/src/kstlib/secrets/providers/keyring.py +107 -0
  137. kstlib-1.0.1/src/kstlib/secrets/providers/kms.py +223 -0
  138. kstlib-1.0.1/src/kstlib/secrets/providers/kwargs.py +101 -0
  139. kstlib-1.0.1/src/kstlib/secrets/providers/sops.py +209 -0
  140. kstlib-1.0.1/src/kstlib/secrets/resolver.py +221 -0
  141. kstlib-1.0.1/src/kstlib/secrets/sensitive.py +130 -0
  142. kstlib-1.0.1/src/kstlib/secure/__init__.py +23 -0
  143. kstlib-1.0.1/src/kstlib/secure/fs.py +194 -0
  144. kstlib-1.0.1/src/kstlib/secure/permissions.py +70 -0
  145. kstlib-1.0.1/src/kstlib/ssl.py +347 -0
  146. kstlib-1.0.1/src/kstlib/ui/__init__.py +23 -0
  147. kstlib-1.0.1/src/kstlib/ui/exceptions.py +26 -0
  148. kstlib-1.0.1/src/kstlib/ui/panels.py +484 -0
  149. kstlib-1.0.1/src/kstlib/ui/spinner.py +864 -0
  150. kstlib-1.0.1/src/kstlib/ui/tables.py +382 -0
  151. kstlib-1.0.1/src/kstlib/utils/__init__.py +48 -0
  152. kstlib-1.0.1/src/kstlib/utils/dict.py +36 -0
  153. kstlib-1.0.1/src/kstlib/utils/formatting.py +338 -0
  154. kstlib-1.0.1/src/kstlib/utils/http_trace.py +237 -0
  155. kstlib-1.0.1/src/kstlib/utils/lazy.py +49 -0
  156. kstlib-1.0.1/src/kstlib/utils/secure_delete.py +205 -0
  157. kstlib-1.0.1/src/kstlib/utils/serialization.py +247 -0
  158. kstlib-1.0.1/src/kstlib/utils/text.py +56 -0
  159. kstlib-1.0.1/src/kstlib/utils/validators.py +124 -0
  160. kstlib-1.0.1/src/kstlib/websocket/__init__.py +97 -0
  161. kstlib-1.0.1/src/kstlib/websocket/exceptions.py +214 -0
  162. kstlib-1.0.1/src/kstlib/websocket/manager.py +1102 -0
  163. kstlib-1.0.1/src/kstlib/websocket/models.py +361 -0
  164. kstlib-1.0.1/src/kstlib.egg-info/PKG-INFO +201 -0
  165. kstlib-1.0.1/src/kstlib.egg-info/SOURCES.txt +167 -0
  166. kstlib-1.0.1/src/kstlib.egg-info/entry_points.txt +2 -0
  167. kstlib-1.0.1/src/kstlib.egg-info/requires.txt +70 -0
  168. kstlib-0.0.1a0/LICENSE.md +0 -5
  169. kstlib-0.0.1a0/PKG-INFO +0 -29
  170. kstlib-0.0.1a0/README.md +0 -8
  171. kstlib-0.0.1a0/pyproject.toml +0 -27
  172. kstlib-0.0.1a0/src/kstlib/__init__.py +0 -1
  173. kstlib-0.0.1a0/src/kstlib.egg-info/PKG-INFO +0 -29
  174. kstlib-0.0.1a0/src/kstlib.egg-info/SOURCES.txt +0 -8
  175. {kstlib-0.0.1a0 → kstlib-1.0.1}/src/kstlib.egg-info/dependency_links.txt +0 -0
  176. {kstlib-0.0.1a0 → kstlib-1.0.1}/src/kstlib.egg-info/top_level.txt +0 -0
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright © • 2025 • Michel TRUONG
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,49 @@
1
+ # =============================================================================
2
+ # MANIFEST.in - kstlib
3
+ # Controls what goes into the source distribution (sdist)
4
+ # =============================================================================
5
+
6
+ # --- Include essential files ---
7
+ include LICENSE.md
8
+ include README.md
9
+ include pyproject.toml
10
+
11
+ # --- Include package data ---
12
+ recursive-include src/kstlib *.yml
13
+ recursive-include src/kstlib *.yaml
14
+ recursive-include src/kstlib py.typed
15
+
16
+ # --- Exclude examples and tests (available on GitHub, not needed in package) ---
17
+ prune examples
18
+ prune tests
19
+
20
+ # --- Exclude development files ---
21
+ exclude .gitattributes
22
+ exclude .gitignore
23
+ exclude .pre-commit-config.yaml
24
+ exclude .editorconfig
25
+ exclude tox.ini
26
+ exclude Makefile
27
+ exclude CLAUDE.md
28
+
29
+ # --- Exclude directories ---
30
+ prune .github
31
+ prune .claude
32
+ prune .vscode
33
+ prune .idea
34
+ prune infra
35
+ prune docs
36
+
37
+ # --- Exclude Python cache ---
38
+ global-exclude __pycache__
39
+ global-exclude *.py[cod]
40
+ global-exclude *.so
41
+ global-exclude .DS_Store
42
+ global-exclude *.egg-info
43
+
44
+ # --- Exclude test artifacts ---
45
+ global-exclude .coverage
46
+ global-exclude .pytest_cache
47
+ global-exclude .tox
48
+ global-exclude .mypy_cache
49
+ global-exclude .ruff_cache
kstlib-1.0.1/PKG-INFO ADDED
@@ -0,0 +1,201 @@
1
+ Metadata-Version: 2.4
2
+ Name: kstlib
3
+ Version: 1.0.1
4
+ Summary: Config-driven helpers for Python projects (dynamic config, secure secrets, preset logging, and more…)
5
+ Author-email: Michel TRUONG <michel.truong@gmail.com>
6
+ Maintainer-email: Michel TRUONG <michel.truong@gmail.com>
7
+ License-Expression: MIT
8
+ Project-URL: Homepage, https://github.com/KaminoU/kstlib
9
+ Project-URL: Repository, https://github.com/KaminoU/kstlib
10
+ Project-URL: Bug Tracker, https://github.com/KaminoU/kstlib/issues
11
+ Project-URL: Changelog, https://github.com/KaminoU/kstlib/blob/main/CHANGELOG.md
12
+ Keywords: kstlib
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Requires-Python: >=3.10
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE.md
24
+ Requires-Dist: pyyaml<7,>=6.0
25
+ Requires-Dist: tomli<3,>=2.3
26
+ Requires-Dist: tomli-w<2,>=1.0
27
+ Requires-Dist: python-box<8,>=7.3
28
+ Requires-Dist: typer<1,>=0.19
29
+ Requires-Dist: click<9,>=8.3
30
+ Requires-Dist: rich<15,>=14.2
31
+ Requires-Dist: structlog<26,>=25.0
32
+ Requires-Dist: aiosqlite<1,>=0.21
33
+ Requires-Dist: aiosmtplib<5,>=4.0
34
+ Requires-Dist: websockets<16,>=15.0
35
+ Requires-Dist: jinja2<4,>=3.1
36
+ Requires-Dist: humanize<5,>=4.11
37
+ Requires-Dist: httpx<1,>=0.28
38
+ Requires-Dist: authlib<2,>=1.5
39
+ Requires-Dist: pendulum<4,>=3.0
40
+ Provides-Extra: dev
41
+ Requires-Dist: pytest<9,>=8.4; extra == "dev"
42
+ Requires-Dist: pytest-cov<8,>=7.0; extra == "dev"
43
+ Requires-Dist: pytest-asyncio<2,>=1.2; extra == "dev"
44
+ Requires-Dist: ruff<1,>=0.14; extra == "dev"
45
+ Requires-Dist: mypy<2,>=1.18; extra == "dev"
46
+ Requires-Dist: types-PyYAML<7,>=6.0; extra == "dev"
47
+ Requires-Dist: pre-commit<5,>=4.0; extra == "dev"
48
+ Requires-Dist: boto3<2,>=1.35; extra == "dev"
49
+ Provides-Extra: db-crypto
50
+ Requires-Dist: sqlcipher3<1,>=0.5; extra == "db-crypto"
51
+ Provides-Extra: docs
52
+ Requires-Dist: sphinx<9,>=8.1; extra == "docs"
53
+ Requires-Dist: furo<2026,>=2025.9; extra == "docs"
54
+ Requires-Dist: myst-parser<5,>=4.0; extra == "docs"
55
+ Requires-Dist: sphinx-autodoc-typehints<4,>=3.0; extra == "docs"
56
+ Requires-Dist: sphinx-togglebutton<1,>=0.3; extra == "docs"
57
+ Requires-Dist: sphinx-design<0.7,>=0.6; extra == "docs"
58
+ Provides-Extra: build
59
+ Requires-Dist: build<2,>=1.3; extra == "build"
60
+ Requires-Dist: twine<7,>=6.2; extra == "build"
61
+ Provides-Extra: tox
62
+ Requires-Dist: tox<5,>=4.31; extra == "tox"
63
+ Provides-Extra: infra-tools
64
+ Requires-Dist: awscli-local<1,>=0.22; extra == "infra-tools"
65
+ Provides-Extra: textual
66
+ Requires-Dist: textual<7,>=6.3; extra == "textual"
67
+ Provides-Extra: all
68
+ Requires-Dist: pytest<9,>=8.4; extra == "all"
69
+ Requires-Dist: pytest-cov<8,>=7.0; extra == "all"
70
+ Requires-Dist: pytest-asyncio<2,>=1.2; extra == "all"
71
+ Requires-Dist: ruff<1,>=0.14; extra == "all"
72
+ Requires-Dist: mypy<2,>=1.18; extra == "all"
73
+ Requires-Dist: types-PyYAML<7,>=6.0; extra == "all"
74
+ Requires-Dist: sphinx<9,>=8.1; extra == "all"
75
+ Requires-Dist: furo<2026,>=2025.9; extra == "all"
76
+ Requires-Dist: myst-parser<5,>=4.0; extra == "all"
77
+ Requires-Dist: sphinx-autodoc-typehints<4,>=3.0; extra == "all"
78
+ Requires-Dist: sphinx-togglebutton<1,>=0.3; extra == "all"
79
+ Requires-Dist: sphinx-design<0.7,>=0.6; extra == "all"
80
+ Requires-Dist: build<2,>=1.3; extra == "all"
81
+ Requires-Dist: twine<7,>=6.2; extra == "all"
82
+ Requires-Dist: tox<5,>=4.31; extra == "all"
83
+ Requires-Dist: pre-commit<5,>=4.0; extra == "all"
84
+ Requires-Dist: boto3<2,>=1.35; extra == "all"
85
+ Requires-Dist: awscli-local<1,>=0.22; extra == "all"
86
+ Dynamic: license-file
87
+
88
+ <p align="center">
89
+ <img src="https://raw.githubusercontent.com/KaminoU/kstlib/main/assets/kstlib.svg" alt="Kstlib Logo" width="420">
90
+ </p>
91
+
92
+ <p align="center">
93
+ <strong>Config-driven Python toolkit for resilient applications</strong>
94
+ </p>
95
+
96
+ <p align="center">
97
+ <a href="https://github.com/KaminoU/kstlib/actions/workflows/ci.yml"><img src="https://github.com/KaminoU/kstlib/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI"></a>
98
+ <a href="https://kstlib.readthedocs.io/"><img src="https://img.shields.io/badge/docs-RTD-blue" alt="Documentation"></a>
99
+ <a href="https://pypi.org/project/kstlib/"><img src="https://img.shields.io/pypi/v/kstlib?color=blue" alt="PyPI"></a>
100
+ <img src="https://img.shields.io/badge/python-≥3.10-blue" alt="Python">
101
+ <a href="https://github.com/KaminoU/kstlib/blob/main/LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-green" alt="License"></a>
102
+ </p>
103
+
104
+ ---
105
+
106
+ **kstlib** is a personal Python toolkit built over 7 years of learning and experimentation.
107
+
108
+ It started as a way to explore Python best practices, evolved into utilities for personal automation,
109
+ and now serves as the foundation for study projects in algorithmic trading and market analysis.
110
+
111
+ The focus has always been on building **resilient, secure, and performant** systems.
112
+
113
+ > **Note**: Everything works via Python, but since kstlib is heavily config-driven,
114
+ > the [Examples Gallery](https://kstlib.readthedocs.io/en/latest/examples.html) showcases
115
+ > a YAML-first approach.
116
+
117
+ ## Core Modules
118
+
119
+ | Module | Purpose |
120
+ |--------|---------|
121
+ | **config** | Cascading config files, includes, SOPS encryption, Box access |
122
+ | **secrets** | Multi-provider resolver (env, keyring, SOPS, KMS) with guardrails |
123
+ | **logging** | Rich console, rotating files, TRACE level, structlog integration |
124
+ | **auth** | OIDC/OAuth2 with PKCE, token storage, auto-refresh |
125
+ | **mail** | Jinja templates, transports (SMTP, Gmail API, Resend) |
126
+ | **alerts** | Multi-channel (Slack, Email), throttling, severity levels |
127
+ | **websocket** | Resilient connections, auto-reconnect, heartbeat, watchdog |
128
+ | **rapi** | Config-driven REST client with HMAC signing |
129
+ | **monitoring** | Collectors + Jinja rendering + delivery (file, mail) |
130
+ | **resilience** | Circuit breaker, rate limiter, graceful shutdown |
131
+ | **ops** | Session manager (tmux), containers (Docker/Podman) |
132
+ | **helpers** | TimeTrigger, formatting, secure delete, validators |
133
+
134
+ ## Quick Start
135
+
136
+ ### Installation
137
+
138
+ ```bash
139
+ pip install kstlib
140
+ ```
141
+
142
+ ### Basic Usage
143
+
144
+ ```python
145
+ from kstlib.config import load_from_file
146
+ from kstlib import cache
147
+
148
+ config = load_from_file("config.yml")
149
+
150
+ @cache(ttl=300)
151
+ def expensive_computation(x: int) -> int:
152
+ return x ** 2
153
+
154
+ result = expensive_computation(5)
155
+ ```
156
+
157
+ ### Minimal Configuration
158
+
159
+ ```yaml
160
+ app:
161
+ name: "My Application"
162
+ debug: true
163
+
164
+ database:
165
+ host: "localhost"
166
+ port: 5432
167
+ ```
168
+
169
+ ## Documentation
170
+
171
+ Full documentation available at **[kstlib.readthedocs.io](https://kstlib.readthedocs.io/)**
172
+
173
+ - [Features Guide](https://kstlib.readthedocs.io/en/latest/features/index.html)
174
+ - [Examples Gallery](https://kstlib.readthedocs.io/en/latest/examples.html)
175
+ - [API Reference](https://kstlib.readthedocs.io/en/latest/api/index.html)
176
+ - [Development Guide](https://kstlib.readthedocs.io/en/latest/development/index.html)
177
+
178
+ ## Installation Options
179
+
180
+ ```bash
181
+ # Standard install
182
+ pip install kstlib
183
+
184
+ # With uv (faster)
185
+ uv pip install kstlib
186
+
187
+ # Development install
188
+ pip install "kstlib[dev]"
189
+
190
+ # All extras
191
+ pip install "kstlib[all]"
192
+
193
+ # From GitHub (latest)
194
+ pip install "git+https://github.com/KaminoU/kstlib.git"
195
+ ```
196
+
197
+ ## License
198
+
199
+ MIT License - Copyright 2025 Michel TRUONG
200
+
201
+ See [LICENSE](LICENSE.md) for full text.
kstlib-1.0.1/README.md ADDED
@@ -0,0 +1,114 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/KaminoU/kstlib/main/assets/kstlib.svg" alt="Kstlib Logo" width="420">
3
+ </p>
4
+
5
+ <p align="center">
6
+ <strong>Config-driven Python toolkit for resilient applications</strong>
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="https://github.com/KaminoU/kstlib/actions/workflows/ci.yml"><img src="https://github.com/KaminoU/kstlib/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI"></a>
11
+ <a href="https://kstlib.readthedocs.io/"><img src="https://img.shields.io/badge/docs-RTD-blue" alt="Documentation"></a>
12
+ <a href="https://pypi.org/project/kstlib/"><img src="https://img.shields.io/pypi/v/kstlib?color=blue" alt="PyPI"></a>
13
+ <img src="https://img.shields.io/badge/python-≥3.10-blue" alt="Python">
14
+ <a href="https://github.com/KaminoU/kstlib/blob/main/LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-green" alt="License"></a>
15
+ </p>
16
+
17
+ ---
18
+
19
+ **kstlib** is a personal Python toolkit built over 7 years of learning and experimentation.
20
+
21
+ It started as a way to explore Python best practices, evolved into utilities for personal automation,
22
+ and now serves as the foundation for study projects in algorithmic trading and market analysis.
23
+
24
+ The focus has always been on building **resilient, secure, and performant** systems.
25
+
26
+ > **Note**: Everything works via Python, but since kstlib is heavily config-driven,
27
+ > the [Examples Gallery](https://kstlib.readthedocs.io/en/latest/examples.html) showcases
28
+ > a YAML-first approach.
29
+
30
+ ## Core Modules
31
+
32
+ | Module | Purpose |
33
+ |--------|---------|
34
+ | **config** | Cascading config files, includes, SOPS encryption, Box access |
35
+ | **secrets** | Multi-provider resolver (env, keyring, SOPS, KMS) with guardrails |
36
+ | **logging** | Rich console, rotating files, TRACE level, structlog integration |
37
+ | **auth** | OIDC/OAuth2 with PKCE, token storage, auto-refresh |
38
+ | **mail** | Jinja templates, transports (SMTP, Gmail API, Resend) |
39
+ | **alerts** | Multi-channel (Slack, Email), throttling, severity levels |
40
+ | **websocket** | Resilient connections, auto-reconnect, heartbeat, watchdog |
41
+ | **rapi** | Config-driven REST client with HMAC signing |
42
+ | **monitoring** | Collectors + Jinja rendering + delivery (file, mail) |
43
+ | **resilience** | Circuit breaker, rate limiter, graceful shutdown |
44
+ | **ops** | Session manager (tmux), containers (Docker/Podman) |
45
+ | **helpers** | TimeTrigger, formatting, secure delete, validators |
46
+
47
+ ## Quick Start
48
+
49
+ ### Installation
50
+
51
+ ```bash
52
+ pip install kstlib
53
+ ```
54
+
55
+ ### Basic Usage
56
+
57
+ ```python
58
+ from kstlib.config import load_from_file
59
+ from kstlib import cache
60
+
61
+ config = load_from_file("config.yml")
62
+
63
+ @cache(ttl=300)
64
+ def expensive_computation(x: int) -> int:
65
+ return x ** 2
66
+
67
+ result = expensive_computation(5)
68
+ ```
69
+
70
+ ### Minimal Configuration
71
+
72
+ ```yaml
73
+ app:
74
+ name: "My Application"
75
+ debug: true
76
+
77
+ database:
78
+ host: "localhost"
79
+ port: 5432
80
+ ```
81
+
82
+ ## Documentation
83
+
84
+ Full documentation available at **[kstlib.readthedocs.io](https://kstlib.readthedocs.io/)**
85
+
86
+ - [Features Guide](https://kstlib.readthedocs.io/en/latest/features/index.html)
87
+ - [Examples Gallery](https://kstlib.readthedocs.io/en/latest/examples.html)
88
+ - [API Reference](https://kstlib.readthedocs.io/en/latest/api/index.html)
89
+ - [Development Guide](https://kstlib.readthedocs.io/en/latest/development/index.html)
90
+
91
+ ## Installation Options
92
+
93
+ ```bash
94
+ # Standard install
95
+ pip install kstlib
96
+
97
+ # With uv (faster)
98
+ uv pip install kstlib
99
+
100
+ # Development install
101
+ pip install "kstlib[dev]"
102
+
103
+ # All extras
104
+ pip install "kstlib[all]"
105
+
106
+ # From GitHub (latest)
107
+ pip install "git+https://github.com/KaminoU/kstlib.git"
108
+ ```
109
+
110
+ ## License
111
+
112
+ MIT License - Copyright 2025 Michel TRUONG
113
+
114
+ See [LICENSE](LICENSE.md) for full text.