oe-python-template 0.17.8__py3-none-any.whl → 0.17.9__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/system/_service.py +4 -3
- oe_python_template/utils/_constants.py +2 -1
- {oe_python_template-0.17.8.dist-info → oe_python_template-0.17.9.dist-info}/METADATA +1 -1
- {oe_python_template-0.17.8.dist-info → oe_python_template-0.17.9.dist-info}/RECORD +7 -7
- {oe_python_template-0.17.8.dist-info → oe_python_template-0.17.9.dist-info}/WHEEL +0 -0
- {oe_python_template-0.17.8.dist-info → oe_python_template-0.17.9.dist-info}/entry_points.txt +0 -0
- {oe_python_template-0.17.8.dist-info → oe_python_template-0.17.9.dist-info}/licenses/LICENSE +0 -0
@@ -141,6 +141,7 @@ class Service(BaseService):
|
|
141
141
|
return None
|
142
142
|
|
143
143
|
@staticmethod
|
144
|
+
|
144
145
|
def info(include_environ: bool = False, filter_secrets: bool = True) -> dict[str, Any]:
|
145
146
|
"""
|
146
147
|
Get info about configuration of service.
|
@@ -241,7 +242,7 @@ class Service(BaseService):
|
|
241
242
|
if filter_secrets:
|
242
243
|
runtime["environ"] = {
|
243
244
|
k: v
|
244
|
-
for k, v in os.environ.items()
|
245
|
+
for k, v in sorted(os.environ.items())
|
245
246
|
if not (
|
246
247
|
"token" in k.lower()
|
247
248
|
or "key" in k.lower()
|
@@ -251,7 +252,7 @@ class Service(BaseService):
|
|
251
252
|
)
|
252
253
|
}
|
253
254
|
else:
|
254
|
-
runtime["environ"] = dict(os.environ)
|
255
|
+
runtime["environ"] = dict(sorted(os.environ.items()))
|
255
256
|
|
256
257
|
settings: dict[str, Any] = {}
|
257
258
|
for settings_class in locate_subclasses(BaseSettings):
|
@@ -263,7 +264,7 @@ class Service(BaseService):
|
|
263
264
|
for key, value in settings_dict.items():
|
264
265
|
flat_key = f"{env_prefix}{key}".upper()
|
265
266
|
settings[flat_key] = value
|
266
|
-
rtn["settings"] = settings
|
267
|
+
rtn["settings"] = {k: settings[k] for k in sorted(settings)}
|
267
268
|
|
268
269
|
# Convert the TypedDict to a regular dict before adding dynamic service keys
|
269
270
|
result_dict: dict[str, Any] = dict(rtn)
|
@@ -7,9 +7,10 @@ from pathlib import Path
|
|
7
7
|
|
8
8
|
from dotenv import load_dotenv
|
9
9
|
|
10
|
+
__project_name__ = __name__.split(".")[0]
|
11
|
+
load_dotenv(os.getenv(f"{__project_name__.upper()}_ENV_FILE", Path.home() / f".{__project_name__}/.env"))
|
10
12
|
load_dotenv()
|
11
13
|
|
12
|
-
__project_name__ = __name__.split(".")[0]
|
13
14
|
__project_path__ = str(Path(__file__).parent.parent.parent)
|
14
15
|
__version__ = metadata.version(__project_name__)
|
15
16
|
__is_development_mode__ = "uvx" not in sys.argv[0].lower()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: oe-python-template
|
3
|
-
Version: 0.17.
|
3
|
+
Version: 0.17.9
|
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/
|
@@ -14,13 +14,13 @@ oe_python_template/system/__init__.py,sha256=7e2z8HATzy3dAIBXy5PM9rlCC7Rbu8m8Nap
|
|
14
14
|
oe_python_template/system/_api.py,sha256=pBBCL1gXM7W5dgJqBLKuNFWES0pQF8mbUgQ7H7oHwh8,3714
|
15
15
|
oe_python_template/system/_cli.py,sha256=fVO_TSIyiaMJ2ACeQ4gPy4QQZjmeBVnsxxsViuNGe8I,6990
|
16
16
|
oe_python_template/system/_gui.py,sha256=MG2nyHZoqD1E4TIrmvBnGwu8-hgKpFt1kKd2aF10FBI,961
|
17
|
-
oe_python_template/system/_service.py,sha256=
|
17
|
+
oe_python_template/system/_service.py,sha256=EYB2pZG2RDwb05rIlULTn_nz2QMrhyMLGRzn4Z2S7DY,10494
|
18
18
|
oe_python_template/system/_settings.py,sha256=MwMAJYifJ6jGImeSh4e9shmIXmiUSuQGHXz_Ts0mSdk,901
|
19
19
|
oe_python_template/utils/__init__.py,sha256=oM8v1ozMOeBQG-EbBtEGbnuGk52mYNDAmNoR7vNQ7MY,2050
|
20
20
|
oe_python_template/utils/_api.py,sha256=GSI-HPtSdTFv0qP5aTDPa2WS3ewVa1slusG6dvxSu0Y,2474
|
21
21
|
oe_python_template/utils/_cli.py,sha256=J_mFtXZ1gGeovGrE5i3wlokTOBfiTTKEz5magiRP7GA,2091
|
22
22
|
oe_python_template/utils/_console.py,sha256=u0-utcdRmVu4rabrYUyNOx8yPxLhxB3E92m22kSCwPQ,293
|
23
|
-
oe_python_template/utils/_constants.py,sha256=
|
23
|
+
oe_python_template/utils/_constants.py,sha256=EF5XQrHhfZKAEiHG_jZGtM1iDL3WcWFumLifHNC8gMk,3407
|
24
24
|
oe_python_template/utils/_di.py,sha256=J1-f6xtbnR88VfRAsRMl5m6eqt-Lf3c7ABSJOxNzlvU,2399
|
25
25
|
oe_python_template/utils/_gui.py,sha256=e3fYHNJQNIMbV74zu27Wp_fog3QqbIDukqRWUE_f17Y,7754
|
26
26
|
oe_python_template/utils/_health.py,sha256=35QOWe2r5InrEpGtuVMym9dI5aRHS0HWf4BHBRAUIj0,4102
|
@@ -33,8 +33,8 @@ oe_python_template/utils/_service.py,sha256=atHAejvBucKXjzhsMSdOBBFa7rRD74zcV70P
|
|
33
33
|
oe_python_template/utils/_settings.py,sha256=owFoaHEzJnVD3EVyOWF4rfIY7g6eLnU6rN0m4VHhCbA,2464
|
34
34
|
oe_python_template/utils/boot.py,sha256=Qgq1sjT8d3fcfibnMyx5CVUJ_KKXgFI3ozZUIJbhh4I,2921
|
35
35
|
oe_python_template/utils/.vendored/bottle.py,sha256=kZAZmh3nRzCUf-9IKGpv0yqlMciZMA_DNaaMDdcQmt0,175437
|
36
|
-
oe_python_template-0.17.
|
37
|
-
oe_python_template-0.17.
|
38
|
-
oe_python_template-0.17.
|
39
|
-
oe_python_template-0.17.
|
40
|
-
oe_python_template-0.17.
|
36
|
+
oe_python_template-0.17.9.dist-info/METADATA,sha256=gg1gxpVaHPaT5g8pl0BsBQjCcNI0PpZk_SBMnMaKMyA,34659
|
37
|
+
oe_python_template-0.17.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
38
|
+
oe_python_template-0.17.9.dist-info/entry_points.txt,sha256=IroSSWhLGxus9rxcashkYQda39TTvf7LbUMYtOKXUBE,66
|
39
|
+
oe_python_template-0.17.9.dist-info/licenses/LICENSE,sha256=5H409K6xzz9U5eUaoAHQExNkoWJRlU0LEj6wL2QJ34s,1113
|
40
|
+
oe_python_template-0.17.9.dist-info/RECORD,,
|
File without changes
|
{oe_python_template-0.17.8.dist-info → oe_python_template-0.17.9.dist-info}/entry_points.txt
RENAMED
File without changes
|
{oe_python_template-0.17.8.dist-info → oe_python_template-0.17.9.dist-info}/licenses/LICENSE
RENAMED
File without changes
|