oe-python-template-example 0.3.6__tar.gz → 0.3.7__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 (35) hide show
  1. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/PKG-INFO +2 -1
  2. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/pyproject.toml +3 -2
  3. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/system/_service.py +4 -0
  4. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/.gitignore +0 -0
  5. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/LICENSE +0 -0
  6. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/README.md +0 -0
  7. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/__init__.py +0 -0
  8. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/api.py +0 -0
  9. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/cli.py +0 -0
  10. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/constants.py +0 -0
  11. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/hello/__init__.py +0 -0
  12. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/hello/_api.py +0 -0
  13. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/hello/_cli.py +0 -0
  14. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/hello/_constants.py +0 -0
  15. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/hello/_models.py +0 -0
  16. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/hello/_service.py +0 -0
  17. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/hello/_settings.py +0 -0
  18. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/system/__init__.py +0 -0
  19. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/system/_api.py +0 -0
  20. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/system/_cli.py +0 -0
  21. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/system/_settings.py +0 -0
  22. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/utils/__init__.py +0 -0
  23. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/utils/_api.py +0 -0
  24. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/utils/_cli.py +0 -0
  25. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/utils/_console.py +0 -0
  26. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/utils/_constants.py +0 -0
  27. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/utils/_di.py +0 -0
  28. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/utils/_health.py +0 -0
  29. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/utils/_log.py +0 -0
  30. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/utils/_logfire.py +0 -0
  31. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/utils/_process.py +0 -0
  32. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/utils/_sentry.py +0 -0
  33. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/utils/_service.py +0 -0
  34. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/src/oe_python_template_example/utils/_settings.py +0 -0
  35. {oe_python_template_example-0.3.6 → oe_python_template_example-0.3.7}/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.3.6
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'
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "oe-python-template-example"
3
- version = "0.3.6"
3
+ version = "0.3.7"
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 = [
@@ -78,6 +78,7 @@ dependencies = [
78
78
  "pydantic-settings>=2.8.1",
79
79
  "sentry-sdk>=2.25.1",
80
80
  "typer>=0.15.1",
81
+ "uptime>=3.0.1",
81
82
  # Custom
82
83
  # Nothing yet
83
84
  ]
@@ -277,7 +278,7 @@ source = ["src/"]
277
278
 
278
279
 
279
280
  [tool.bumpversion]
280
- current_version = "0.3.6"
281
+ current_version = "0.3.7"
281
282
  parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
282
283
  serialize = ["{major}.{minor}.{patch}"]
283
284
  search = "{current_version}"
@@ -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
  }