oe-python-template 0.2.1__tar.gz → 0.2.3__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.2.1 → oe_python_template-0.2.3}/.copier-answers.yml +1 -1
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.secrets.baseline +1 -1
- oe_python_template-0.2.1/RELEASE_NOTES.md → oe_python_template-0.2.3/CHANGELOG.md +14 -0
- oe_python_template-0.2.3/PKG-INFO +344 -0
- oe_python_template-0.2.3/README.md +285 -0
- oe_python_template-0.2.1/CHANGELOG.md → oe_python_template-0.2.3/RELEASE_NOTES.md +15 -1
- oe_python_template-0.2.3/VERSION +1 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/_readme_header.md +3 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/_readme_main.md +5 -5
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/copier.yml +7 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/docs/source/conf.py +1 -1
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/pyproject.toml +2 -2
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/sonar-project.properties +1 -1
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/_readme_header.md.jinja +3 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/_readme_main.md.jinja +5 -5
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/uv.lock +1 -1
- oe_python_template-0.2.1/PKG-INFO +0 -60
- oe_python_template-0.2.1/README.md +0 -1
- oe_python_template-0.2.1/VERSION +0 -1
- oe_python_template-0.2.1/template/README.md +0 -1
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.act-env +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.act-secret +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.devcontainer/Dockerfile +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.devcontainer/devcontainer.json +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.devcontainer/onCreateCommand +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.devcontainer/postAttachCommand +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.devcontainer/postCreateCommand +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.env.example +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.github/workflows/docker-image-build-publish.yml +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.github/workflows/package-build-publish-release.yml +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.github/workflows/test-and-report.yml +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.gitignore +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.pre-commit-config.yaml +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.python-version +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.readthedocs.yml +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.vscode/extensions.json +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/.vscode/settings.json +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/CODEOWNERS +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/CONTRIBUTING.md +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/Dockerfile +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/LICENSE +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/SERVICE_CONNECTIONS.md +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/_readme_footer.md +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/bin/git-cliff +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/bump +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/codecov.yml +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/compose.yaml +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/docs/Makefile +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/docs/make.bat +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/docs/source/_static/.keep +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/docs/source/contributing.rst +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/docs/source/index.rst +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/docs/source/latexmkrc +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/docs/source/main.rst +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/docs/source/reference.rst +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/docs/source/release-notes.rst +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/examples/__init__.py +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/examples/jupyter.ipynb +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/examples/notebook.ipynb +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/examples/notebook.py +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/examples/script.py +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/examples/streamlit.py +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/git-cliff-2.7.0/CHANGELOG.md +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/git-cliff-2.7.0/LICENSE-APACHE +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/git-cliff-2.7.0/LICENSE-MIT +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/git-cliff-2.7.0/README.md +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/git-cliff-2.7.0/completions/_git-cliff +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/git-cliff-2.7.0/completions/_git-cliff.ps1 +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/git-cliff-2.7.0/completions/git-cliff.bash +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/git-cliff-2.7.0/completions/git-cliff.elv +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/git-cliff-2.7.0/completions/git-cliff.fish +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/git-cliff-2.7.0/git-cliff-completions +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/git-cliff-2.7.0/git-cliff-mangen +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/git-cliff-2.7.0/man/git-cliff.1 +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/git-cliff-2.7.0-x86_64-unknown-linux-gnu.tar.gz +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/github-action-run +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/latexmkrc +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/logo.png +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/noxfile.py +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/src/oe_python_template/__init__.py +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/src/oe_python_template/cli.py +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/src/oe_python_template/constants.py +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/src/oe_python_template/service.py +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/.act-env.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/.act-secret.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/.devcontainer/Dockerfile.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/.devcontainer/devcontainer.json.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/.devcontainer/onCreateCommand.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/.devcontainer/postAttachCommand.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/.devcontainer/postCreateCommand.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/.env.example.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/.github/workflows/docker-image-build-publish.yml.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/.github/workflows/package-build-publish-release.yml.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/.github/workflows/test-and-report.yml.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/.gitignore.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/.pre-commit-config.yaml.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/.python-version +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/.readthedocs.yml.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/.vscode/extensions.json +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/.vscode/settings.json +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/CHANGELOG.md +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/CODEOWNERS.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/CONTRIBUTING.md.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/Dockerfile.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/LICENSE.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/SERVICE_CONNECTIONS.md.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/VERSION +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/_readme_footer.md.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/bump.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/codecov.yml.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/compose.yaml.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/docs/Makefile.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/docs/make.bat.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/docs/source/_static/.keep +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/docs/source/conf.py.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/docs/source/contributing.rst.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/docs/source/index.rst.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/docs/source/latexmkrc.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/docs/source/main.rst.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/docs/source/reference.rst.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/docs/source/release-notes.rst.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/examples/__init__.py.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/examples/notebook.ipynb.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/examples/notebook.py.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/examples/script.py.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/examples/streamlit.py.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/github-action-run.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/latexmkrc.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/logo.png +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/noxfile.py.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/pyproject.toml.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/sonar-project.properties.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/src/{{ project_name_snake_case }}/__init__.py.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/src/{{ project_name_snake_case }}/cli.py.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/src/{{ project_name_snake_case }}/constants.py.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/src/{{ project_name_snake_case }}/service.py.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/tests/__init__.py.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/tests/cli_test.py.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/tests/fixtures/.keep +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/template/{{_copier_conf.answers_file}}.jinja +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/tests/__init__.py +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/tests/cli_test.py +0 -0
- {oe_python_template-0.2.1 → oe_python_template-0.2.3}/tests/fixtures/.keep +0 -0
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
[🧠 OE Python Template](https://oe-python-template.readthedocs.io/en/latest/)
|
|
2
2
|
|
|
3
|
+
## [0.2.3](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/compare/v0.2.2..0.2.3) - 2025-03-03
|
|
4
|
+
|
|
5
|
+
### ⛰️ Features
|
|
6
|
+
|
|
7
|
+
- *(copier)* Introduce tasks - ([db540bc](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/commit/db540bc2907710409c2a23e8a704804bc8e7edda))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [0.2.2](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/compare/v0.2.1..v0.2.2) - 2025-03-02
|
|
11
|
+
|
|
12
|
+
### 📚 Documentation
|
|
13
|
+
|
|
14
|
+
- Update - ([ae71c31](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/commit/ae71c31c917a7439dc24fe9b86c48e38cf1d4c29))
|
|
15
|
+
|
|
16
|
+
|
|
3
17
|
## [0.2.1](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/compare/v0.2.0..v0.2.1) - 2025-03-02
|
|
4
18
|
|
|
5
19
|
### 📚 Documentation
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: oe-python-template
|
|
3
|
+
Version: 0.2.3
|
|
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
|
+
[
|
|
63
|
+
](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/LICENSE)
|
|
64
|
+
[](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/noxfile.py)
|
|
65
|
+
[](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/actions/workflows/test-and-report.yml)
|
|
66
|
+
[](https://oe-python-template.readthedocs.io/en/latest/)
|
|
67
|
+
[](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template)
|
|
68
|
+
[](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template)
|
|
69
|
+
[](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template)
|
|
70
|
+
[](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template)
|
|
71
|
+
[](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template)
|
|
72
|
+
[](https://codecov.io/gh/helmut-hoffer-von-ankershoffen/oe-python-template)
|
|
73
|
+
[](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/noxfile.py)
|
|
74
|
+
[](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/releases)
|
|
75
|
+
[](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/commits/main/)
|
|
76
|
+
[](https://pypi.python.org/pypi/oe-python-template)
|
|
77
|
+
[](https://pypi.python.org/pypi/oe-python-template)
|
|
78
|
+
[](https://hub.docker.com/r/helmuthva/oe-python-template/tags)
|
|
79
|
+
[](https://hub.docker.com/r/helmuthva/oe-python-template/)
|
|
80
|
+
[](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template)
|
|
81
|
+
[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template)
|
|
82
|
+
[](https://github.com/codespaces/new/helmut-hoffer-von-ankershoffen/oe-python-template)
|
|
83
|
+
|
|
84
|
+
<!---
|
|
85
|
+
[](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/pkgs/container/oe-python-template)
|
|
86
|
+
[](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/pkgs/container/oe-python-template)
|
|
87
|
+
-->
|
|
88
|
+
|
|
89
|
+
> [!TIP]
|
|
90
|
+
> 📚 [Online documentation](https://oe-python-template.readthedocs.io/en/latest/) - 📖 [PDF Manual](https://oe-python-template.readthedocs.io/_/downloads/en/latest/pdf/)
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
Copier template to scaffold Python projects compliant with best practices and modern tooling.
|
|
95
|
+
|
|
96
|
+
Use Cases:
|
|
97
|
+
1) Fast and easy to use project setup
|
|
98
|
+
2) Consistent update of already scaffolded projects to benefit from new and improved features.
|
|
99
|
+
3) Dummy CLI application and service demonstrating example usage of the generated directory structure and build pipeline
|
|
100
|
+
|
|
101
|
+
## Scaffolding Instructions
|
|
102
|
+
|
|
103
|
+
Step 1: Install uv package manager and copier
|
|
104
|
+
```shell
|
|
105
|
+
if [[ "$OSTYPE" == "darwin"* ]]; then # Install dependencies for macOS X
|
|
106
|
+
if ! command -v brew &> /dev/null; then ## Install Homebrew if not present
|
|
107
|
+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
108
|
+
fi
|
|
109
|
+
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then # Install dependencies for Linux
|
|
110
|
+
sudo apt-get update -y && sudo apt-get install curl -y # Install curl
|
|
111
|
+
fi
|
|
112
|
+
if ! command -v uvx &> /dev/null; then # Install uv package manager if not present
|
|
113
|
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
114
|
+
source $HOME/.local/bin/env
|
|
115
|
+
fi
|
|
116
|
+
uv tool install copier # Install copier as global tool
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
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.
|
|
120
|
+
|
|
121
|
+
Step 3: Scaffold the project
|
|
122
|
+
```shell
|
|
123
|
+
copier copy gh:helmut-hoffer-von-ankershoffen/oe-python-template .
|
|
124
|
+
```
|
|
125
|
+
Step 4: Setup the local environment
|
|
126
|
+
|
|
127
|
+
```shell
|
|
128
|
+
uv run nox -s setup_eev
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Step 5: Perform inital commit and push
|
|
132
|
+
```shell
|
|
133
|
+
git add .
|
|
134
|
+
git commit -m "feat: Initial commit"
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Visit your GitHub repository and check the Actions tab. The CI workflow should fail at the SonarQube step,
|
|
138
|
+
as this external service is not yet configured for our new repository.
|
|
139
|
+
|
|
140
|
+
Step 6: Follow the instructions in SERVICE_CONNECTIONS.md to setup the connections to external services
|
|
141
|
+
such as Cloudcov, SonarQube Cloud, Read The Docs, Docker.io, GHCR.io and Streamlit Community Cloud.
|
|
142
|
+
|
|
143
|
+
Step 7: Release the first versions
|
|
144
|
+
```shell
|
|
145
|
+
./bump
|
|
146
|
+
```
|
|
147
|
+
Notes:
|
|
148
|
+
* You can remove this section post having successfully scafolded your project.
|
|
149
|
+
* The following sections refer to the dummy application and service provided by this template.
|
|
150
|
+
Use them as inspiration and adapt them to your own project.
|
|
151
|
+
|
|
152
|
+
## Overview
|
|
153
|
+
|
|
154
|
+
Adding OE Python Template to your project as a dependency is easy.
|
|
155
|
+
|
|
156
|
+
```shell
|
|
157
|
+
uv add oe-python-template # add dependency to your project
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
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:
|
|
161
|
+
|
|
162
|
+
```shell
|
|
163
|
+
pip install oe-python-template # add dependency to your project
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
Executing the command line interface (CLI) is just as easy:
|
|
167
|
+
|
|
168
|
+
```shell
|
|
169
|
+
uvx oe-python-template
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
The CLI provides extensive help:
|
|
173
|
+
|
|
174
|
+
```shell
|
|
175
|
+
uvx oe-python-template --help # all CLI commands
|
|
176
|
+
uvx oe-python-template command --help # all options for command
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
## Highlights
|
|
181
|
+
|
|
182
|
+
* Copier template to scaffold Python projects compliant with best practices and modern tooling.
|
|
183
|
+
* Various Examples:
|
|
184
|
+
- [Simple Python script]https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/examples/script.py)
|
|
185
|
+
- [Streamlit web application](https://oe-python-template.streamlit.app/) deployed on [Streamlit Community Cloud](https://streamlit.io/cloud)
|
|
186
|
+
- [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
|
|
187
|
+
* [Complete reference documenation](https://oe-python-template.readthedocs.io/en/latest/reference.html) on Read the Docs
|
|
188
|
+
* [Transparent test coverage](https://app.codecov.io/gh/helmut-hoffer-von-ankershoffen/oe-python-template) including unit and E2E tests (reported on Codecov)
|
|
189
|
+
* 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/))
|
|
190
|
+
* Compliant with modern linting and formatting standards (powered by [Ruff](https://github.com/astral-sh/ruff))
|
|
191
|
+
* Up-to-date dependencies (monitored by [Renovate](https://github.com/renovatebot/renovate))
|
|
192
|
+
* [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)
|
|
193
|
+
* 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)
|
|
194
|
+
* Setup for developing inside a [devcontainer](https://code.visualstudio.com/docs/devcontainers/containers) included (supports VSCode and GitHub Codespaces)
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
## Usage Examples
|
|
198
|
+
|
|
199
|
+
### Minimal Python Script:
|
|
200
|
+
|
|
201
|
+
```python
|
|
202
|
+
"""Example script demonstrating the usage of the service provided by OE Python Template."""
|
|
203
|
+
|
|
204
|
+
from dotenv import load_dotenv
|
|
205
|
+
from rich.console import Console
|
|
206
|
+
|
|
207
|
+
from oe_python_template import Service
|
|
208
|
+
|
|
209
|
+
console = Console()
|
|
210
|
+
|
|
211
|
+
load_dotenv()
|
|
212
|
+
|
|
213
|
+
message = Service.get_hello_world()
|
|
214
|
+
console.print(f"[blue]{message}[/blue]")
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
[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)
|
|
218
|
+
|
|
219
|
+
### Streamlit App
|
|
220
|
+
|
|
221
|
+
Serve the functionality provided by OE Python Template in the web by easily integrating the service into a Streamlit application.
|
|
222
|
+
|
|
223
|
+
[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)
|
|
224
|
+
|
|
225
|
+
... or serve the app locally
|
|
226
|
+
```shell
|
|
227
|
+
uv sync --all-extras # Install streamlit dependency part of the examples extra, see pyproject.toml
|
|
228
|
+
uv run streamlit run examples/streamlit.py # Serve on localhost:8501, opens browser
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
## Notebooks
|
|
232
|
+
|
|
233
|
+
### Jupyter
|
|
234
|
+
|
|
235
|
+
[Show the Jupyter code](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/examples/notebook.ipynb)
|
|
236
|
+
|
|
237
|
+
... or run within VSCode
|
|
238
|
+
|
|
239
|
+
```shell
|
|
240
|
+
uv sync --all-extras # Install ipykernel dependency part of the examples extra, see pyproject.toml
|
|
241
|
+
```
|
|
242
|
+
Install the [Jupyter extension for VSCode](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter)
|
|
243
|
+
|
|
244
|
+
Click on `examples/notebook.ipynb` in VSCode and run it.
|
|
245
|
+
|
|
246
|
+
### Marimo
|
|
247
|
+
|
|
248
|
+
[Show the marimo code](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/blob/main/examples/notebook.py)
|
|
249
|
+
|
|
250
|
+
Execute the notebook as a WASM based web app
|
|
251
|
+
|
|
252
|
+
```shell
|
|
253
|
+
uv sync --all-extras # Install ipykernel dependency part of the examples extra, see pyproject.toml
|
|
254
|
+
uv run marimo run examples/notebook.py --watch # Serve on localhost:2718, opens browser
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
or edit interactively in your browser
|
|
258
|
+
|
|
259
|
+
```shell
|
|
260
|
+
uv sync --all-extras # Install ipykernel dependency part of the examples extra, see pyproject.toml
|
|
261
|
+
uv run marimo edit examples/notebook.py --watch # Edit on localhost:2718, opens browser
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
... or edit interactively within VSCode
|
|
265
|
+
|
|
266
|
+
Install the [Marimo extension for VSCode](https://marketplace.visualstudio.com/items?itemName=marimo-team.vscode-marimo)
|
|
267
|
+
|
|
268
|
+
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).
|
|
269
|
+
|
|
270
|
+
## Command Line Interface (CLI)
|
|
271
|
+
|
|
272
|
+
### Run with [uvx](https://docs.astral.sh/uv/guides/tools/)
|
|
273
|
+
|
|
274
|
+
Show available commands:
|
|
275
|
+
|
|
276
|
+
```shell
|
|
277
|
+
uvx oe-python-template --help
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
Execute commands:
|
|
281
|
+
|
|
282
|
+
```shell
|
|
283
|
+
uvx oe-python-template hello-world
|
|
284
|
+
uvx oe-python-template hello-world --json
|
|
285
|
+
uvx oe-python-template echo "Lorem Ipsum"
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
### Environment
|
|
289
|
+
|
|
290
|
+
The service loads environment variables including support for .env files.
|
|
291
|
+
|
|
292
|
+
```shell
|
|
293
|
+
cp .env.example .env # copy example file
|
|
294
|
+
echo "THE_VAR=MY_VALUE" > .env # overwrite with your values
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
Now run the usage examples again.
|
|
298
|
+
|
|
299
|
+
### Run with Docker
|
|
300
|
+
|
|
301
|
+
You can as well run the CLI within Docker.
|
|
302
|
+
|
|
303
|
+
```shell
|
|
304
|
+
docker run helmuthva/oe-python-template --help
|
|
305
|
+
docker run helmuthva/oe-python-template hello-world
|
|
306
|
+
docker run helmuthva/oe-python-template hello-world --json
|
|
307
|
+
docker run helmuthva/oe-python-template echo "Lorem"
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
Execute command:
|
|
311
|
+
|
|
312
|
+
```shell
|
|
313
|
+
docker run --env THE_VAR=MY_VALUE helmuthva/oe-python-template echo "Lorem Ipsum"
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
Or use docker compose
|
|
317
|
+
|
|
318
|
+
The .env is passed through from the host to the Docker container.
|
|
319
|
+
|
|
320
|
+
```shell
|
|
321
|
+
docker compose up
|
|
322
|
+
docker compose run oe-python-template --help
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
## Extra: Lorem Ipsum
|
|
326
|
+
|
|
327
|
+
Dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam.
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
## Further Reading
|
|
331
|
+
|
|
332
|
+
* Check out the [reference](https://oe-python-template.readthedocs.io/en/latest/reference.html) with detailed documentation of public classes and functions.
|
|
333
|
+
* Our [release notes](https://oe-python-template.readthedocs.io/en/latest/release-notes.html) provide a complete log of recent improvements and changes.
|
|
334
|
+
* 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.
|
|
335
|
+
|
|
336
|
+
## Star History
|
|
337
|
+
|
|
338
|
+
<a href="https://star-history.com/#helmut-hoffer-von-ankershoffen/oe-python-template">
|
|
339
|
+
<picture>
|
|
340
|
+
<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" />
|
|
341
|
+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=helmut-hoffer-von-ankershoffen/oe-python-template&type=Date" />
|
|
342
|
+
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=helmut-hoffer-von-ankershoffen/oe-python-template&type=Date" />
|
|
343
|
+
</picture>
|
|
344
|
+
</a>
|