oe-python-template-example 0.4.17__tar.gz → 0.4.18__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_example-0.4.17 → oe_python_template_example-0.4.18}/PKG-INFO +1 -1
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/pyproject.toml +2 -2
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/system/_service.py +3 -3
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/.gitignore +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/LICENSE +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/README.md +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/__init__.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/api.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/cli.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/constants.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/hello/__init__.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/hello/_api.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/hello/_cli.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/hello/_constants.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/hello/_gui.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/hello/_models.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/hello/_service.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/hello/_settings.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/system/__init__.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/system/_api.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/system/_cli.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/system/_gui.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/system/_settings.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/utils/.vendored/bottle.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/utils/__init__.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/utils/_api.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/utils/_cli.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/utils/_console.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/utils/_constants.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/utils/_di.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/utils/_gui.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/utils/_health.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/utils/_log.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/utils/_logfire.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/utils/_notebook.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/utils/_process.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/utils/_sentry.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/utils/_service.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/utils/_settings.py +0 -0
- {oe_python_template_example-0.4.17 → oe_python_template_example-0.4.18}/src/oe_python_template_example/utils/boot.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: oe-python-template-example
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.18
|
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/
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "oe-python-template-example"
|
3
|
-
version = "0.4.
|
3
|
+
version = "0.4.18"
|
4
4
|
description = "🧠 Example project scaffolded and kept up to date with OE Python Template (oe-python-template)."
|
5
5
|
readme = "README.md"
|
6
6
|
authors = [
|
@@ -290,7 +290,7 @@ source = ["src/"]
|
|
290
290
|
|
291
291
|
|
292
292
|
[tool.bumpversion]
|
293
|
-
current_version = "0.4.
|
293
|
+
current_version = "0.4.18"
|
294
294
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
295
295
|
serialize = ["{major}.{minor}.{patch}"]
|
296
296
|
search = "{current_version}"
|
@@ -12,7 +12,6 @@ from urllib.error import HTTPError
|
|
12
12
|
|
13
13
|
from pydantic_settings import BaseSettings
|
14
14
|
from requests import get
|
15
|
-
from uptime import boottime, uptime
|
16
15
|
|
17
16
|
from ..utils import ( # noqa: TID252
|
18
17
|
UNHIDE_SENSITIVE_INFO,
|
@@ -50,7 +49,6 @@ class InfoDict(TypedDict, total=False):
|
|
50
49
|
package: dict[str, Any]
|
51
50
|
runtime: RuntimeDict
|
52
51
|
settings: dict[str, Any]
|
53
|
-
# Allow additional string keys with any values for service info
|
54
52
|
__extra__: NotRequired[dict[str, Any]]
|
55
53
|
|
56
54
|
|
@@ -132,7 +130,7 @@ class Service(BaseService):
|
|
132
130
|
"""
|
133
131
|
try:
|
134
132
|
with socket(AF_INET, SOCK_DGRAM) as connection:
|
135
|
-
connection.connect(("
|
133
|
+
connection.connect((".".join(str(1) for _ in range(4)), 53))
|
136
134
|
return str(connection.getsockname()[0])
|
137
135
|
except Exception as e:
|
138
136
|
message = f"Failed to get local IP: {e}"
|
@@ -153,6 +151,8 @@ class Service(BaseService):
|
|
153
151
|
Returns:
|
154
152
|
dict[str, Any]: Service configuration.
|
155
153
|
"""
|
154
|
+
from uptime import boottime, uptime # noqa: PLC0415
|
155
|
+
|
156
156
|
bootdatetime = boottime()
|
157
157
|
rtn: InfoDict = {
|
158
158
|
"package": {
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|