oe-python-template 0.6.22__tar.gz → 0.6.24__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-0.6.22 → oe_python_template-0.6.24}/.copier-answers.yml +1 -1
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/CHANGELOG.md +15 -1
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/PKG-INFO +54 -28
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/README.md +53 -27
- oe_python_template-0.6.24/RELEASE_NOTES.md +8 -0
- oe_python_template-0.6.24/VERSION +1 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/partials/README_main.md +53 -27
- oe_python_template-0.6.24/docs/source/_static/openapi_v1.yaml +188 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/source/conf.py +1 -1
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/pyproject.toml +2 -2
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/sonar-project.properties +1 -1
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.github/workflows/docker-image-build-publish.yml.jinja +1 -3
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/docs/partials/README_main.md.jinja +53 -27
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/uv.lock +1 -1
- oe_python_template-0.6.22/RELEASE_NOTES.md +0 -8
- oe_python_template-0.6.22/VERSION +0 -1
- oe_python_template-0.6.22/docs/source/_static/openapi_v1.yaml +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.act-env-public +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.devcontainer/Dockerfile +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.devcontainer/devcontainer.json +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.devcontainer/onCreateCommand +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.devcontainer/postAttachCommand +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.devcontainer/postCreateCommand +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.env.example +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.github/copilot-instructions.md +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.github/dependabot.yml +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.github/prompts/.keep +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.github/workflows/codeql.yml +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.github/workflows/docker-image-build-publish.yml +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.github/workflows/package-build-publish-release.yml +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.github/workflows/test-and-report.yml +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.gitignore +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.pre-commit-config.yaml +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.python-version +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.readthedocs.yml +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.secrets.baseline +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.vscode/extensions.json +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/.vscode/settings.json +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/CODEOWNERS +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/CODE_STYLE.md +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/CONTRIBUTING.md +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/Dockerfile +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/LICENSE +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/SECURITY.md +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/SERVICE_CONNECTIONS.md +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/bin/git-cliff +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/codecov.yml +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/compose.yaml +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/copier.yml +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/Makefile +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/make.bat +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/partials/README_footer.md +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/partials/README_header.md +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/source/_static/.keep +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/source/_static/openapi_v1.json +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/source/_static/openapi_v2.json +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/source/_static/openapi_v2.yaml +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/source/api_v1.rst +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/source/api_v1.rst.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/source/api_v2.rst +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/source/api_v2.rst.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/source/code-style.rst +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/source/contributing.rst +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/source/index.rst +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/source/latexmkrc +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/source/main.rst +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/source/reference.rst +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/source/release-notes.rst +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/docs/source/security.rst +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/examples/__init__.py +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/examples/notebook.ipynb +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/examples/notebook.py +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/examples/script.py +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/examples/streamlit.py +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/git-cliff-2.7.0/CHANGELOG.md +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/git-cliff-2.7.0/LICENSE-APACHE +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/git-cliff-2.7.0/LICENSE-MIT +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/git-cliff-2.7.0/README.md +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/git-cliff-2.7.0/completions/_git-cliff +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/git-cliff-2.7.0/completions/_git-cliff.ps1 +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/git-cliff-2.7.0/completions/git-cliff.bash +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/git-cliff-2.7.0/completions/git-cliff.elv +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/git-cliff-2.7.0/completions/git-cliff.fish +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/git-cliff-2.7.0/git-cliff-completions +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/git-cliff-2.7.0/git-cliff-mangen +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/git-cliff-2.7.0/man/git-cliff.1 +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/git-cliff-2.7.0-x86_64-unknown-linux-gnu.tar.gz +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/github-action-run +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/logo.png +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/n +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/noxfile.py +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/renovate.json +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/reports/.keep +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/src/oe_python_template/__init__.py +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/src/oe_python_template/api.py +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/src/oe_python_template/cli.py +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/src/oe_python_template/constants.py +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/src/oe_python_template/service.py +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.act-env-public.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.devcontainer/Dockerfile.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.devcontainer/devcontainer.json.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.devcontainer/onCreateCommand.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.devcontainer/postAttachCommand.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.devcontainer/postCreateCommand.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.env.example.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.github/copilot-instructions.md +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.github/dependabot.yml +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.github/workflows/codeql.yml +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.github/workflows/package-build-publish-release.yml.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.github/workflows/test-and-report.yml.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.gitignore.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.pre-commit-config.yaml.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.python-version +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.readthedocs.yml.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.vscode/extensions.json +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/.vscode/settings.json.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/CHANGELOG.md +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/CODEOWNERS.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/CODE_STYLE.md.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/CONTRIBUTING.md.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/Dockerfile.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/LICENSE.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/README.md +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/SECURITY.md.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/SERVICE_CONNECTIONS.md.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/VERSION +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/codecov.yml.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/compose.yaml.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/docs/Makefile.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/docs/make.bat.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/docs/partials/README_footer.md.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/docs/partials/README_header.md.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/docs/source/_static/.keep +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/docs/source/api_v1.rst.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/docs/source/api_v2.rst.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/docs/source/code-style.rst.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/docs/source/conf.py.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/docs/source/contributing.rst.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/docs/source/index.rst.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/docs/source/main.rst.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/docs/source/reference.rst.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/docs/source/release-notes.rst.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/docs/source/security.rst.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/examples/__init__.py.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/examples/notebook.ipynb.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/examples/notebook.py.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/examples/script.py.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/examples/streamlit.py.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/github-action-run.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/logo.png +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/n.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/noxfile.py.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/pyproject.toml.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/renovate.json +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/reports/.keep +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/sonar-project.properties.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/src/{{ project_name_snake_case }}/__init__.py.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/src/{{ project_name_snake_case }}/api.py.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/src/{{ project_name_snake_case }}/cli.py.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/src/{{ project_name_snake_case }}/constants.py.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/src/{{ project_name_snake_case }}/service.py.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/tests/__init__.py.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/tests/api_test.py.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/tests/cli_test.py.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/tests/fixtures/.keep +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/template/{{_copier_conf.answers_file}}.jinja +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/tests/__init__.py +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/tests/api_test.py +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/tests/cli_test.py +0 -0
- {oe_python_template-0.6.22 → oe_python_template-0.6.24}/tests/fixtures/.keep +0 -0
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
[🧠 OE Python Template](https://oe-python-template.readthedocs.io/en/latest/)
|
|
2
2
|
|
|
3
|
-
## [0.6.
|
|
3
|
+
## [0.6.24](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/compare/v0.6.23..0.6.24) - 2025-03-20
|
|
4
|
+
|
|
5
|
+
### 📚 Documentation
|
|
6
|
+
|
|
7
|
+
- Refactor intro - ([46c9054](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/commit/46c905486d34f319b7c293c3f1fd82773bc1a8b0))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [0.6.23](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/compare/v0.6.22..v0.6.23) - 2025-03-20
|
|
11
|
+
|
|
12
|
+
### 📚 Documentation
|
|
13
|
+
|
|
14
|
+
- Refactor intro - ([7e30bd3](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/commit/7e30bd30a516c52c729615fa516e0b493cdf0213))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.6.22](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/compare/v0.6.21..v0.6.22) - 2025-03-19
|
|
4
18
|
|
|
5
19
|
### 📚 Documentation
|
|
6
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: oe-python-template
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.24
|
|
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/
|
|
@@ -103,24 +103,51 @@ Description-Content-Type: text/markdown
|
|
|
103
103
|
|
|
104
104
|
Copier template to scaffold Python projects compliant with best practices and modern tooling.
|
|
105
105
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
106
|
+
This [Copier](https://copier.readthedocs.io/en/stable/) template enables you to quickly generate a Python package with fully functioning build and test automation.
|
|
107
|
+
Projects generated from this template can be [easily updated](https://copier.readthedocs.io/en/stable/updating/) to benefit from improvements and new features of the template.
|
|
108
|
+
|
|
109
|
+
Features:
|
|
110
|
+
- Package management with [uv](https://github.com/astral-sh/uv)
|
|
111
|
+
- Code formatting with [Ruff](https://github.com/astral-sh/ruff)
|
|
112
|
+
- Linting with [Ruff](https://github.com/astral-sh/ruff)
|
|
113
|
+
- Static type checking with [mypy](https://mypy.readthedocs.io/en/stable/)
|
|
114
|
+
- Complete set of [pre-commit](https://pre-commit.com/) hooks including [detect-secrets](https://github.com/Yelp/detect-secrets) and [pygrep](https://github.com/pre-commit/pygrep-hooks)
|
|
115
|
+
- Unit and E2E testing with [pytest](https://docs.pytest.org/en/stable/) including parallel test execution
|
|
116
|
+
- Matrix testing in multiple environments with [nox](https://nox.thea.codes/en/stable/)
|
|
117
|
+
- Test coverage reported with [Codecov](https://codecov.io/) and published as release artifact
|
|
118
|
+
- CI/CD pipeline automated with [GitHub Actions](https://github.com/features/actions)
|
|
119
|
+
- CI/CD pipeline can be run locally with [act](https://github.com/nektos/act)
|
|
120
|
+
- Code quality and security checks with [SonarQube](https://www.sonarsource.com/products/sonarcloud) and [GitHub CodeQL](https://codeql.github.com/)
|
|
121
|
+
- Dependency monitoring with [pip-audit](https://pypi.org/project/pip-audit/), [Renovate](https://github.com/renovatebot/renovate), and [GitHub Dependabot](https://docs.github.com/en/code-security/getting-started/dependabot-quickstart-guide)
|
|
122
|
+
- Licenses of dependencies extracted with [pip-licenses](https://pypi.org/project/pip-licenses/) and published as release artifacts in CSV and JSON format for compliance checks
|
|
123
|
+
- Software Bill of Materials (SBOM) generated with [cyclonedx-python](https://github.com/CycloneDX/cyclonedx-python) and published as release artifact
|
|
124
|
+
- Version and release management with [bump-my-version](https://callowayproject.github.io/bump-my-version/)
|
|
125
|
+
- Changelog and release notes generated with [git-cliff](https://git-cliff.org/)
|
|
126
|
+
- Documentation generated with [Sphinx](https://www.sphinx-doc.org/en/master/) including reference documentation and PDF export
|
|
127
|
+
- Documentation published to [Read The Docs](https://readthedocs.org/)
|
|
128
|
+
- Interactive OpenAPI specification with [Swagger](https://swagger.io/)
|
|
129
|
+
- Python package published to [PyPI](https://pypi.org/)
|
|
130
|
+
- 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)
|
|
131
|
+
- One-click development environments with [Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers) and [GitHub Codespaces](https://github.com/features/codespaces)
|
|
132
|
+
|
|
133
|
+
The generated project includes code, documentation and configuration of a fully functioning demo-application and service, which can be used as a starting point for your own project.
|
|
134
|
+
- Service architecture suitable for use as shared library
|
|
135
|
+
- Validation with [pydantic](https://docs.pydantic.dev/)
|
|
136
|
+
- Command-line interface (CLI) with [Typer](https://typer.tiangolo.com/)
|
|
137
|
+
- Versioned Web API with [FastAPI](https://fastapi.tiangolo.com/)
|
|
138
|
+
- [Interactive Jupyter notebook](https://jupyter.org/) and [reactive Marimo notebook](https://marimo.io/)
|
|
139
|
+
- Simple Web UI with [Streamlit](https://streamlit.io/)
|
|
140
|
+
- Configuration to run the CLI and API in a Docker container including setup for [Docker Compose](https://docs.docker.com/get-started/docker-concepts/the-basics/what-is-docker-compose/)
|
|
141
|
+
- Documentation including badges, setup instructions, contribution guide and security policy
|
|
142
|
+
|
|
143
|
+
Explore [here](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example) for what's generated out of the box.
|
|
144
|
+
|
|
145
|
+
## Generate a new project
|
|
146
|
+
|
|
147
|
+
This template is designed to be used with the [copier](https://copier.readthedocs.io/en/stable/) project generator. It allows you to create a new project based on this template and customize it according to your needs.
|
|
148
|
+
To generate a new project, follow these steps:
|
|
149
|
+
|
|
150
|
+
**Step 1**: Install uv package manager and copier. Copy the following code into your terminal and execute it.
|
|
124
151
|
```shell
|
|
125
152
|
if [[ "$OSTYPE" == "darwin"* ]]; then # Install dependencies for macOS X
|
|
126
153
|
if ! command -v brew &> /dev/null; then ## Install Homebrew if not present
|
|
@@ -136,32 +163,31 @@ fi
|
|
|
136
163
|
uv tool install copier # Install copier as global tool
|
|
137
164
|
```
|
|
138
165
|
|
|
139
|
-
**Step 2**:
|
|
166
|
+
**Step 2**: [Create an empty repository on GitHub](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-new-repository), clone to your local machine, and change into it's directory.
|
|
140
167
|
|
|
141
|
-
**Step 3**:
|
|
168
|
+
**Step 3**: Generate the project. Copy
|
|
142
169
|
```shell
|
|
143
170
|
copier copy --trust gh:helmut-hoffer-von-ankershoffen/oe-python-template .
|
|
144
171
|
```
|
|
145
172
|
|
|
146
|
-
**Step 4**: Perform initial commit and push
|
|
173
|
+
**Step 4**: Perform initial commit and push. Copy the following code into your terminal and execute it.
|
|
147
174
|
```shell
|
|
148
175
|
git add .
|
|
149
176
|
git commit -m "feat: Initial commit"
|
|
150
177
|
git push
|
|
151
178
|
```
|
|
152
179
|
|
|
153
|
-
Visit your GitHub repository and check the Actions tab. The CI workflow should fail at the SonarQube step,
|
|
154
|
-
as this external service is not yet configured for our new repository.
|
|
180
|
+
Visit your GitHub repository and check the Actions tab. The CI workflow should already be running! The workflow will fail at the SonarQube step, as this external service is not yet configured for our new repository.
|
|
155
181
|
|
|
156
182
|
**Step 5**: Follow the [instructions](SERVICE_CONNECTIONS.md) to wire up
|
|
157
|
-
external services such as
|
|
183
|
+
external services such as CloudCov, SonarQube Cloud, Read The Docs, Docker.io, and Streamlit Community Cloud.
|
|
158
184
|
|
|
159
185
|
**Step 6**: Release the first versions
|
|
160
186
|
```shell
|
|
161
187
|
./n bump
|
|
162
188
|
```
|
|
163
189
|
Notes:
|
|
164
|
-
* You can remove this section post having successfully
|
|
190
|
+
* You can remove this section post having successfully generated your project.
|
|
165
191
|
* The following sections refer to the dummy application and service provided by this template.
|
|
166
192
|
Use them as inspiration and adapt them to your own project.
|
|
167
193
|
|
|
@@ -217,9 +243,9 @@ This project is designed with operational excellence in mind, using modern Pytho
|
|
|
217
243
|
* [Transparent test coverage](https://app.codecov.io/gh/helmut-hoffer-von-ankershoffen/oe-python-template) including unit and E2E tests (reported on Codecov)
|
|
218
244
|
* 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/))
|
|
219
245
|
* Compliant with modern linting and formatting standards (powered by [Ruff](https://github.com/astral-sh/ruff))
|
|
220
|
-
* Up-to-date dependencies (monitored by [Renovate](https://github.com/renovatebot/renovate) and [
|
|
246
|
+
* Up-to-date dependencies (monitored by [Renovate](https://github.com/renovatebot/renovate) and [Dependabot](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/security/dependabot))
|
|
221
247
|
* [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 codesmell (verified by SonarQube)
|
|
222
|
-
* Additional code security checks using [
|
|
248
|
+
* Additional code security checks using [CodeQL](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/security/code-scanning)
|
|
223
249
|
* [Security Policy](SECURITY.md)
|
|
224
250
|
* [License](LICENSE) compliant with the Open Source Initiative (OSI)
|
|
225
251
|
* 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)
|
|
@@ -42,24 +42,51 @@
|
|
|
42
42
|
|
|
43
43
|
Copier template to scaffold Python projects compliant with best practices and modern tooling.
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
45
|
+
This [Copier](https://copier.readthedocs.io/en/stable/) template enables you to quickly generate a Python package with fully functioning build and test automation.
|
|
46
|
+
Projects generated from this template can be [easily updated](https://copier.readthedocs.io/en/stable/updating/) to benefit from improvements and new features of the template.
|
|
47
|
+
|
|
48
|
+
Features:
|
|
49
|
+
- Package management with [uv](https://github.com/astral-sh/uv)
|
|
50
|
+
- Code formatting with [Ruff](https://github.com/astral-sh/ruff)
|
|
51
|
+
- Linting with [Ruff](https://github.com/astral-sh/ruff)
|
|
52
|
+
- Static type checking with [mypy](https://mypy.readthedocs.io/en/stable/)
|
|
53
|
+
- Complete set of [pre-commit](https://pre-commit.com/) hooks including [detect-secrets](https://github.com/Yelp/detect-secrets) and [pygrep](https://github.com/pre-commit/pygrep-hooks)
|
|
54
|
+
- Unit and E2E testing with [pytest](https://docs.pytest.org/en/stable/) including parallel test execution
|
|
55
|
+
- Matrix testing in multiple environments with [nox](https://nox.thea.codes/en/stable/)
|
|
56
|
+
- Test coverage reported with [Codecov](https://codecov.io/) and published as release artifact
|
|
57
|
+
- CI/CD pipeline automated with [GitHub Actions](https://github.com/features/actions)
|
|
58
|
+
- CI/CD pipeline can be run locally with [act](https://github.com/nektos/act)
|
|
59
|
+
- Code quality and security checks with [SonarQube](https://www.sonarsource.com/products/sonarcloud) and [GitHub CodeQL](https://codeql.github.com/)
|
|
60
|
+
- Dependency monitoring with [pip-audit](https://pypi.org/project/pip-audit/), [Renovate](https://github.com/renovatebot/renovate), and [GitHub Dependabot](https://docs.github.com/en/code-security/getting-started/dependabot-quickstart-guide)
|
|
61
|
+
- Licenses of dependencies extracted with [pip-licenses](https://pypi.org/project/pip-licenses/) and published as release artifacts in CSV and JSON format for compliance checks
|
|
62
|
+
- Software Bill of Materials (SBOM) generated with [cyclonedx-python](https://github.com/CycloneDX/cyclonedx-python) and published as release artifact
|
|
63
|
+
- Version and release management with [bump-my-version](https://callowayproject.github.io/bump-my-version/)
|
|
64
|
+
- Changelog and release notes generated with [git-cliff](https://git-cliff.org/)
|
|
65
|
+
- Documentation generated with [Sphinx](https://www.sphinx-doc.org/en/master/) including reference documentation and PDF export
|
|
66
|
+
- Documentation published to [Read The Docs](https://readthedocs.org/)
|
|
67
|
+
- Interactive OpenAPI specification with [Swagger](https://swagger.io/)
|
|
68
|
+
- Python package published to [PyPI](https://pypi.org/)
|
|
69
|
+
- 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)
|
|
70
|
+
- One-click development environments with [Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers) and [GitHub Codespaces](https://github.com/features/codespaces)
|
|
71
|
+
|
|
72
|
+
The generated project includes code, documentation and configuration of a fully functioning demo-application and service, which can be used as a starting point for your own project.
|
|
73
|
+
- Service architecture suitable for use as shared library
|
|
74
|
+
- Validation with [pydantic](https://docs.pydantic.dev/)
|
|
75
|
+
- Command-line interface (CLI) with [Typer](https://typer.tiangolo.com/)
|
|
76
|
+
- Versioned Web API with [FastAPI](https://fastapi.tiangolo.com/)
|
|
77
|
+
- [Interactive Jupyter notebook](https://jupyter.org/) and [reactive Marimo notebook](https://marimo.io/)
|
|
78
|
+
- Simple Web UI with [Streamlit](https://streamlit.io/)
|
|
79
|
+
- Configuration to run the CLI and API in a Docker container including setup for [Docker Compose](https://docs.docker.com/get-started/docker-concepts/the-basics/what-is-docker-compose/)
|
|
80
|
+
- Documentation including badges, setup instructions, contribution guide and security policy
|
|
81
|
+
|
|
82
|
+
Explore [here](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example) for what's generated out of the box.
|
|
83
|
+
|
|
84
|
+
## Generate a new project
|
|
85
|
+
|
|
86
|
+
This template is designed to be used with the [copier](https://copier.readthedocs.io/en/stable/) project generator. It allows you to create a new project based on this template and customize it according to your needs.
|
|
87
|
+
To generate a new project, follow these steps:
|
|
88
|
+
|
|
89
|
+
**Step 1**: Install uv package manager and copier. Copy the following code into your terminal and execute it.
|
|
63
90
|
```shell
|
|
64
91
|
if [[ "$OSTYPE" == "darwin"* ]]; then # Install dependencies for macOS X
|
|
65
92
|
if ! command -v brew &> /dev/null; then ## Install Homebrew if not present
|
|
@@ -75,32 +102,31 @@ fi
|
|
|
75
102
|
uv tool install copier # Install copier as global tool
|
|
76
103
|
```
|
|
77
104
|
|
|
78
|
-
**Step 2**:
|
|
105
|
+
**Step 2**: [Create an empty repository on GitHub](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-new-repository), clone to your local machine, and change into it's directory.
|
|
79
106
|
|
|
80
|
-
**Step 3**:
|
|
107
|
+
**Step 3**: Generate the project. Copy
|
|
81
108
|
```shell
|
|
82
109
|
copier copy --trust gh:helmut-hoffer-von-ankershoffen/oe-python-template .
|
|
83
110
|
```
|
|
84
111
|
|
|
85
|
-
**Step 4**: Perform initial commit and push
|
|
112
|
+
**Step 4**: Perform initial commit and push. Copy the following code into your terminal and execute it.
|
|
86
113
|
```shell
|
|
87
114
|
git add .
|
|
88
115
|
git commit -m "feat: Initial commit"
|
|
89
116
|
git push
|
|
90
117
|
```
|
|
91
118
|
|
|
92
|
-
Visit your GitHub repository and check the Actions tab. The CI workflow should fail at the SonarQube step,
|
|
93
|
-
as this external service is not yet configured for our new repository.
|
|
119
|
+
Visit your GitHub repository and check the Actions tab. The CI workflow should already be running! The workflow will fail at the SonarQube step, as this external service is not yet configured for our new repository.
|
|
94
120
|
|
|
95
121
|
**Step 5**: Follow the [instructions](SERVICE_CONNECTIONS.md) to wire up
|
|
96
|
-
external services such as
|
|
122
|
+
external services such as CloudCov, SonarQube Cloud, Read The Docs, Docker.io, and Streamlit Community Cloud.
|
|
97
123
|
|
|
98
124
|
**Step 6**: Release the first versions
|
|
99
125
|
```shell
|
|
100
126
|
./n bump
|
|
101
127
|
```
|
|
102
128
|
Notes:
|
|
103
|
-
* You can remove this section post having successfully
|
|
129
|
+
* You can remove this section post having successfully generated your project.
|
|
104
130
|
* The following sections refer to the dummy application and service provided by this template.
|
|
105
131
|
Use them as inspiration and adapt them to your own project.
|
|
106
132
|
|
|
@@ -156,9 +182,9 @@ This project is designed with operational excellence in mind, using modern Pytho
|
|
|
156
182
|
* [Transparent test coverage](https://app.codecov.io/gh/helmut-hoffer-von-ankershoffen/oe-python-template) including unit and E2E tests (reported on Codecov)
|
|
157
183
|
* 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/))
|
|
158
184
|
* Compliant with modern linting and formatting standards (powered by [Ruff](https://github.com/astral-sh/ruff))
|
|
159
|
-
* Up-to-date dependencies (monitored by [Renovate](https://github.com/renovatebot/renovate) and [
|
|
185
|
+
* Up-to-date dependencies (monitored by [Renovate](https://github.com/renovatebot/renovate) and [Dependabot](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/security/dependabot))
|
|
160
186
|
* [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 codesmell (verified by SonarQube)
|
|
161
|
-
* Additional code security checks using [
|
|
187
|
+
* Additional code security checks using [CodeQL](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/security/code-scanning)
|
|
162
188
|
* [Security Policy](SECURITY.md)
|
|
163
189
|
* [License](LICENSE) compliant with the Open Source Initiative (OSI)
|
|
164
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)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
## [0.6.24](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/compare/v0.6.23..v0.6.24) - 2025-03-20
|
|
2
|
+
|
|
3
|
+
### 📚 Documentation
|
|
4
|
+
|
|
5
|
+
- Refactor intro - ([46c9054](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/commit/46c905486d34f319b7c293c3f1fd82773bc1a8b0))
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.6.24
|
|
@@ -1,23 +1,50 @@
|
|
|
1
1
|
Copier template to scaffold Python projects compliant with best practices and modern tooling.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
3
|
+
This [Copier](https://copier.readthedocs.io/en/stable/) template enables you to quickly generate a Python package with fully functioning build and test automation.
|
|
4
|
+
Projects generated from this template can be [easily updated](https://copier.readthedocs.io/en/stable/updating/) to benefit from improvements and new features of the template.
|
|
5
|
+
|
|
6
|
+
Features:
|
|
7
|
+
- Package management with [uv](https://github.com/astral-sh/uv)
|
|
8
|
+
- Code formatting with [Ruff](https://github.com/astral-sh/ruff)
|
|
9
|
+
- Linting with [Ruff](https://github.com/astral-sh/ruff)
|
|
10
|
+
- Static type checking with [mypy](https://mypy.readthedocs.io/en/stable/)
|
|
11
|
+
- Complete set of [pre-commit](https://pre-commit.com/) hooks including [detect-secrets](https://github.com/Yelp/detect-secrets) and [pygrep](https://github.com/pre-commit/pygrep-hooks)
|
|
12
|
+
- Unit and E2E testing with [pytest](https://docs.pytest.org/en/stable/) including parallel test execution
|
|
13
|
+
- Matrix testing in multiple environments with [nox](https://nox.thea.codes/en/stable/)
|
|
14
|
+
- Test coverage reported with [Codecov](https://codecov.io/) and published as release artifact
|
|
15
|
+
- CI/CD pipeline automated with [GitHub Actions](https://github.com/features/actions)
|
|
16
|
+
- CI/CD pipeline can be run locally with [act](https://github.com/nektos/act)
|
|
17
|
+
- Code quality and security checks with [SonarQube](https://www.sonarsource.com/products/sonarcloud) and [GitHub CodeQL](https://codeql.github.com/)
|
|
18
|
+
- Dependency monitoring with [pip-audit](https://pypi.org/project/pip-audit/), [Renovate](https://github.com/renovatebot/renovate), and [GitHub Dependabot](https://docs.github.com/en/code-security/getting-started/dependabot-quickstart-guide)
|
|
19
|
+
- Licenses of dependencies extracted with [pip-licenses](https://pypi.org/project/pip-licenses/) and published as release artifacts in CSV and JSON format for compliance checks
|
|
20
|
+
- Software Bill of Materials (SBOM) generated with [cyclonedx-python](https://github.com/CycloneDX/cyclonedx-python) and published as release artifact
|
|
21
|
+
- Version and release management with [bump-my-version](https://callowayproject.github.io/bump-my-version/)
|
|
22
|
+
- Changelog and release notes generated with [git-cliff](https://git-cliff.org/)
|
|
23
|
+
- Documentation generated with [Sphinx](https://www.sphinx-doc.org/en/master/) including reference documentation and PDF export
|
|
24
|
+
- Documentation published to [Read The Docs](https://readthedocs.org/)
|
|
25
|
+
- Interactive OpenAPI specification with [Swagger](https://swagger.io/)
|
|
26
|
+
- Python package published to [PyPI](https://pypi.org/)
|
|
27
|
+
- 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)
|
|
28
|
+
- One-click development environments with [Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers) and [GitHub Codespaces](https://github.com/features/codespaces)
|
|
29
|
+
|
|
30
|
+
The generated project includes code, documentation and configuration of a fully functioning demo-application and service, which can be used as a starting point for your own project.
|
|
31
|
+
- Service architecture suitable for use as shared library
|
|
32
|
+
- Validation with [pydantic](https://docs.pydantic.dev/)
|
|
33
|
+
- Command-line interface (CLI) with [Typer](https://typer.tiangolo.com/)
|
|
34
|
+
- Versioned Web API with [FastAPI](https://fastapi.tiangolo.com/)
|
|
35
|
+
- [Interactive Jupyter notebook](https://jupyter.org/) and [reactive Marimo notebook](https://marimo.io/)
|
|
36
|
+
- Simple Web UI with [Streamlit](https://streamlit.io/)
|
|
37
|
+
- Configuration to run the CLI and API in a Docker container including setup for [Docker Compose](https://docs.docker.com/get-started/docker-concepts/the-basics/what-is-docker-compose/)
|
|
38
|
+
- Documentation including badges, setup instructions, contribution guide and security policy
|
|
39
|
+
|
|
40
|
+
Explore [here](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example) for what's generated out of the box.
|
|
41
|
+
|
|
42
|
+
## Generate a new project
|
|
43
|
+
|
|
44
|
+
This template is designed to be used with the [copier](https://copier.readthedocs.io/en/stable/) project generator. It allows you to create a new project based on this template and customize it according to your needs.
|
|
45
|
+
To generate a new project, follow these steps:
|
|
46
|
+
|
|
47
|
+
**Step 1**: Install uv package manager and copier. Copy the following code into your terminal and execute it.
|
|
21
48
|
```shell
|
|
22
49
|
if [[ "$OSTYPE" == "darwin"* ]]; then # Install dependencies for macOS X
|
|
23
50
|
if ! command -v brew &> /dev/null; then ## Install Homebrew if not present
|
|
@@ -33,32 +60,31 @@ fi
|
|
|
33
60
|
uv tool install copier # Install copier as global tool
|
|
34
61
|
```
|
|
35
62
|
|
|
36
|
-
**Step 2**:
|
|
63
|
+
**Step 2**: [Create an empty repository on GitHub](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-new-repository), clone to your local machine, and change into it's directory.
|
|
37
64
|
|
|
38
|
-
**Step 3**:
|
|
65
|
+
**Step 3**: Generate the project. Copy
|
|
39
66
|
```shell
|
|
40
67
|
copier copy --trust gh:helmut-hoffer-von-ankershoffen/oe-python-template .
|
|
41
68
|
```
|
|
42
69
|
|
|
43
|
-
**Step 4**: Perform initial commit and push
|
|
70
|
+
**Step 4**: Perform initial commit and push. Copy the following code into your terminal and execute it.
|
|
44
71
|
```shell
|
|
45
72
|
git add .
|
|
46
73
|
git commit -m "feat: Initial commit"
|
|
47
74
|
git push
|
|
48
75
|
```
|
|
49
76
|
|
|
50
|
-
Visit your GitHub repository and check the Actions tab. The CI workflow should fail at the SonarQube step,
|
|
51
|
-
as this external service is not yet configured for our new repository.
|
|
77
|
+
Visit your GitHub repository and check the Actions tab. The CI workflow should already be running! The workflow will fail at the SonarQube step, as this external service is not yet configured for our new repository.
|
|
52
78
|
|
|
53
79
|
**Step 5**: Follow the [instructions](SERVICE_CONNECTIONS.md) to wire up
|
|
54
|
-
external services such as
|
|
80
|
+
external services such as CloudCov, SonarQube Cloud, Read The Docs, Docker.io, and Streamlit Community Cloud.
|
|
55
81
|
|
|
56
82
|
**Step 6**: Release the first versions
|
|
57
83
|
```shell
|
|
58
84
|
./n bump
|
|
59
85
|
```
|
|
60
86
|
Notes:
|
|
61
|
-
* You can remove this section post having successfully
|
|
87
|
+
* You can remove this section post having successfully generated your project.
|
|
62
88
|
* The following sections refer to the dummy application and service provided by this template.
|
|
63
89
|
Use them as inspiration and adapt them to your own project.
|
|
64
90
|
|
|
@@ -114,9 +140,9 @@ This project is designed with operational excellence in mind, using modern Pytho
|
|
|
114
140
|
* [Transparent test coverage](https://app.codecov.io/gh/helmut-hoffer-von-ankershoffen/oe-python-template) including unit and E2E tests (reported on Codecov)
|
|
115
141
|
* 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/))
|
|
116
142
|
* Compliant with modern linting and formatting standards (powered by [Ruff](https://github.com/astral-sh/ruff))
|
|
117
|
-
* Up-to-date dependencies (monitored by [Renovate](https://github.com/renovatebot/renovate) and [
|
|
143
|
+
* Up-to-date dependencies (monitored by [Renovate](https://github.com/renovatebot/renovate) and [Dependabot](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/security/dependabot))
|
|
118
144
|
* [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 codesmell (verified by SonarQube)
|
|
119
|
-
* Additional code security checks using [
|
|
145
|
+
* Additional code security checks using [CodeQL](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/security/code-scanning)
|
|
120
146
|
* [Security Policy](SECURITY.md)
|
|
121
147
|
* [License](LICENSE) compliant with the Open Source Initiative (OSI)
|
|
122
148
|
* 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)
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
components:
|
|
2
|
+
schemas:
|
|
3
|
+
EchoRequest:
|
|
4
|
+
description: Request model for echo endpoint.
|
|
5
|
+
properties:
|
|
6
|
+
text:
|
|
7
|
+
description: The text to echo back
|
|
8
|
+
examples:
|
|
9
|
+
- Hello, world!
|
|
10
|
+
minLength: 1
|
|
11
|
+
title: Text
|
|
12
|
+
type: string
|
|
13
|
+
required:
|
|
14
|
+
- text
|
|
15
|
+
title: EchoRequest
|
|
16
|
+
type: object
|
|
17
|
+
EchoResponse:
|
|
18
|
+
description: Response model for echo endpoint.
|
|
19
|
+
properties:
|
|
20
|
+
message:
|
|
21
|
+
description: The message content
|
|
22
|
+
examples:
|
|
23
|
+
- Hello, world!
|
|
24
|
+
minLength: 1
|
|
25
|
+
title: Message
|
|
26
|
+
type: string
|
|
27
|
+
required:
|
|
28
|
+
- message
|
|
29
|
+
title: EchoResponse
|
|
30
|
+
type: object
|
|
31
|
+
HTTPValidationError:
|
|
32
|
+
properties:
|
|
33
|
+
detail:
|
|
34
|
+
items:
|
|
35
|
+
$ref: '#/components/schemas/ValidationError'
|
|
36
|
+
title: Detail
|
|
37
|
+
type: array
|
|
38
|
+
title: HTTPValidationError
|
|
39
|
+
type: object
|
|
40
|
+
Health:
|
|
41
|
+
description: Health status model.
|
|
42
|
+
properties:
|
|
43
|
+
reason:
|
|
44
|
+
anyOf:
|
|
45
|
+
- type: string
|
|
46
|
+
- type: 'null'
|
|
47
|
+
title: Reason
|
|
48
|
+
status:
|
|
49
|
+
$ref: '#/components/schemas/_HealthStatus'
|
|
50
|
+
required:
|
|
51
|
+
- status
|
|
52
|
+
title: Health
|
|
53
|
+
type: object
|
|
54
|
+
HelloWorldResponse:
|
|
55
|
+
description: Response model for hello-world endpoint.
|
|
56
|
+
properties:
|
|
57
|
+
message:
|
|
58
|
+
description: The hello world message
|
|
59
|
+
examples:
|
|
60
|
+
- Hello, world!
|
|
61
|
+
title: Message
|
|
62
|
+
type: string
|
|
63
|
+
required:
|
|
64
|
+
- message
|
|
65
|
+
title: HelloWorldResponse
|
|
66
|
+
type: object
|
|
67
|
+
ValidationError:
|
|
68
|
+
properties:
|
|
69
|
+
loc:
|
|
70
|
+
items:
|
|
71
|
+
anyOf:
|
|
72
|
+
- type: string
|
|
73
|
+
- type: integer
|
|
74
|
+
title: Location
|
|
75
|
+
type: array
|
|
76
|
+
msg:
|
|
77
|
+
title: Message
|
|
78
|
+
type: string
|
|
79
|
+
type:
|
|
80
|
+
title: Error Type
|
|
81
|
+
type: string
|
|
82
|
+
required:
|
|
83
|
+
- loc
|
|
84
|
+
- msg
|
|
85
|
+
- type
|
|
86
|
+
title: ValidationError
|
|
87
|
+
type: object
|
|
88
|
+
_HealthStatus:
|
|
89
|
+
description: Health status enumeration.
|
|
90
|
+
enum:
|
|
91
|
+
- UP
|
|
92
|
+
- DOWN
|
|
93
|
+
title: _HealthStatus
|
|
94
|
+
type: string
|
|
95
|
+
info:
|
|
96
|
+
contact:
|
|
97
|
+
email: helmuthva@gmail.com
|
|
98
|
+
name: Helmut Hoffer von Ankershoffen
|
|
99
|
+
url: https://github.com/helmut-hoffer-von-ankershoffen
|
|
100
|
+
termsOfService: https://oe-python-template.readthedocs.io/en/latest/
|
|
101
|
+
title: OE Python Template
|
|
102
|
+
version: 1.0.0
|
|
103
|
+
openapi: 3.1.0
|
|
104
|
+
paths:
|
|
105
|
+
/echo:
|
|
106
|
+
post:
|
|
107
|
+
description: "Echo back the provided text.\n\nArgs:\n request (EchoRequest):\
|
|
108
|
+
\ The request containing the text to echo back.\n\nReturns:\n EchoResponse:\
|
|
109
|
+
\ A response containing the echoed text.\n\nRaises:\n 422 Unprocessable\
|
|
110
|
+
\ Entity: If text is not provided or empty."
|
|
111
|
+
operationId: echo_echo_post
|
|
112
|
+
requestBody:
|
|
113
|
+
content:
|
|
114
|
+
application/json:
|
|
115
|
+
schema:
|
|
116
|
+
$ref: '#/components/schemas/EchoRequest'
|
|
117
|
+
required: true
|
|
118
|
+
responses:
|
|
119
|
+
'200':
|
|
120
|
+
content:
|
|
121
|
+
application/json:
|
|
122
|
+
schema:
|
|
123
|
+
$ref: '#/components/schemas/EchoResponse'
|
|
124
|
+
description: Successful Response
|
|
125
|
+
'422':
|
|
126
|
+
content:
|
|
127
|
+
application/json:
|
|
128
|
+
schema:
|
|
129
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
130
|
+
description: Validation Error
|
|
131
|
+
summary: Echo
|
|
132
|
+
tags:
|
|
133
|
+
- Basics
|
|
134
|
+
/health:
|
|
135
|
+
get:
|
|
136
|
+
description: "Check the health of the service.\n\nThis endpoint returns the\
|
|
137
|
+
\ health status of the service.\nThe health status can be either UP or DOWN.\n\
|
|
138
|
+
If the service is healthy, the status will be UP.\nIf the service is unhealthy,\
|
|
139
|
+
\ the status will be DOWN and a reason will be provided.\nThe response will\
|
|
140
|
+
\ have a 200 OK status code if the service is healthy,\nand a 500 Internal\
|
|
141
|
+
\ Server Error status code if the service is unhealthy.\n\nReturns:\n Health:\
|
|
142
|
+
\ The health status of the service."
|
|
143
|
+
operationId: health_health_get
|
|
144
|
+
responses:
|
|
145
|
+
'200':
|
|
146
|
+
content:
|
|
147
|
+
application/json:
|
|
148
|
+
schema:
|
|
149
|
+
$ref: '#/components/schemas/Health'
|
|
150
|
+
description: Successful Response
|
|
151
|
+
summary: Health
|
|
152
|
+
tags:
|
|
153
|
+
- Observability
|
|
154
|
+
/healthz:
|
|
155
|
+
get:
|
|
156
|
+
description: "Check the health of the service.\n\nThis endpoint returns the\
|
|
157
|
+
\ health status of the service.\nThe health status can be either UP or DOWN.\n\
|
|
158
|
+
If the service is healthy, the status will be UP.\nIf the service is unhealthy,\
|
|
159
|
+
\ the status will be DOWN and a reason will be provided.\nThe response will\
|
|
160
|
+
\ have a 200 OK status code if the service is healthy,\nand a 500 Internal\
|
|
161
|
+
\ Server Error status code if the service is unhealthy.\n\nReturns:\n Health:\
|
|
162
|
+
\ The health status of the service."
|
|
163
|
+
operationId: health_healthz_get
|
|
164
|
+
responses:
|
|
165
|
+
'200':
|
|
166
|
+
content:
|
|
167
|
+
application/json:
|
|
168
|
+
schema:
|
|
169
|
+
$ref: '#/components/schemas/Health'
|
|
170
|
+
description: Successful Response
|
|
171
|
+
summary: Health
|
|
172
|
+
tags:
|
|
173
|
+
- Observability
|
|
174
|
+
/hello-world:
|
|
175
|
+
get:
|
|
176
|
+
description: "Return a hello world message.\n\nReturns:\n HelloWorldResponse:\
|
|
177
|
+
\ A response containing the hello world message."
|
|
178
|
+
operationId: hello_world_hello_world_get
|
|
179
|
+
responses:
|
|
180
|
+
'200':
|
|
181
|
+
content:
|
|
182
|
+
application/json:
|
|
183
|
+
schema:
|
|
184
|
+
$ref: '#/components/schemas/HelloWorldResponse'
|
|
185
|
+
description: Successful Response
|
|
186
|
+
summary: Hello World
|
|
187
|
+
tags:
|
|
188
|
+
- Basics
|
|
@@ -29,7 +29,7 @@ extensions = [
|
|
|
29
29
|
project = "oe-python-template"
|
|
30
30
|
author = "Helmut Hoffer von Ankershoffen"
|
|
31
31
|
copyright = f" (c) 2025-{datetime.now(UTC).year}, {author}" # noqa: A001
|
|
32
|
-
version = "0.6.
|
|
32
|
+
version = "0.6.24"
|
|
33
33
|
release = version
|
|
34
34
|
github_username = "helmut-hoffer-von-ankershoffen"
|
|
35
35
|
github_repository = "oe-python-template"
|