oe-python-template-example 0.3.6__py3-none-any.whl → 0.3.7__py3-none-any.whl
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_example/system/_service.py +4 -0
- {oe_python_template_example-0.3.6.dist-info → oe_python_template_example-0.3.7.dist-info}/METADATA +2 -1
- {oe_python_template_example-0.3.6.dist-info → oe_python_template_example-0.3.7.dist-info}/RECORD +6 -6
- {oe_python_template_example-0.3.6.dist-info → oe_python_template_example-0.3.7.dist-info}/WHEEL +0 -0
- {oe_python_template_example-0.3.6.dist-info → oe_python_template_example-0.3.7.dist-info}/entry_points.txt +0 -0
- {oe_python_template_example-0.3.6.dist-info → oe_python_template_example-0.3.7.dist-info}/licenses/LICENSE +0 -0
@@ -9,6 +9,7 @@ import time
|
|
9
9
|
from typing import Any
|
10
10
|
|
11
11
|
from pydantic_settings import BaseSettings
|
12
|
+
from uptime import boottime, uptime
|
12
13
|
|
13
14
|
from ..utils import ( # noqa: TID252
|
14
15
|
UNHIDE_SENSITIVE_INFO,
|
@@ -93,6 +94,7 @@ class Service(BaseService):
|
|
93
94
|
Returns:
|
94
95
|
dict[str, Any]: Service configuration.
|
95
96
|
"""
|
97
|
+
bootdatetime = boottime()
|
96
98
|
rtn = {
|
97
99
|
"package": {
|
98
100
|
"version": __version__,
|
@@ -121,6 +123,8 @@ class Service(BaseService):
|
|
121
123
|
"hostname": platform.node(),
|
122
124
|
"ip_address": platform.uname().node,
|
123
125
|
"cpu_count": os.cpu_count(),
|
126
|
+
"uptime": uptime(),
|
127
|
+
"boottime": bootdatetime.isoformat() if bootdatetime else None,
|
124
128
|
},
|
125
129
|
},
|
126
130
|
}
|
{oe_python_template_example-0.3.6.dist-info → oe_python_template_example-0.3.7.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: oe-python-template-example
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.7
|
4
4
|
Summary: 🧠 Example project scaffolded and kept up to date with OE Python Template (oe-python-template).
|
5
5
|
Project-URL: Homepage, https://oe-python-template-example.readthedocs.io/en/latest/
|
6
6
|
Project-URL: Documentation, https://oe-python-template-example.readthedocs.io/en/latest/
|
@@ -63,6 +63,7 @@ Requires-Dist: pydantic-settings>=2.8.1
|
|
63
63
|
Requires-Dist: pydantic>=2.11.3
|
64
64
|
Requires-Dist: sentry-sdk>=2.25.1
|
65
65
|
Requires-Dist: typer>=0.15.1
|
66
|
+
Requires-Dist: uptime>=3.0.1
|
66
67
|
Provides-Extra: examples
|
67
68
|
Requires-Dist: jinja2>=3.1.6; extra == 'examples'
|
68
69
|
Requires-Dist: jupyter>=1.1.1; extra == 'examples'
|
{oe_python_template_example-0.3.6.dist-info → oe_python_template_example-0.3.7.dist-info}/RECORD
RENAMED
@@ -12,7 +12,7 @@ oe_python_template_example/hello/_settings.py,sha256=kvXqqYCKkT42FkiszE5MOChdsTJ
|
|
12
12
|
oe_python_template_example/system/__init__.py,sha256=NNgODkr7AyJjTTJiv3pys7o2z6xi1G96g0vnsxVhlI4,427
|
13
13
|
oe_python_template_example/system/_api.py,sha256=rE9Aau3IIHXdEkOBUXOwJ7SxN3cZpgtYEuojnSWfT_4,3687
|
14
14
|
oe_python_template_example/system/_cli.py,sha256=J_4upBBdbSxbONPYmOZPbuhZcKjfnPIUeZpp0L7lY-Q,4846
|
15
|
-
oe_python_template_example/system/_service.py,sha256=
|
15
|
+
oe_python_template_example/system/_service.py,sha256=e08VPguXKz2RhyhTbIw1ncSpE6zwKUr1xLM2WZC9u7k,6287
|
16
16
|
oe_python_template_example/system/_settings.py,sha256=MwMAJYifJ6jGImeSh4e9shmIXmiUSuQGHXz_Ts0mSdk,901
|
17
17
|
oe_python_template_example/utils/__init__.py,sha256=rHdmSS21CtvF3AXPMSCZO17FTzxPDo-NiKZ5AjVU9b0,1449
|
18
18
|
oe_python_template_example/utils/_api.py,sha256=w3hPQK1pL2gBI4_1qNWNa2b4S_oH-8mY-ckRX0KrCWM,617
|
@@ -28,8 +28,8 @@ oe_python_template_example/utils/_sentry.py,sha256=Y4hZ-PeBOdR3iRhoXW9j0tbWsYf07
|
|
28
28
|
oe_python_template_example/utils/_service.py,sha256=atHAejvBucKXjzhsMSdOBBFa7rRD74zcV70Pp0pl0Tg,1038
|
29
29
|
oe_python_template_example/utils/_settings.py,sha256=5K1pnp-AxMQbktREb3bXDmqgrOx_L4EJIgjPQfqH4sE,2294
|
30
30
|
oe_python_template_example/utils/boot.py,sha256=TBgmqbtIryQz0cAozYzxhYQRIldfbJ6v9R-rH6sO9mY,2696
|
31
|
-
oe_python_template_example-0.3.
|
32
|
-
oe_python_template_example-0.3.
|
33
|
-
oe_python_template_example-0.3.
|
34
|
-
oe_python_template_example-0.3.
|
35
|
-
oe_python_template_example-0.3.
|
31
|
+
oe_python_template_example-0.3.7.dist-info/METADATA,sha256=fHz4k1yEXUdTCmimGQ3ANZQ4e5kWKxxO5vZ4Gb2VqZE,33191
|
32
|
+
oe_python_template_example-0.3.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
33
|
+
oe_python_template_example-0.3.7.dist-info/entry_points.txt,sha256=S2eCPB45b1Wgj_GsDRFAN-e4h7dBA5UPxT8od98erDE,82
|
34
|
+
oe_python_template_example-0.3.7.dist-info/licenses/LICENSE,sha256=5H409K6xzz9U5eUaoAHQExNkoWJRlU0LEj6wL2QJ34s,1113
|
35
|
+
oe_python_template_example-0.3.7.dist-info/RECORD,,
|
{oe_python_template_example-0.3.6.dist-info → oe_python_template_example-0.3.7.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|