oe-python-template 0.2.1__tar.gz → 0.2.2__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 (143) hide show
  1. oe_python_template-0.2.1/RELEASE_NOTES.md → oe_python_template-0.2.2/CHANGELOG.md +7 -0
  2. oe_python_template-0.2.2/PKG-INFO +341 -0
  3. oe_python_template-0.2.2/README.md +282 -0
  4. oe_python_template-0.2.1/CHANGELOG.md → oe_python_template-0.2.2/RELEASE_NOTES.md +8 -1
  5. oe_python_template-0.2.2/VERSION +1 -0
  6. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/docs/source/conf.py +1 -1
  7. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/pyproject.toml +2 -2
  8. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/sonar-project.properties +1 -1
  9. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/uv.lock +1 -1
  10. oe_python_template-0.2.1/PKG-INFO +0 -60
  11. oe_python_template-0.2.1/VERSION +0 -1
  12. oe_python_template-0.2.1/template/README.md +0 -1
  13. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.act-env +0 -0
  14. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.act-secret +0 -0
  15. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.copier-answers.yml +0 -0
  16. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.devcontainer/Dockerfile +0 -0
  17. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.devcontainer/devcontainer.json +0 -0
  18. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.devcontainer/onCreateCommand +0 -0
  19. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.devcontainer/postAttachCommand +0 -0
  20. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.devcontainer/postCreateCommand +0 -0
  21. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.env.example +0 -0
  22. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.github/workflows/docker-image-build-publish.yml +0 -0
  23. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.github/workflows/package-build-publish-release.yml +0 -0
  24. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.github/workflows/test-and-report.yml +0 -0
  25. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.gitignore +0 -0
  26. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.pre-commit-config.yaml +0 -0
  27. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.python-version +0 -0
  28. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.readthedocs.yml +0 -0
  29. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.secrets.baseline +0 -0
  30. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.vscode/extensions.json +0 -0
  31. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/.vscode/settings.json +0 -0
  32. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/CODEOWNERS +0 -0
  33. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/CONTRIBUTING.md +0 -0
  34. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/Dockerfile +0 -0
  35. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/LICENSE +0 -0
  36. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/SERVICE_CONNECTIONS.md +0 -0
  37. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/_readme_footer.md +0 -0
  38. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/_readme_header.md +0 -0
  39. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/_readme_main.md +0 -0
  40. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/bin/git-cliff +0 -0
  41. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/bump +0 -0
  42. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/codecov.yml +0 -0
  43. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/compose.yaml +0 -0
  44. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/copier.yml +0 -0
  45. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/docs/Makefile +0 -0
  46. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/docs/make.bat +0 -0
  47. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/docs/source/_static/.keep +0 -0
  48. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/docs/source/contributing.rst +0 -0
  49. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/docs/source/index.rst +0 -0
  50. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/docs/source/latexmkrc +0 -0
  51. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/docs/source/main.rst +0 -0
  52. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/docs/source/reference.rst +0 -0
  53. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/docs/source/release-notes.rst +0 -0
  54. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/examples/__init__.py +0 -0
  55. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/examples/jupyter.ipynb +0 -0
  56. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/examples/notebook.ipynb +0 -0
  57. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/examples/notebook.py +0 -0
  58. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/examples/script.py +0 -0
  59. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/examples/streamlit.py +0 -0
  60. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/git-cliff-2.7.0/CHANGELOG.md +0 -0
  61. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/git-cliff-2.7.0/LICENSE-APACHE +0 -0
  62. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/git-cliff-2.7.0/LICENSE-MIT +0 -0
  63. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/git-cliff-2.7.0/README.md +0 -0
  64. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/git-cliff-2.7.0/completions/_git-cliff +0 -0
  65. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/git-cliff-2.7.0/completions/_git-cliff.ps1 +0 -0
  66. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/git-cliff-2.7.0/completions/git-cliff.bash +0 -0
  67. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/git-cliff-2.7.0/completions/git-cliff.elv +0 -0
  68. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/git-cliff-2.7.0/completions/git-cliff.fish +0 -0
  69. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/git-cliff-2.7.0/git-cliff-completions +0 -0
  70. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/git-cliff-2.7.0/git-cliff-mangen +0 -0
  71. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/git-cliff-2.7.0/man/git-cliff.1 +0 -0
  72. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/git-cliff-2.7.0-x86_64-unknown-linux-gnu.tar.gz +0 -0
  73. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/github-action-run +0 -0
  74. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/latexmkrc +0 -0
  75. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/logo.png +0 -0
  76. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/noxfile.py +0 -0
  77. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/src/oe_python_template/__init__.py +0 -0
  78. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/src/oe_python_template/cli.py +0 -0
  79. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/src/oe_python_template/constants.py +0 -0
  80. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/src/oe_python_template/service.py +0 -0
  81. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/.act-env.jinja +0 -0
  82. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/.act-secret.jinja +0 -0
  83. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/.devcontainer/Dockerfile.jinja +0 -0
  84. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/.devcontainer/devcontainer.json.jinja +0 -0
  85. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/.devcontainer/onCreateCommand.jinja +0 -0
  86. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/.devcontainer/postAttachCommand.jinja +0 -0
  87. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/.devcontainer/postCreateCommand.jinja +0 -0
  88. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/.env.example.jinja +0 -0
  89. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/.github/workflows/docker-image-build-publish.yml.jinja +0 -0
  90. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/.github/workflows/package-build-publish-release.yml.jinja +0 -0
  91. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/.github/workflows/test-and-report.yml.jinja +0 -0
  92. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/.gitignore.jinja +0 -0
  93. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/.pre-commit-config.yaml.jinja +0 -0
  94. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/.python-version +0 -0
  95. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/.readthedocs.yml.jinja +0 -0
  96. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/.vscode/extensions.json +0 -0
  97. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/.vscode/settings.json +0 -0
  98. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/CHANGELOG.md +0 -0
  99. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/CODEOWNERS.jinja +0 -0
  100. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/CONTRIBUTING.md.jinja +0 -0
  101. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/Dockerfile.jinja +0 -0
  102. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/LICENSE.jinja +0 -0
  103. {oe_python_template-0.2.1 → oe_python_template-0.2.2/template}/README.md +0 -0
  104. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/SERVICE_CONNECTIONS.md.jinja +0 -0
  105. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/VERSION +0 -0
  106. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/_readme_footer.md.jinja +0 -0
  107. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/_readme_header.md.jinja +0 -0
  108. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/_readme_main.md.jinja +0 -0
  109. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/bump.jinja +0 -0
  110. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/codecov.yml.jinja +0 -0
  111. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/compose.yaml.jinja +0 -0
  112. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/docs/Makefile.jinja +0 -0
  113. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/docs/make.bat.jinja +0 -0
  114. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/docs/source/_static/.keep +0 -0
  115. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/docs/source/conf.py.jinja +0 -0
  116. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/docs/source/contributing.rst.jinja +0 -0
  117. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/docs/source/index.rst.jinja +0 -0
  118. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/docs/source/latexmkrc.jinja +0 -0
  119. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/docs/source/main.rst.jinja +0 -0
  120. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/docs/source/reference.rst.jinja +0 -0
  121. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/docs/source/release-notes.rst.jinja +0 -0
  122. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/examples/__init__.py.jinja +0 -0
  123. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/examples/notebook.ipynb.jinja +0 -0
  124. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/examples/notebook.py.jinja +0 -0
  125. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/examples/script.py.jinja +0 -0
  126. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/examples/streamlit.py.jinja +0 -0
  127. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/github-action-run.jinja +0 -0
  128. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/latexmkrc.jinja +0 -0
  129. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/logo.png +0 -0
  130. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/noxfile.py.jinja +0 -0
  131. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/pyproject.toml.jinja +0 -0
  132. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/sonar-project.properties.jinja +0 -0
  133. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/src/{{ project_name_snake_case }}/__init__.py.jinja +0 -0
  134. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/src/{{ project_name_snake_case }}/cli.py.jinja +0 -0
  135. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/src/{{ project_name_snake_case }}/constants.py.jinja +0 -0
  136. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/src/{{ project_name_snake_case }}/service.py.jinja +0 -0
  137. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/tests/__init__.py.jinja +0 -0
  138. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/tests/cli_test.py.jinja +0 -0
  139. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/tests/fixtures/.keep +0 -0
  140. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/template/{{_copier_conf.answers_file}}.jinja +0 -0
  141. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/tests/__init__.py +0 -0
  142. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/tests/cli_test.py +0 -0
  143. {oe_python_template-0.2.1 → oe_python_template-0.2.2}/tests/fixtures/.keep +0 -0
