oe-python-template 0.10.4__tar.gz → 0.10.5__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.10.4 → oe_python_template-0.10.5}/PKG-INFO +2 -1
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/pyproject.toml +3 -2
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/system/_service.py +4 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/.gitignore +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/LICENSE +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/README.md +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/__init__.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/api.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/cli.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/constants.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/hello/__init__.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/hello/_api.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/hello/_cli.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/hello/_constants.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/hello/_models.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/hello/_service.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/hello/_settings.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/system/__init__.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/system/_api.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/system/_cli.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/system/_settings.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/__init__.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_api.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_cli.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_console.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_constants.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_di.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_health.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_log.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_logfire.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_process.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_sentry.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_service.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_settings.py +0 -0
- {oe_python_template-0.10.4 → oe_python_template-0.10.5}/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.10.
|
|
3
|
+
Version: 0.10.5
|
|
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/
|
|
@@ -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'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "oe-python-template"
|
|
3
|
-
version = "0.10.
|
|
3
|
+
version = "0.10.5"
|
|
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" }]
|
|
@@ -76,6 +76,7 @@ dependencies = [
|
|
|
76
76
|
"pydantic-settings>=2.8.1",
|
|
77
77
|
"sentry-sdk>=2.25.1",
|
|
78
78
|
"typer>=0.15.1",
|
|
79
|
+
"uptime>=3.0.1",
|
|
79
80
|
# Custom
|
|
80
81
|
# Nothing yet
|
|
81
82
|
]
|
|
@@ -275,7 +276,7 @@ source = ["src/"]
|
|
|
275
276
|
|
|
276
277
|
|
|
277
278
|
[tool.bumpversion]
|
|
278
|
-
current_version = "0.10.
|
|
279
|
+
current_version = "0.10.5"
|
|
279
280
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
|
280
281
|
serialize = ["{major}.{minor}.{patch}"]
|
|
281
282
|
search = "{current_version}"
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/system/_service.py
RENAMED
|
@@ -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
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/hello/__init__.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/hello/_api.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/hello/_cli.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/hello/_constants.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/hello/_models.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/hello/_service.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/hello/_settings.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/system/__init__.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/system/_api.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/system/_cli.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/system/_settings.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/__init__.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_api.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_cli.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_console.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_constants.py
RENAMED
|
File without changes
|
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_health.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_log.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_logfire.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_process.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_sentry.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_service.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/_settings.py
RENAMED
|
File without changes
|
{oe_python_template-0.10.4 → oe_python_template-0.10.5}/src/oe_python_template/utils/boot.py
RENAMED
|
File without changes
|