oe-python-template 0.17.8__tar.gz → 0.17.9__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 (40) hide show
  1. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/PKG-INFO +1 -1
  2. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/pyproject.toml +2 -2
  3. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/system/_service.py +4 -3
  4. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/utils/_constants.py +2 -1
  5. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/.gitignore +0 -0
  6. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/LICENSE +0 -0
  7. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/README.md +0 -0
  8. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/__init__.py +0 -0
  9. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/api.py +0 -0
  10. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/cli.py +0 -0
  11. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/constants.py +0 -0
  12. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/hello/__init__.py +0 -0
  13. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/hello/_api.py +0 -0
  14. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/hello/_cli.py +0 -0
  15. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/hello/_constants.py +0 -0
  16. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/hello/_gui.py +0 -0
  17. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/hello/_models.py +0 -0
  18. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/hello/_service.py +0 -0
  19. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/hello/_settings.py +0 -0
  20. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/system/__init__.py +0 -0
  21. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/system/_api.py +0 -0
  22. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/system/_cli.py +0 -0
  23. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/system/_gui.py +0 -0
  24. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/system/_settings.py +0 -0
  25. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/utils/.vendored/bottle.py +0 -0
  26. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/utils/__init__.py +0 -0
  27. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/utils/_api.py +0 -0
  28. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/utils/_cli.py +0 -0
  29. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/utils/_console.py +0 -0
  30. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/utils/_di.py +0 -0
  31. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/utils/_gui.py +0 -0
  32. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/utils/_health.py +0 -0
  33. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/utils/_log.py +0 -0
  34. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/utils/_logfire.py +0 -0
  35. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/utils/_notebook.py +0 -0
  36. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/utils/_process.py +0 -0
  37. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/utils/_sentry.py +0 -0
  38. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/utils/_service.py +0 -0
  39. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/src/oe_python_template/utils/_settings.py +0 -0
  40. {oe_python_template-0.17.8 → oe_python_template-0.17.9}/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.17.8
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/
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "oe-python-template"
3
- version = "0.17.8"
3
+ version = "0.17.9"
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" }]
@@ -289,7 +289,7 @@ source = ["src/"]
289
289
 
290
290
 
291
291
  [tool.bumpversion]
292
- current_version = "0.17.8"
292
+ current_version = "0.17.9"
293
293
  parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
294
294
  serialize = ["{major}.{minor}.{patch}"]
295
295
  search = "{current_version}"
@@ -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()