oe-python-template 0.16.9__tar.gz → 0.16.12__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.
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/PKG-INFO +1 -1
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/pyproject.toml +2 -2
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/system/_service.py +34 -3
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/.gitignore +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/LICENSE +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/README.md +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/__init__.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/api.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/cli.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/constants.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/hello/__init__.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/hello/_api.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/hello/_cli.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/hello/_constants.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/hello/_gui.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/hello/_models.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/hello/_service.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/hello/_settings.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/system/__init__.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/system/_api.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/system/_cli.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/system/_gui.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/system/_settings.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/.vendored/bottle.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/__init__.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_api.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_cli.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_console.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_constants.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_di.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_gui.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_health.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_log.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_logfire.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_notebook.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_process.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_sentry.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_service.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_settings.py +0 -0
- {oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/boot.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: oe-python-template
|
3
|
-
Version: 0.16.
|
3
|
+
Version: 0.16.12
|
4
4
|
Summary: 🧠 Copier template to scaffold Python projects compliant with best practices and modern tooling.
|
5
5
|
Project-URL: Homepage, https://oe-python-template.readthedocs.io/en/latest/
|
6
6
|
Project-URL: Documentation, https://oe-python-template.readthedocs.io/en/latest/
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "oe-python-template"
|
3
|
-
version = "0.16.
|
3
|
+
version = "0.16.12"
|
4
4
|
description = "🧠 Copier template to scaffold Python projects compliant with best practices and modern tooling."
|
5
5
|
readme = "README.md"
|
6
6
|
authors = [{ name = "Helmut Hoffer von Ankershoffen", email = "helmuthva@gmail.com" }]
|
@@ -288,7 +288,7 @@ source = ["src/"]
|
|
288
288
|
|
289
289
|
|
290
290
|
[tool.bumpversion]
|
291
|
-
current_version = "0.16.
|
291
|
+
current_version = "0.16.12"
|
292
292
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
293
293
|
serialize = ["{major}.{minor}.{patch}"]
|
294
294
|
search = "{current_version}"
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/system/_service.py
RENAMED
@@ -152,8 +152,14 @@ class Service(BaseService):
|
|
152
152
|
dict[str, Any]: Service configuration.
|
153
153
|
"""
|
154
154
|
from uptime import boottime, uptime # noqa: PLC0415
|
155
|
+
import psutil # noqa: PLC0415
|
155
156
|
|
156
157
|
bootdatetime = boottime()
|
158
|
+
vmem = psutil.virtual_memory()
|
159
|
+
swap = psutil.swap_memory()
|
160
|
+
cpu_percent = psutil.cpu_percent(interval=5)
|
161
|
+
cpu_times_percent = psutil.cpu_times_percent(interval=5)
|
162
|
+
|
157
163
|
rtn: InfoDict = {
|
158
164
|
"package": {
|
159
165
|
"version": __version__,
|
@@ -177,9 +183,34 @@ class Service(BaseService):
|
|
177
183
|
"version": platform.version(),
|
178
184
|
},
|
179
185
|
"machine": {
|
180
|
-
"
|
181
|
-
|
182
|
-
|
186
|
+
"cpu": {
|
187
|
+
"percent": cpu_percent,
|
188
|
+
"load_avg": psutil.getloadavg(),
|
189
|
+
"user": cpu_times_percent.user,
|
190
|
+
"system": cpu_times_percent.system,
|
191
|
+
"idle": cpu_times_percent.idle,
|
192
|
+
"arch": platform.machine(),
|
193
|
+
"processor": platform.processor(),
|
194
|
+
"count": os.cpu_count(),
|
195
|
+
"frequency": {
|
196
|
+
"current": psutil.cpu_freq().max,
|
197
|
+
"min": psutil.cpu_freq().max,
|
198
|
+
"max": psutil.cpu_freq().max,
|
199
|
+
},
|
200
|
+
},
|
201
|
+
"memory": {
|
202
|
+
"percent": vmem.percent,
|
203
|
+
"total": vmem.total,
|
204
|
+
"available": vmem.available,
|
205
|
+
"used": vmem.used,
|
206
|
+
"free": vmem.free,
|
207
|
+
},
|
208
|
+
"swap": {
|
209
|
+
"percent": swap.percent,
|
210
|
+
"total": swap.total,
|
211
|
+
"used": swap.used,
|
212
|
+
"free": swap.free,
|
213
|
+
},
|
183
214
|
},
|
184
215
|
"network": {
|
185
216
|
"hostname": platform.node(),
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/constants.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/hello/__init__.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/hello/_api.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/hello/_cli.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/hello/_constants.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/hello/_gui.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/hello/_models.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/hello/_service.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/hello/_settings.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/system/__init__.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/system/_api.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/system/_cli.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/system/_gui.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/system/_settings.py
RENAMED
File without changes
|
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/__init__.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_api.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_cli.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_console.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_constants.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_di.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_gui.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_health.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_log.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_logfire.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_notebook.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_process.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_sentry.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_service.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/_settings.py
RENAMED
File without changes
|
{oe_python_template-0.16.9 → oe_python_template-0.16.12}/src/oe_python_template/utils/boot.py
RENAMED
File without changes
|