@@ -1,5 +1,12 @@
1
1
  [🧠 OE Python Template](https://oe-python-template.readthedocs.io/en/latest/)
2
2
 
3
+ ## [0.2.2](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/compare/v0.2.1..0.2.2) - 2025-03-02
4
+
5
+ ### 📚 Documentation
6
+
7
+ - Update - ([ae71c31](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/commit/ae71c31c917a7439dc24fe9b86c48e38cf1d4c29))
8
+
9
+
3
10
  ## [0.2.1](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/compare/v0.2.0..v0.2.1) - 2025-03-02
4
11
 
5
12
  ### 📚 Documentation
@@ -0,0 +1,341 @@
1
+ Metadata-Version: 2.4
2
+ Name: oe-python-template
3
+ Version: 0.2.2
4
+ Summary: 🧠 Copier template to scaffold Python projects compliant with best practices and modern tooling.
5
+ Project-URL: Homepage, https://oe-python-template.readthedocs.io/en/latest/
6
+ Project-URL: Documentation, https://oe-python-template.readthedocs.io/en/latest/
7
+ Project-URL: Source, https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template
8
+ Project-URL: Changelog, https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/releases
9
+ Project-URL: Issues, https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/issues
10
+ Author-email: Helmut Hoffer von Ankershoffen <helmuthva@gmail.com>
11
+ License: MIT License
12
+
13
+ Copyright (c) [2025] [Helmut Hoffer von Ankershoffen (helmuthva@gmail.com)]
14
+
15
+ Permission is hereby granted, free of charge, to any person obtaining a copy
16
+ of this software and associated documentation files (the "Software"), to deal
17
+ in the Software without restriction, including without limitation the rights
18
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
+ copies of the Software, and to permit persons to whom the Software is
20
+ furnished to do so, subject to the following conditions:
21
+
22
+ The above copyright notice and this permission notice shall be included in all
23
+ copies or substantial portions of the Software.
24
+
25
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
+ SOFTWARE.
32
+ License-File: LICENSE
33
+ Keywords: codecov,docker,oe-python-template,pydantic,python,ruff,typer,uv
34
+ Classifier: Development Status :: 2 - Pre-Alpha
35
+ Classifier: Framework :: Pydantic
36
+ Classifier: Framework :: Pytest
37
+ Classifier: Intended Audience :: Developers
38
+ Classifier: Intended Audience :: End Users/Desktop
39
+ Classifier: License :: OSI Approved :: MIT License
40
+ Classifier: Natural Language :: English
41
+ Classifier: Operating System :: MacOS :: MacOS X
42
+ Classifier: Operating System :: Microsoft :: Windows
43
+ Classifier: Operating System :: POSIX :: Linux
44
+ Classifier: Programming Language :: Python
45
+ Classifier: Programming Language :: Python :: 3
46
+ Classifier: Programming Language :: Python :: 3.11
47
+ Classifier: Programming Language :: Python :: 3.12
48
+ Classifier: Programming Language :: Python :: 3.13
49
+ Classifier: Typing :: Typed
50
+ Requires-Python: <4.0,>=3.11
51
+ Requires-Dist: pydantic>=2.10.6
52
+ Requires-Dist: python-dotenv>=1.0.1
53
+ Requires-Dist: typer>=0.15.1
54
+ Provides-Extra: examples
55
+ Requires-Dist: jupyter>=1.1.1; extra == 'examples'
56
+ Requires-Dist: marimo>=0.11.13; extra == 'examples'
57
+ Requires-Dist: streamlit>=1.42.2; extra == 'examples'
58
+ Description-Content-Type: text/markdown
59
+
60
+ # 🧠 OE Python Template
61
+
62
+ [![License](https://img.shields.io/github/license/helmut-hoffer-von-ankershoffen/oe-python-template?logo=opensourceinitiative&logoColor=3DA639&labelColor=414042&color=A41831)
63
+ ](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/LICENSE)
64
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/oe-python-template.svg?logo=python&color=204361&labelColor=1E2933)](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/noxfile.py)
65
+ [![CI](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/actions/workflows/test-and-report.yml/badge.svg)](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/actions/workflows/test-and-report.yml)
66
+ [![Read the Docs](https://img.shields.io/readthedocs/oe-python-template)](https://oe-python-template.readthedocs.io/en/latest/)
67
+ [![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=helmut-hoffer-von-ankershoffen_oe-python-template&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template)
68
+ [![Security](https://sonarcloud.io/api/project_badges/measure?project=helmut-hoffer-von-ankershoffen_oe-python-template&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template)
69
+ [![Maintainability](https://sonarcloud.io/api/project_badges/measure?project=helmut-hoffer-von-ankershoffen_oe-python-template&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template)
70
+ [![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=helmut-hoffer-von-ankershoffen_oe-python-template&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template)
71
+ [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=helmut-hoffer-von-ankershoffen_oe-python-template&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template)
72
+ [![Coverage](https://codecov.io/gh/helmut-hoffer-von-ankershoffen/oe-python-template/graph/badge.svg?token=SX34YRP30E)](https://codecov.io/gh/helmut-hoffer-von-ankershoffen/oe-python-template)
73
+ [![Ruff](https://img.shields.io/badge/style-Ruff-blue?color=D6FF65)](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/noxfile.py)
74
+ [![GitHub - Version](https://img.shields.io/github/v/release/helmut-hoffer-von-ankershoffen/oe-python-template?label=GitHub&style=flat&labelColor=1C2C2E&color=blue&logo=GitHub&logoColor=white)](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/releases)
75
+ [![GitHub - Commits](https://img.shields.io/github/commit-activity/m/helmut-hoffer-von-ankershoffen/oe-python-template/main?label=commits&style=flat&labelColor=1C2C2E&color=blue&logo=GitHub&logoColor=white)](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/commits/main/)
76
+ [![PyPI - Version](https://img.shields.io/pypi/v/oe-python-template.svg?label=PyPI&logo=pypi&logoColor=%23FFD243&labelColor=%230073B7&color=FDFDFD)](https://pypi.python.org/pypi/oe-python-template)
77
+ [![PyPI - Status](https://img.shields.io/pypi/status/oe-python-template?logo=pypi&logoColor=%23FFD243&labelColor=%230073B7&color=FDFDFD)](https://pypi.python.org/pypi/oe-python-template)
78
+ [![Docker - Version](https://img.shields.io/docker/v/helmuthva/oe-python-template?sort=semver&label=Docker&logo=docker&logoColor=white&labelColor=1354D4&color=10151B)](https://hub.docker.com/r/helmuthva/oe-python-template/tags)
79
+ [![Docker - Size](https://img.shields.io/docker/image-size/helmuthva/oe-python-templatesort=semver&arch=arm64&label=image&logo=docker&logoColor=white&labelColor=1354D4&color=10151B)](https://hub.docker.com/r/helmuthva/oe-python-template/)
80
+ [![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-orange.json)](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template)
81
+ <!---
82
+ [![ghcr.io - Version](https://ghcr-badge.egpl.dev/helmut-hoffer-von-ankershoffen/oe-python-template/tags?color=%2344cc11&ignore=0.0%2C0%2Clatest&n=3&label=ghcr.io&trim=)](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/pkgs/container/oe-python-template)
83
+ [![ghcr.io - Sze](https://ghcr-badge.egpl.dev/helmut-hoffer-von-ankershoffen/oe-python-template/size?color=%2344cc11&tag=latest&label=size&trim=)](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/pkgs/container/oe-python-template)
84
+ -->
85
+
86
+ > [!TIP]
87
+ > 📚 [Online documentation](https://oe-python-template.readthedocs.io/en/latest/) - 📖 [PDF Manual](https://oe-python-template.readthedocs.io/_/downloads/en/latest/pdf/)
88
+ ---
89
+
90
+
91
+ Copier template to scaffold Python projects compliant with best practices and modern tooling.
92
+
93
+ Use Cases:
94
+ 1) Fast and easy to use project setup
95
+ 2) Consistent update of already scaffolded projects to benefit from new and improved features.
96
+ 3) Dummy CLI application and service demonstrating example usage of the generated directory structure and build pipeline
97
+
98
+ ## Scaffolding Instructions
99
+
100
+ Step 1: Install uv package manager and copier
101
+ ```shell
102
+ if [[ "$OSTYPE" == "darwin"* ]]; then # Install dependencies for macOS X
103
+ if ! command -v brew &> /dev/null; then ## Install Homebrew if not present
104
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
105
+ fi
106
+ elif [[ "$OSTYPE" == "linux-gnu"* ]]; then # Install dependencies for Linux
107
+ sudo apt-get update -y && sudo apt-get install curl -y # Install curl
108
+ fi
109
+ if ! command -v uvx &> /dev/null; then # Install uv package manager if not present
110
+ curl -LsSf https://astral.sh/uv/install.sh | sh
111
+ source $HOME/.local/bin/env
112
+ fi
113
+ uv tool install copier # Install copier as global tool
114
+ ```
115
+
116
+ Step 2: Now create an empty repo on GitHub and clone it to your local machine in a directory of your choice. Change to that directory.
117
+
118
+ Step 3: Scaffold the project
119
+ ```shell
120
+ copier copy gh:helmut-hoffer-von-ankershoffen/oe-python-template .
121
+ ```
122
+ Step 4: Setup the local environment
123
+
124
+ ```shell
125
+ uv run nox -s setup_eev
126
+ ```
127
+
128
+ Step 5: Perform inital commit and push
129
+ ```shell
130
+ git add .
131
+ git commit -m "feat: Initial commit"
132
+ ```
133
+
134
+ Visit your GitHub repository and check the Actions tab. The CI workflow should fail at the SonarQube step,
135
+ as this external service is not yet configured for our new repository.
136
+
137
+ Step 6: Follow the instructions in SERVICE_CONNECTIONS.md to setup the connections to external services
138
+ such as Cloudcov, SonarQube Cloud, Read The Docs, Docker.io, GHCR.io and Streamlit Community Cloud.
139
+
140
+ Step 7: Release the first versions
141
+ ```shell
142
+ ./bump
143
+ ```
144
+ Notes:
145
+ * You can remove this section post having successfully scafolded your project.
146
+ * The following sections refer to the dummy application and service provided by this template.
147
+ Use them as inspiration and adapt them to your own project.
148
+
149
+ ## Overview
150
+
151
+ Adding OE Python Template to your project as a dependency is easy.
152
+
153
+ ```shell
154
+ uv add oe-python-template # add dependency to your project
155
+ ```
156
+
157
+ If you don't have uv installed follow [these instructions](https://docs.astral.sh/uv/getting-started/installation/). If you still prefer pip over the modern and fast package manager [uv](https://github.com/astral-sh/uv), you can install the library like this:
158
+
159
+ ```shell
160
+ pip install oe-python-template # add dependency to your project
161
+ ```
162
+
163
+ Executing the command line interface (CLI) is just as easy:
164
+
165
+ ```shell
166
+ uvx oe-python-template
167
+ ```
168
+
169
+ The CLI provides extensive help:
170
+
171
+ ```shell
172
+ uvx oe-python-template --help # all CLI commands
173
+ uvx oe-python-template command --help # all options for command
174
+ ```
175
+
176
+
177
+ ## Highlights
178
+
179
+ * Copier template to scaffold Python projects compliant with best practices and modern tooling.
180
+ * Various Examples:
181
+ - [Simple Python script]https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/examples/script.py)
182
+ - [Streamlit web application](https://oe-python-template.streamlit.app/) deployed on [Streamlit Community Cloud](https://streamlit.io/cloud)
183
+ - [Jupyter](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/examples/notebook.ipynb) and [Marimo](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/examples/notebook.py) notebook
184
+ * [Complete reference documenation](https://oe-python-template.readthedocs.io/en/latest/reference.html) on Read the Docs
185
+ * [Transparent test coverage](https://app.codecov.io/gh/helmut-hoffer-von-ankershoffen/oe-python-template) including unit and E2E tests (reported on Codecov)
186
+ * Matrix tested with [multiple python versions](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/noxfile.py) to ensure compatibility (powered by [Nox](https://nox.thea.codes/en/stable/))
187
+ * Compliant with modern linting and formatting standards (powered by [Ruff](https://github.com/astral-sh/ruff))
188
+ * Up-to-date dependencies (monitored by [Renovate](https://github.com/renovatebot/renovate))
189
+ * [A-grade code quality](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template) in security, maintainability, and reliability with low technical debt and low codesmell (verified by SonarQube)
190
+ * 1-liner for installation and execution of command line interface (CLI) via [uv(x)](https://github.com/astral-sh/uv) or [Docker](https://hub.docker.com/r/helmuthva/oe-python-template/tags)
191
+ * Setup for developing inside a [devcontainer](https://code.visualstudio.com/docs/devcontainers/containers) included (supports VSCode and GitHub Codespaces)
192
+
193
+
194
+ ## Usage Examples
195
+
196
+ ### Minimal Python Script:
197
+
198
+ ```python
199
+ """Example script demonstrating the usage of the service provided by OE Python Template."""
200
+
201
+ from dotenv import load_dotenv
202
+ from rich.console import Console
203
+
204
+ from oe_python_template import Service
205
+
206
+ console = Console()
207
+
208
+ load_dotenv()
209
+
210
+ message = Service.get_hello_world()
211
+ console.print(f"[blue]{message}[/blue]")
212
+ ```
213
+
214
+ [Show script code](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/examples/script.py) - [Read the reference documentation](https://oe-python-template.readthedocs.io/en/latest/reference.html)
215
+
216
+ ### Streamlit App
217
+
218
+ Serve the functionality provided by OE Python Template in the web by easily integrating the service into a Streamlit application.
219
+
220
+ [Try it out!](https://oe-python-template.streamlit.app) - [Show the code](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/examples/streamlit.py)
221
+
222
+ ... or serve the app locally
223
+ ```shell
224
+ uv sync --all-extras # Install streamlit dependency part of the examples extra, see pyproject.toml
225
+ uv run streamlit run examples/streamlit.py # Serve on localhost:8501, opens browser
226
+ ```
227
+
228
+ ## Notebooks
229
+
230
+ ### Jupyter
231
+
232
+ [Show the Jupyter code](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/examples/notebook.ipynb)
233
+
234
+ ... or run within VSCode
235
+
236
+ ```shell
237
+ uv sync --all-extras # Install ipykernel dependency part of the examples extra, see pyproject.toml
238
+ ```
239
+ Install the [Jupyter extension for VSCode](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter)
240
+
241
+ Click on `examples/notebook.ipynb` in VSCode and run it.
242
+
243
+ ### Marimo
244
+
245
+ [Show the marimo code](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/examples/notebook.py)
246
+
247
+ Execute the notebook as a WASM based web app
248
+
249
+ ```shell
250
+ uv sync --all-extras # Install ipykernel dependency part of the examples extra, see pyproject.toml
251
+ uv run marimo run examples/notebook.py --watch # Serve on localhost:2718, opens browser
252
+ ```
253
+
254
+ or edit interactively in your browser
255
+
256
+ ```shell
257
+ uv sync --all-extras # Install ipykernel dependency part of the examples extra, see pyproject.toml
258
+ uv run marimo edit examples/notebook.py --watch # Edit on localhost:2718, opens browser
259
+ ```
260
+
261
+ ... or edit interactively within VSCode
262
+
263
+ Install the [Marimo extension for VSCode](https://marketplace.visualstudio.com/items?itemName=marimo-team.vscode-marimo)
264
+
265
+ Click on `examples/notebook.py` in VSCode and click on the caret next to the Run icon above the code (looks like a pencil) > "Start in marimo editor" (edit).
266
+
267
+ ## Command Line Interface (CLI)
268
+
269
+ ### Run with [uvx](https://docs.astral.sh/uv/guides/tools/)
270
+
271
+ Show available commands:
272
+
273
+ ```shell
274
+ uvx oe-python-template --help
275
+ ```
276
+
277
+ Execute commands:
278
+
279
+ ```shell
280
+ uvx oe-python-template hello-world
281
+ uvx oe-python-template hello-world --json
282
+ uvx oe-python-template echo "Lorem Ipsum"
283
+ ```
284
+
285
+ ### Environment
286
+
287
+ The service loads environment variables including support for .env files.
288
+
289
+ ```shell
290
+ cp .env.example .env # copy example file
291
+ echo "THE_VAR=MY_VALUE" > .env # overwrite with your values
292
+ ```
293
+
294
+ Now run the usage examples again.
295
+
296
+ ### Run with Docker
297
+
298
+ You can as well run the CLI within Docker.
299
+
300
+ ```shell
301
+ docker run helmuthva/oe-python-template --help
302
+ docker run helmuthva/oe-python-template hello-world
303
+ docker run helmuthva/oe-python-template hello-world --json
304
+ docker run helmuthva/oe-python-template echo "Lorem"
305
+ ```
306
+
307
+ Execute command:
308
+
309
+ ```shell
310
+ docker run --env THE_VAR=MY_VALUE helmuthva/oe-python-template echo "Lorem Ipsum"
311
+ ```
312
+
313
+ Or use docker compose
314
+
315
+ The .env is passed through from the host to the Docker container.
316
+
317
+ ```shell
318
+ docker compose up
319
+ docker compose run oe-python-template --help
320
+ ```
321
+
322
+ ## Extra: Lorem Ipsum
323
+
324
+ Dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam.
325
+
326
+
327
+ ## Further Reading
328
+
329
+ * Check out the [reference](https://oe-python-template.readthedocs.io/en/latest/reference.html) with detailed documentation of public classes and functions.
330
+ * Our [release notes](https://oe-python-template.readthedocs.io/en/latest/release-notes.html) provide a complete log of recent improvements and changes.
331
+ * In case you want to help us improve 🧠 OE Python Template: The [contribution guidelines](https://oe-python-template.readthedocs.io/en/latest/contributing.html) explain how to setup your development environment and create pull requests.
332
+
333
+ ## Star History
334
+
335
+ <a href="https://star-history.com/#helmut-hoffer-von-ankershoffen/oe-python-template">
336
+ <picture>
337
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=helmut-hoffer-von-ankershoffen/oe-python-template&type=Date&theme=dark" />
338
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=helmut-hoffer-von-ankershoffen/oe-python-template&type=Date" />
339
+ <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=helmut-hoffer-von-ankershoffen/oe-python-template&type=Date" />
340
+ </picture>
341
+ </a>
@@ -0,0 +1,282 @@
1
+ # 🧠 OE Python Template
2
+
3
+ [![License](https://img.shields.io/github/license/helmut-hoffer-von-ankershoffen/oe-python-template?logo=opensourceinitiative&logoColor=3DA639&labelColor=414042&color=A41831)
4
+ ](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/LICENSE)
5
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/oe-python-template.svg?logo=python&color=204361&labelColor=1E2933)](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/noxfile.py)
6
+ [![CI](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/actions/workflows/test-and-report.yml/badge.svg)](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/actions/workflows/test-and-report.yml)
7
+ [![Read the Docs](https://img.shields.io/readthedocs/oe-python-template)](https://oe-python-template.readthedocs.io/en/latest/)
8
+ [![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=helmut-hoffer-von-ankershoffen_oe-python-template&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template)
9
+ [![Security](https://sonarcloud.io/api/project_badges/measure?project=helmut-hoffer-von-ankershoffen_oe-python-template&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template)
10
+ [![Maintainability](https://sonarcloud.io/api/project_badges/measure?project=helmut-hoffer-von-ankershoffen_oe-python-template&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template)
11
+ [![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=helmut-hoffer-von-ankershoffen_oe-python-template&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template)
12
+ [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=helmut-hoffer-von-ankershoffen_oe-python-template&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template)
13
+ [![Coverage](https://codecov.io/gh/helmut-hoffer-von-ankershoffen/oe-python-template/graph/badge.svg?token=SX34YRP30E)](https://codecov.io/gh/helmut-hoffer-von-ankershoffen/oe-python-template)
14
+ [![Ruff](https://img.shields.io/badge/style-Ruff-blue?color=D6FF65)](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/noxfile.py)
15
+ [![GitHub - Version](https://img.shields.io/github/v/release/helmut-hoffer-von-ankershoffen/oe-python-template?label=GitHub&style=flat&labelColor=1C2C2E&color=blue&logo=GitHub&logoColor=white)](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/releases)
16
+ [![GitHub - Commits](https://img.shields.io/github/commit-activity/m/helmut-hoffer-von-ankershoffen/oe-python-template/main?label=commits&style=flat&labelColor=1C2C2E&color=blue&logo=GitHub&logoColor=white)](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/commits/main/)
17
+ [![PyPI - Version](https://img.shields.io/pypi/v/oe-python-template.svg?label=PyPI&logo=pypi&logoColor=%23FFD243&labelColor=%230073B7&color=FDFDFD)](https://pypi.python.org/pypi/oe-python-template)
18
+ [![PyPI - Status](https://img.shields.io/pypi/status/oe-python-template?logo=pypi&logoColor=%23FFD243&labelColor=%230073B7&color=FDFDFD)](https://pypi.python.org/pypi/oe-python-template)
19
+ [![Docker - Version](https://img.shields.io/docker/v/helmuthva/oe-python-template?sort=semver&label=Docker&logo=docker&logoColor=white&labelColor=1354D4&color=10151B)](https://hub.docker.com/r/helmuthva/oe-python-template/tags)
20
+ [![Docker - Size](https://img.shields.io/docker/image-size/helmuthva/oe-python-templatesort=semver&arch=arm64&label=image&logo=docker&logoColor=white&labelColor=1354D4&color=10151B)](https://hub.docker.com/r/helmuthva/oe-python-template/)
21
+ [![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-orange.json)](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template)
22
+ <!---
23
+ [![ghcr.io - Version](https://ghcr-badge.egpl.dev/helmut-hoffer-von-ankershoffen/oe-python-template/tags?color=%2344cc11&ignore=0.0%2C0%2Clatest&n=3&label=ghcr.io&trim=)](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/pkgs/container/oe-python-template)
24
+ [![ghcr.io - Sze](https://ghcr-badge.egpl.dev/helmut-hoffer-von-ankershoffen/oe-python-template/size?color=%2344cc11&tag=latest&label=size&trim=)](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/pkgs/container/oe-python-template)
25
+ -->
26
+
27
+ > [!TIP]
28
+ > 📚 [Online documentation](https://oe-python-template.readthedocs.io/en/latest/) - 📖 [PDF Manual](https://oe-python-template.readthedocs.io/_/downloads/en/latest/pdf/)
29
+ ---
30
+
31
+
32
+ Copier template to scaffold Python projects compliant with best practices and modern tooling.
33
+
34
+ Use Cases:
35
+ 1) Fast and easy to use project setup
36
+ 2) Consistent update of already scaffolded projects to benefit from new and improved features.
37
+ 3) Dummy CLI application and service demonstrating example usage of the generated directory structure and build pipeline
38
+
39
+ ## Scaffolding Instructions
40
+
41
+ Step 1: Install uv package manager and copier
42
+ ```shell
43
+ if [[ "$OSTYPE" == "darwin"* ]]; then # Install dependencies for macOS X
44
+ if ! command -v brew &> /dev/null; then ## Install Homebrew if not present
45
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
46
+ fi
47
+ elif [[ "$OSTYPE" == "linux-gnu"* ]]; then # Install dependencies for Linux
48
+ sudo apt-get update -y && sudo apt-get install curl -y # Install curl
49
+ fi
50
+ if ! command -v uvx &> /dev/null; then # Install uv package manager if not present
51
+ curl -LsSf https://astral.sh/uv/install.sh | sh
52
+ source $HOME/.local/bin/env
53
+ fi
54
+ uv tool install copier # Install copier as global tool
55
+ ```
56
+
57
+ Step 2: Now create an empty repo on GitHub and clone it to your local machine in a directory of your choice. Change to that directory.
58
+
59
+ Step 3: Scaffold the project
60
+ ```shell
61
+ copier copy gh:helmut-hoffer-von-ankershoffen/oe-python-template .
62
+ ```
63
+ Step 4: Setup the local environment
64
+
65
+ ```shell
66
+ uv run nox -s setup_eev
67
+ ```
68
+
69
+ Step 5: Perform inital commit and push
70
+ ```shell
71
+ git add .
72
+ git commit -m "feat: Initial commit"
73
+ ```
74
+
75
+ Visit your GitHub repository and check the Actions tab. The CI workflow should fail at the SonarQube step,
76
+ as this external service is not yet configured for our new repository.
77
+
78
+ Step 6: Follow the instructions in SERVICE_CONNECTIONS.md to setup the connections to external services
79
+ such as Cloudcov, SonarQube Cloud, Read The Docs, Docker.io, GHCR.io and Streamlit Community Cloud.
80
+
81
+ Step 7: Release the first versions
82
+ ```shell
83
+ ./bump
84
+ ```
85
+ Notes:
86
+ * You can remove this section post having successfully scafolded your project.
87
+ * The following sections refer to the dummy application and service provided by this template.
88
+ Use them as inspiration and adapt them to your own project.
89
+
90
+ ## Overview
91
+
92
+ Adding OE Python Template to your project as a dependency is easy.
93
+
94
+ ```shell
95
+ uv add oe-python-template # add dependency to your project
96
+ ```
97
+
98
+ If you don't have uv installed follow [these instructions](https://docs.astral.sh/uv/getting-started/installation/). If you still prefer pip over the modern and fast package manager [uv](https://github.com/astral-sh/uv), you can install the library like this:
99
+
100
+ ```shell
101
+ pip install oe-python-template # add dependency to your project
102
+ ```
103
+
104
+ Executing the command line interface (CLI) is just as easy:
105
+
106
+ ```shell
107
+ uvx oe-python-template
108
+ ```
109
+
110
+ The CLI provides extensive help:
111
+
112
+ ```shell
113
+ uvx oe-python-template --help # all CLI commands
114
+ uvx oe-python-template command --help # all options for command
115
+ ```
116
+
117
+
118
+ ## Highlights
119
+
120
+ * Copier template to scaffold Python projects compliant with best practices and modern tooling.
121
+ * Various Examples:
122
+ - [Simple Python script]https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/examples/script.py)
123
+ - [Streamlit web application](https://oe-python-template.streamlit.app/) deployed on [Streamlit Community Cloud](https://streamlit.io/cloud)
124
+ - [Jupyter](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/examples/notebook.ipynb) and [Marimo](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/examples/notebook.py) notebook
125
+ * [Complete reference documenation](https://oe-python-template.readthedocs.io/en/latest/reference.html) on Read the Docs
126
+ * [Transparent test coverage](https://app.codecov.io/gh/helmut-hoffer-von-ankershoffen/oe-python-template) including unit and E2E tests (reported on Codecov)
127
+ * Matrix tested with [multiple python versions](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/noxfile.py) to ensure compatibility (powered by [Nox](https://nox.thea.codes/en/stable/))
128
+ * Compliant with modern linting and formatting standards (powered by [Ruff](https://github.com/astral-sh/ruff))
129
+ * Up-to-date dependencies (monitored by [Renovate](https://github.com/renovatebot/renovate))
130
+ * [A-grade code quality](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template) in security, maintainability, and reliability with low technical debt and low codesmell (verified by SonarQube)
131
+ * 1-liner for installation and execution of command line interface (CLI) via [uv(x)](https://github.com/astral-sh/uv) or [Docker](https://hub.docker.com/r/helmuthva/oe-python-template/tags)
132
+ * Setup for developing inside a [devcontainer](https://code.visualstudio.com/docs/devcontainers/containers) included (supports VSCode and GitHub Codespaces)
133
+
134
+
135
+ ## Usage Examples
136
+
137
+ ### Minimal Python Script:
138
+
139
+ ```python
140
+ """Example script demonstrating the usage of the service provided by OE Python Template."""
141
+
142
+ from dotenv import load_dotenv
143
+ from rich.console import Console
144
+
145
+ from oe_python_template import Service
146
+
147
+ console = Console()
148
+
149
+ load_dotenv()
150
+
151
+ message = Service.get_hello_world()
152
+ console.print(f"[blue]{message}[/blue]")
153
+ ```
154
+
155
+ [Show script code](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/examples/script.py) - [Read the reference documentation](https://oe-python-template.readthedocs.io/en/latest/reference.html)
156
+
157
+ ### Streamlit App
158
+
159
+ Serve the functionality provided by OE Python Template in the web by easily integrating the service into a Streamlit application.
160
+
161
+ [Try it out!](https://oe-python-template.streamlit.app) - [Show the code](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/examples/streamlit.py)
162
+
163
+ ... or serve the app locally
164
+ ```shell
165
+ uv sync --all-extras # Install streamlit dependency part of the examples extra, see pyproject.toml
166
+ uv run streamlit run examples/streamlit.py # Serve on localhost:8501, opens browser
167
+ ```
168
+
169
+ ## Notebooks
170
+
171
+ ### Jupyter
172
+
173
+ [Show the Jupyter code](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/examples/notebook.ipynb)
174
+
175
+ ... or run within VSCode
176
+
177
+ ```shell
178
+ uv sync --all-extras # Install ipykernel dependency part of the examples extra, see pyproject.toml
179
+ ```
180
+ Install the [Jupyter extension for VSCode](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter)
181
+
182
+ Click on `examples/notebook.ipynb` in VSCode and run it.
183
+
184
+ ### Marimo
185
+
186
+ [Show the marimo code](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/examples/notebook.py)
187
+
188
+ Execute the notebook as a WASM based web app
189
+
190
+ ```shell
191
+ uv sync --all-extras # Install ipykernel dependency part of the examples extra, see pyproject.toml
192
+ uv run marimo run examples/notebook.py --watch # Serve on localhost:2718, opens browser
193
+ ```
194
+
195
+ or edit interactively in your browser
196
+
197
+ ```shell
198
+ uv sync --all-extras # Install ipykernel dependency part of the examples extra, see pyproject.toml
199
+ uv run marimo edit examples/notebook.py --watch # Edit on localhost:2718, opens browser
200
+ ```
201
+
202
+ ... or edit interactively within VSCode
203
+
204
+ Install the [Marimo extension for VSCode](https://marketplace.visualstudio.com/items?itemName=marimo-team.vscode-marimo)
205
+
206
+ Click on `examples/notebook.py` in VSCode and click on the caret next to the Run icon above the code (looks like a pencil) > "Start in marimo editor" (edit).
207
+
208
+ ## Command Line Interface (CLI)
209
+
210
+ ### Run with [uvx](https://docs.astral.sh/uv/guides/tools/)
211
+
212
+ Show available commands:
213
+
214
+ ```shell
215
+ uvx oe-python-template --help
216
+ ```
217
+
218
+ Execute commands:
219
+
220
+ ```shell
221
+ uvx oe-python-template hello-world
222
+ uvx oe-python-template hello-world --json
223
+ uvx oe-python-template echo "Lorem Ipsum"
224
+ ```
225
+
226
+ ### Environment
227
+
228
+ The service loads environment variables including support for .env files.
229
+
230
+ ```shell
231
+ cp .env.example .env # copy example file
232
+ echo "THE_VAR=MY_VALUE" > .env # overwrite with your values
233
+ ```
234
+
235
+ Now run the usage examples again.
236
+
237
+ ### Run with Docker
238
+
239
+ You can as well run the CLI within Docker.
240
+
241
+ ```shell
242
+ docker run helmuthva/oe-python-template --help
243
+ docker run helmuthva/oe-python-template hello-world
244
+ docker run helmuthva/oe-python-template hello-world --json
245
+ docker run helmuthva/oe-python-template echo "Lorem"
246
+ ```
247
+
248
+ Execute command:
249
+
250
+ ```shell
251
+ docker run --env THE_VAR=MY_VALUE helmuthva/oe-python-template echo "Lorem Ipsum"
252
+ ```
253
+
254
+ Or use docker compose
255
+
256
+ The .env is passed through from the host to the Docker container.
257
+
258
+ ```shell
259
+ docker compose up
260
+ docker compose run oe-python-template --help
261
+ ```
262
+
263
+ ## Extra: Lorem Ipsum
264
+
265
+ Dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam.
266
+
267
+
268
+ ## Further Reading
269
+
270
+ * Check out the [reference](https://oe-python-template.readthedocs.io/en/latest/reference.html) with detailed documentation of public classes and functions.
271
+ * Our [release notes](https://oe-python-template.readthedocs.io/en/latest/release-notes.html) provide a complete log of recent improvements and changes.
272
+ * In case you want to help us improve 🧠 OE Python Template: The [contribution guidelines](https://oe-python-template.readthedocs.io/en/latest/contributing.html) explain how to setup your development environment and create pull requests.
273
+
274
+ ## Star History
275
+
276
+ <a href="https://star-history.com/#helmut-hoffer-von-ankershoffen/oe-python-template">
277
+ <picture>
278
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=helmut-hoffer-von-ankershoffen/oe-python-template&type=Date&theme=dark" />
279
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=helmut-hoffer-von-ankershoffen/oe-python-template&type=Date" />
280
+ <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=helmut-hoffer-von-ankershoffen/oe-python-template&type=Date" />
281
+ </picture>
282
+ </a>
@@ -1,6 +1,13 @@
1
1
  [🧠 OE Python Template](https://oe-python-template.readthedocs.io/en/latest/)
2
2
 
3
- ## [0.2.1](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/compare/v0.2.0..0.2.1) - 2025-03-02
3
+ ## [0.2.2](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/compare/v0.2.1..v0.2.2) - 2025-03-02
4
+
5
+ ### 📚 Documentation
6
+
7
+ - Update - ([ae71c31](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/commit/ae71c31c917a7439dc24fe9b86c48e38cf1d4c29))
8
+
9
+
10
+ ## [0.2.1](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/compare/v0.2.0..v0.2.1) - 2025-03-02
4
11
 
5
12
  ### 📚 Documentation
6
13
 
@@ -0,0 +1 @@
1
+ 0.2.2