oe-python-template 0.15.13__tar.gz → 0.15.14__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 (41) hide show
  1. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/PKG-INFO +18 -18
  2. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/README.md +17 -17
  3. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/pyproject.toml +2 -2
  4. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/cli.py +2 -1
  5. oe_python_template-0.15.14/src/oe_python_template/constants.py +14 -0
  6. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/utils/_constants.py +1 -1
  7. oe_python_template-0.15.13/src/oe_python_template/constants.py +0 -13
  8. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/.gitignore +0 -0
  9. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/LICENSE +0 -0
  10. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/__init__.py +0 -0
  11. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/api.py +0 -0
  12. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/hello/__init__.py +0 -0
  13. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/hello/_api.py +0 -0
  14. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/hello/_cli.py +0 -0
  15. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/hello/_constants.py +0 -0
  16. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/hello/_gui.py +0 -0
  17. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/hello/_models.py +0 -0
  18. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/hello/_service.py +0 -0
  19. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/hello/_settings.py +0 -0
  20. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/system/__init__.py +0 -0
  21. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/system/_api.py +0 -0
  22. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/system/_cli.py +0 -0
  23. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/system/_gui.py +0 -0
  24. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/system/_service.py +0 -0
  25. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/system/_settings.py +0 -0
  26. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/utils/.vendored/bottle.py +0 -0
  27. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/utils/__init__.py +0 -0
  28. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/utils/_api.py +0 -0
  29. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/utils/_cli.py +0 -0
  30. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/utils/_console.py +0 -0
  31. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/utils/_di.py +0 -0
  32. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/utils/_gui.py +0 -0
  33. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/utils/_health.py +0 -0
  34. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/utils/_log.py +0 -0
  35. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/utils/_logfire.py +0 -0
  36. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/utils/_notebook.py +0 -0
  37. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/utils/_process.py +0 -0
  38. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/utils/_sentry.py +0 -0
  39. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/utils/_service.py +0 -0
  40. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/src/oe_python_template/utils/_settings.py +0 -0
  41. {oe_python_template-0.15.13 → oe_python_template-0.15.14}/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.15.13
