oe-python-template 0.6.22__py3-none-any.whl → 0.6.24__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oe-python-template
3
- Version: 0.6.22
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
- Use Cases:
107
- 1) Fast and easy generation of Python projects from this template
108
- 2) Seamless updates of projects when improvements to the template are released
109
- 3) Generates a fully-functional Python package with test and build automation featuring
110
- - Service architecture suiteable for use as shared library
111
- - Command-line interface (CLI)
112
- - Versioned Web API
113
- - Integration examples with Notebooks and Dashboards
114
- - Complete developer-tooling with formatting, linting, type checking etc.
115
- - CI/CD pipeline for GitHub, PyPI, and Docker registries
116
- - Unit and E2E tests including parallel and matrix-testing
117
- - Release artifacts include SBOM, license information, and test coverage
118
- - Auto-generated documentation published to Read The Docs
119
- - Service integrations monitoring code quality, dependencies, and security
120
-
121
- ## Scaffolding
122
-
123
- **Step 1**: Install uv package manager and copier
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**: Now create an empty repository on GitHub, clone to your local machine, and change into it's directory.
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**: Scaffold the project
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 Cloudcov, SonarQube Cloud, Read The Docs, Docker.io, GHCR.io and Streamlit Community Cloud.
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 scafolded your project.
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 [GitHub Dependabot](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/security/dependabot))
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 [GitHub CodeQL](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template/security/code-scanning)
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)
@@ -3,8 +3,8 @@ oe_python_template/api.py,sha256=-7d4cLPHmdLZSkzu6UOaCp9hUO0Aq8MNq8uEZuiW9Y4,625
3
3
  oe_python_template/cli.py,sha256=jvIPeJzx9esff7-M5pBe2R3vvmpxRvxKIre1VOGndls,3426
4
4
  oe_python_template/constants.py,sha256=Z1c06l5DeRuFxYVLHihHHTYvr8_Qh0nyzVKOe5X3ZNs,350
5
5
  oe_python_template/service.py,sha256=Gd-B9IIZ1vB1uONVJHA65hPnfeYeKUIcnU3rZbU2lGs,744
6
- oe_python_template-0.6.22.dist-info/METADATA,sha256=wxHhwDOGwkJha3y5SB5fd-QizmJUNiVTAWl2v8BAo14,22571
7
- oe_python_template-0.6.22.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
- oe_python_template-0.6.22.dist-info/entry_points.txt,sha256=IroSSWhLGxus9rxcashkYQda39TTvf7LbUMYtOKXUBE,66
9
- oe_python_template-0.6.22.dist-info/licenses/LICENSE,sha256=5H409K6xzz9U5eUaoAHQExNkoWJRlU0LEj6wL2QJ34s,1113
10
- oe_python_template-0.6.22.dist-info/RECORD,,
6
+ oe_python_template-0.6.24.dist-info/METADATA,sha256=WQhV0W3Y43o6Xg91hFDaNfY8eXirKhJCfwF3C49XkuE,26333
7
+ oe_python_template-0.6.24.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
+ oe_python_template-0.6.24.dist-info/entry_points.txt,sha256=IroSSWhLGxus9rxcashkYQda39TTvf7LbUMYtOKXUBE,66
9
+ oe_python_template-0.6.24.dist-info/licenses/LICENSE,sha256=5H409K6xzz9U5eUaoAHQExNkoWJRlU0LEj6wL2QJ34s,1113
10
+ oe_python_template-0.6.24.dist-info/RECORD,,