oe-python-template-example 0.4.11__tar.gz → 0.4.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_example-0.4.11 → oe_python_template_example-0.4.12}/PKG-INFO +4 -4
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/pyproject.toml +5 -5
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_log.py +4 -1
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/.gitignore +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/LICENSE +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/README.md +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/__init__.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/api.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/cli.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/constants.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/hello/__init__.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/hello/_api.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/hello/_cli.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/hello/_constants.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/hello/_gui.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/hello/_models.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/hello/_service.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/hello/_settings.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/system/__init__.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/system/_api.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/system/_cli.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/system/_gui.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/system/_service.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/system/_settings.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/.vendored/bottle.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/__init__.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_api.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_cli.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_console.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_constants.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_di.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_gui.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_health.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_logfire.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_notebook.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_process.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_sentry.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_service.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_settings.py +0 -0
- {oe_python_template_example-0.4.11 → oe_python_template_example-0.4.12}/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.12
|
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/
|
@@ -49,7 +49,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
49
49
|
Classifier: Typing :: Typed
|
50
50
|
Requires-Python: <4.0,>=3.11
|
51
51
|
Requires-Dist: fastapi[all,standard]>=0.115.12
|
52
|
-
Requires-Dist: logfire[system-metrics]>=3.
|
52
|
+
Requires-Dist: logfire[system-metrics]>=3.14.1
|
53
53
|
Requires-Dist: nicegui[native]>=2.15.0
|
54
54
|
Requires-Dist: opentelemetry-instrumentation-fastapi>=0.53b0
|
55
55
|
Requires-Dist: opentelemetry-instrumentation-httpx>=0.53b0
|
@@ -61,13 +61,13 @@ Requires-Dist: opentelemetry-instrumentation-urllib3>=0.53b0
|
|
61
61
|
Requires-Dist: opentelemetry-instrumentation-urllib>=0.53b0
|
62
62
|
Requires-Dist: psutil>=7.0.0
|
63
63
|
Requires-Dist: pydantic-settings>=2.9.1
|
64
|
-
Requires-Dist: sentry-sdk>=2.
|
64
|
+
Requires-Dist: sentry-sdk>=2.27.0
|
65
65
|
Requires-Dist: typer>=0.15.1
|
66
66
|
Requires-Dist: uptime>=3.0.1
|
67
67
|
Provides-Extra: examples
|
68
68
|
Requires-Dist: jinja2>=3.1.6; extra == 'examples'
|
69
69
|
Requires-Dist: jupyter>=1.1.1; extra == 'examples'
|
70
|
-
Requires-Dist: marimo>=0.13.
|
70
|
+
Requires-Dist: marimo>=0.13.1; extra == 'examples'
|
71
71
|
Requires-Dist: matplotlib>=3.10.1; extra == 'examples'
|
72
72
|
Requires-Dist: streamlit>=1.44.1; extra == 'examples'
|
73
73
|
Description-Content-Type: text/markdown
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "oe-python-template-example"
|
3
|
-
version = "0.4.
|
3
|
+
version = "0.4.12"
|
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 = [
|
@@ -64,7 +64,7 @@ requires-python = ">=3.11, <4.0"
|
|
64
64
|
dependencies = [
|
65
65
|
# From Template
|
66
66
|
"fastapi[standard,all]>=0.115.12",
|
67
|
-
"logfire[system-metrics]>=3.
|
67
|
+
"logfire[system-metrics]>=3.14.1",
|
68
68
|
"nicegui[native]>=2.15.0",
|
69
69
|
"opentelemetry-instrumentation-fastapi>=0.53b0",
|
70
70
|
"opentelemetry-instrumentation-httpx>=0.53b0",
|
@@ -76,7 +76,7 @@ dependencies = [
|
|
76
76
|
"opentelemetry-instrumentation-urllib3>=0.53b0",
|
77
77
|
"psutil>=7.0.0",
|
78
78
|
"pydantic-settings>=2.9.1",
|
79
|
-
"sentry-sdk>=2.
|
79
|
+
"sentry-sdk>=2.27.0",
|
80
80
|
"typer>=0.15.1",
|
81
81
|
"uptime>=3.0.1",
|
82
82
|
# Custom
|
@@ -85,7 +85,7 @@ dependencies = [
|
|
85
85
|
|
86
86
|
[project.optional-dependencies]
|
87
87
|
examples = [
|
88
|
-
"marimo>=0.13.
|
88
|
+
"marimo>=0.13.1",
|
89
89
|
"matplotlib>=3.10.1",
|
90
90
|
"jinja2>=3.1.6",
|
91
91
|
"jupyter>=1.1.1",
|
@@ -282,7 +282,7 @@ source = ["src/"]
|
|
282
282
|
|
283
283
|
|
284
284
|
[tool.bumpversion]
|
285
|
-
current_version = "0.4.
|
285
|
+
current_version = "0.4.12"
|
286
286
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
287
287
|
serialize = ["{major}.{minor}.{patch}"]
|
288
288
|
search = "{current_version}"
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"""Logging configuration and utilities."""
|
2
2
|
|
3
|
+
import contextlib
|
3
4
|
import logging as python_logging
|
4
5
|
import os
|
5
6
|
import typing as t
|
@@ -63,11 +64,13 @@ def _validate_file_name(file_name: str | None) -> str | None:
|
|
63
64
|
else:
|
64
65
|
try:
|
65
66
|
file_path.touch(exist_ok=True)
|
66
|
-
file_path.unlink()
|
67
67
|
except OSError as e:
|
68
68
|
message = f"File {file_path.absolute()} cannot be created: {e}"
|
69
69
|
raise ValueError(message) from e
|
70
70
|
|
71
|
+
with contextlib.suppress(OSError): # Parallel execution e.g. in tests can create race
|
72
|
+
file_path.unlink()
|
73
|
+
|
71
74
|
return file_name
|
72
75
|
|
73
76
|
|
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
|