3
+ Version: 0.15.14
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/
@@ -141,23 +141,23 @@ Projects generated with this template come with a comprehensive development tool
141
141
  10. Dependency monitoring and vulnerability scanning with [pip-audit](https://pypi.org/project/pip-audit/), [trivy](https://trivy.dev/latest/), [Renovate](https://github.com/renovatebot/renovate), and [GitHub Dependabot](https://docs.github.com/en/code-security/getting-started/dependabot-quickstart-guide)
142
142
  11. Error monitoring and profiling with [Sentry](https://sentry.io/) (optional)
143
143
  12. Logging and metrics with [Logfire](https://logfire.dev/) (optional)
144
- 13. Prepared for uptime monitoring with [betterstack](https://betterstack.com/) or alternatives
145
- 13. Licenses of dependencies extracted with [pip-licenses](https://pypi.org/project/pip-licenses/), matched with allow list, and published as release artifacts in CSV and JSON format for further compliance checks
146
- 14. Generation of attributions from extracted licenses
147
- 15. Software Bill of Materials (SBOM) generated in [CycloneDX](https://cyclonedx.org/) and [SPDX](https://spdx.dev/) formats with [cyclonedx-python](https://github.com/CycloneDX/cyclonedx-python) resp. [trivy](https://trivy.dev/latest/), published as release artifacts
148
- 16. Version and release management with [bump-my-version](https://callowayproject.github.io/bump-my-version/)
149
- 17. Changelog and release notes generated with [git-cliff](https://git-cliff.org/)
150
- 18. Documentation generated with [Sphinx](https://www.sphinx-doc.org/en/master/) including reference documentation for the library, CLI, and API
151
- 19. Documentation published to [Read The Docs](https://readthedocs.org/) including generation of PDF and single page HTML versions
152
- 20. Documentation including dynamic badges, setup instructions, contribution guide and security policy
153
- 21. Interactive OpenAPI specification with [Swagger](https://swagger.io/)
154
- 22. Python package published to [PyPI](https://pypi.org/)
155
- 23. Multi-stage build of fat (all extras) and slim (no extras) multi-arch (arm64 and amd64) Docker images, running non-root within immutable container
156
- 24. Docker images published to [Docker.io](https://hub.docker.com/) and [GitHub Container Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry) with [artifact attestations](https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds)
157
- 25. One-click development environments with [Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers) and [GitHub Codespaces](https://github.com/features/codespaces)
158
- 26. Settings for use with [VSCode](https://code.visualstudio.com/)
159
- 27. Settings and custom instructions for use with [GitHub Copilot](https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot)
160
- 28. API deployed as serverless function to [Vercel](https://vercel.com/) (optional)
144
+ 13. Prepared for uptime monitoring and scheduled tests with [betterstack](https://betterstack.com/) or alternatives
145
+ 14. Licenses of dependencies extracted with [pip-licenses](https://pypi.org/project/pip-licenses/), matched with allow list, and published as release artifacts in CSV and JSON format for further compliance checks
146
+ 15. Generation of attributions from extracted licenses
147
+ 16. Software Bill of Materials (SBOM) generated in [CycloneDX](https://cyclonedx.org/) and [SPDX](https://spdx.dev/) formats with [cyclonedx-python](https://github.com/CycloneDX/cyclonedx-python) resp. [trivy](https://trivy.dev/latest/), published as release artifacts
148
+ 17. Version and release management with [bump-my-version](https://callowayproject.github.io/bump-my-version/)
149
+ 18. Changelog and release notes generated with [git-cliff](https://git-cliff.org/)
150
+ 19. Documentation generated with [Sphinx](https://www.sphinx-doc.org/en/master/) including reference documentation for the library, CLI, and API
151
+ 20. Documentation published to [Read The Docs](https://readthedocs.org/) including generation of PDF and single page HTML versions
152
+ 21. Documentation including dynamic badges, setup instructions, contribution guide and security policy
153
+ 22. Interactive OpenAPI specification with [Swagger](https://swagger.io/)
154
+ 23. Python package published to [PyPI](https://pypi.org/)
155
+ 24. Multi-stage build of fat (all extras) and slim (no extras) multi-arch (arm64 and amd64) Docker images, running non-root within immutable container
156
+ 25. Docker images published to [Docker.io](https://hub.docker.com/) and [GitHub Container Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry) with [artifact attestations](https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds)
157
+ 26. One-click development environments with [Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers) and [GitHub Codespaces](https://github.com/features/codespaces)
158
+ 27. Settings for use with [VSCode](https://code.visualstudio.com/)
159
+ 28. Settings and custom instructions for use with [GitHub Copilot](https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot)
160
+ 29. API deployed as serverless function to [Vercel](https://vercel.com/) (optional)
161
161
 
162
162
  ### Multi-head Application Features
163
163
 
@@ -67,23 +67,23 @@ Projects generated with this template come with a comprehensive development tool
67
67
  10. Dependency monitoring and vulnerability scanning with [pip-audit](https://pypi.org/project/pip-audit/), [trivy](https://trivy.dev/latest/), [Renovate](https://github.com/renovatebot/renovate), and [GitHub Dependabot](https://docs.github.com/en/code-security/getting-started/dependabot-quickstart-guide)
68
68
  11. Error monitoring and profiling with [Sentry](https://sentry.io/) (optional)
69
69
  12. Logging and metrics with [Logfire](https://logfire.dev/) (optional)
70
- 13. Prepared for uptime monitoring with [betterstack](https://betterstack.com/) or alternatives
71
- 13. Licenses of dependencies extracted with [pip-licenses](https://pypi.org/project/pip-licenses/), matched with allow list, and published as release artifacts in CSV and JSON format for further compliance checks
72
- 14. Generation of attributions from extracted licenses
73
- 15. Software Bill of Materials (SBOM) generated in [CycloneDX](https://cyclonedx.org/) and [SPDX](https://spdx.dev/) formats with [cyclonedx-python](https://github.com/CycloneDX/cyclonedx-python) resp. [trivy](https://trivy.dev/latest/), published as release artifacts
74
- 16. Version and release management with [bump-my-version](https://callowayproject.github.io/bump-my-version/)
75
- 17. Changelog and release notes generated with [git-cliff](https://git-cliff.org/)
76
- 18. Documentation generated with [Sphinx](https://www.sphinx-doc.org/en/master/) including reference documentation for the library, CLI, and API
77
- 19. Documentation published to [Read The Docs](https://readthedocs.org/) including generation of PDF and single page HTML versions
78
- 20. Documentation including dynamic badges, setup instructions, contribution guide and security policy
79
- 21. Interactive OpenAPI specification with [Swagger](https://swagger.io/)
80
- 22. Python package published to [PyPI](https://pypi.org/)
81
- 23. Multi-stage build of fat (all extras) and slim (no extras) multi-arch (arm64 and amd64) Docker images, running non-root within immutable container
82
- 24. Docker images published to [Docker.io](https://hub.docker.com/) and [GitHub Container Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry) with [artifact attestations](https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds)
83
- 25. One-click development environments with [Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers) and [GitHub Codespaces](https://github.com/features/codespaces)
84
- 26. Settings for use with [VSCode](https://code.visualstudio.com/)
85
- 27. Settings and custom instructions for use with [GitHub Copilot](https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot)
86
- 28. API deployed as serverless function to [Vercel](https://vercel.com/) (optional)
70
+ 13. Prepared for uptime monitoring and scheduled tests with [betterstack](https://betterstack.com/) or alternatives
71
+ 14. Licenses of dependencies extracted with [pip-licenses](https://pypi.org/project/pip-licenses/), matched with allow list, and published as release artifacts in CSV and JSON format for further compliance checks
72
+ 15. Generation of attributions from extracted licenses
73
+ 16. Software Bill of Materials (SBOM) generated in [CycloneDX](https://cyclonedx.org/) and [SPDX](https://spdx.dev/) formats with [cyclonedx-python](https://github.com/CycloneDX/cyclonedx-python) resp. [trivy](https://trivy.dev/latest/), published as release artifacts
74
+ 17. Version and release management with [bump-my-version](https://callowayproject.github.io/bump-my-version/)
75
+ 18. Changelog and release notes generated with [git-cliff](https://git-cliff.org/)
76
+ 19. Documentation generated with [Sphinx](https://www.sphinx-doc.org/en/master/) including reference documentation for the library, CLI, and API
77
+ 20. Documentation published to [Read The Docs](https://readthedocs.org/) including generation of PDF and single page HTML versions
78
+ 21. Documentation including dynamic badges, setup instructions, contribution guide and security policy
79
+ 22. Interactive OpenAPI specification with [Swagger](https://swagger.io/)
80
+ 23. Python package published to [PyPI](https://pypi.org/)
81
+ 24. Multi-stage build of fat (all extras) and slim (no extras) multi-arch (arm64 and amd64) Docker images, running non-root within immutable container
82
+ 25. Docker images published to [Docker.io](https://hub.docker.com/) and [GitHub Container Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry) with [artifact attestations](https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds)
83
+ 26. One-click development environments with [Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers) and [GitHub Codespaces](https://github.com/features/codespaces)
84
+ 27. Settings for use with [VSCode](https://code.visualstudio.com/)
85
+ 28. Settings and custom instructions for use with [GitHub Copilot](https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot)
86
+ 29. API deployed as serverless function to [Vercel](https://vercel.com/) (optional)
87
87
 
88
88
  ### Multi-head Application Features
89
89
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "oe-python-template"
3
- version = "0.15.13"
3
+ version = "0.15.14"
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" }]
@@ -281,7 +281,7 @@ source = ["src/"]
281
281
 
282
282
 
283
283
  [tool.bumpversion]
284
- current_version = "0.15.13"
284
+ current_version = "0.15.14"
285
285
  parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
286
286
  serialize = ["{major}.{minor}.{patch}"]
287
287
  search = "{current_version}"
@@ -12,7 +12,6 @@ boot(MODULES_TO_INSTRUMENT)
12
12
  logger = get_logger(__name__)
13
13
 
14
14
  cli = typer.Typer(help="Command Line Interface of OE Python Template")
15
- prepare_cli(cli, f"🧠 OE Python Template v{__version__} - built with love in Berlin 🐻")
16
15
 
17
16
 
18
17
  if find_spec("nicegui") and find_spec("webview") and not __is_running_in_container__:
@@ -46,6 +45,8 @@ if find_spec("marimo"):
46
45
  )
47
46
 
48
47
 
48
+ prepare_cli(cli, f"🧠 OE Python Template v{__version__} - built with love in Berlin 🐻")
49
+
49
50
  if __name__ == "__main__": # pragma: no cover
50
51
  try:
51
52
  cli()
@@ -0,0 +1,14 @@
1
+ """Static configuration of OE Python Template."""
2
+
3
+ from pathlib import Path
4
+
5
+ # Configuration required by oe-python-template
6
+ API_VERSIONS: dict[str,str] = {
7
+ "v1": "1.0.0",
8
+ "v2": "2.0.0",
9
+ }
10
+ MODULES_TO_INSTRUMENT: list[str] = ["oe_python_template.hello"]
11
+ NOTEBOOK_FOLDER = Path(__file__).parent.parent.parent / "examples"
12
+ NOTEBOOK_APP = Path(__file__).parent.parent.parent / "examples" / "notebook.py"
13
+
14
+ # Project specific configuration
@@ -1,4 +1,4 @@
1
- """Constants used throughout."""
1
+ """Constants generated from the environment at runtime used throughout the project."""
2
2
 
3
3
  import os
4
4
  import sys
@@ -1,13 +0,0 @@
1
- """Constants for the OE Python Template."""
2
-
3
- from pathlib import Path
4
-
5
- MODULES_TO_INSTRUMENT = ["oe_python_template.hello"]
6
-
7
- API_VERSIONS = {
8
- "v1": "1.0.0",
9
- "v2": "2.0.0",
10
- }
11
-
12
- NOTEBOOK_FOLDER = Path(__file__).parent.parent.parent / "examples"
13
- NOTEBOOK_APP = Path(__file__).parent.parent.parent / "examples" / "notebook.py"