oe-python-template-example 0.2.10__py3-none-any.whl → 0.2.12__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.
@@ -41,7 +41,7 @@ def get_service() -> Generator[Service, None, None]:
41
41
  pass
42
42
 
43
43
 
44
- api = FastAPI(
44
+ app = FastAPI(
45
45
  root_path="/api",
46
46
  title=TITLE,
47
47
  contact={
@@ -177,5 +177,5 @@ async def echo_v2(request: Utterance) -> Echo:
177
177
  return Service.echo(request)
178
178
 
179
179
 
180
- api.mount("/v1", api_v1)
181
- api.mount("/v2", api_v2)
180
+ app.mount("/v1", api_v1)
181
+ app.mount("/v2", api_v2)
@@ -66,7 +66,7 @@ def serve(
66
66
  os.environ["UVICORN_HOST"] = host
67
67
  os.environ["UVICORN_PORT"] = str(port)
68
68
  uvicorn.run(
69
- "oe_python_template_example.api:api",
69
+ "oe_python_template_example.api:app",
70
70
  host=host,
71
71
  port=port,
72
72
  reload=watch,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oe-python-template-example
3
- Version: 0.2.10
3
+ Version: 0.2.12
4
4
  Summary: 🧠 Example project scaffolded and kept up to date with OE Python Template (oe-python-template).
5
5
  Project-URL: Homepage, https://oe-python-template-example.readthedocs.io/en/latest/
6
6
  Project-URL: Documentation, https://oe-python-template-example.readthedocs.io/en/latest/
@@ -126,19 +126,20 @@ Projects generated with this template come with a comprehensive development tool
126
126
  7. CI/CD pipeline automated with [GitHub Actions](https://github.com/features/actions)
127
127
  8. CI/CD pipeline can be run locally with [act](https://github.com/nektos/act)
128
128
  9. Code quality and security checks with [SonarQube](https://www.sonarsource.com/products/sonarcloud) and [GitHub CodeQL](https://codeql.github.com/)
129
- 10. 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)
130
- 11. 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
131
- 12. Software Bill of Materials (SBOM) generated with [cyclonedx-python](https://github.com/CycloneDX/cyclonedx-python) and published as release artifact
132
- 13. Version and release management with [bump-my-version](https://callowayproject.github.io/bump-my-version/)
133
- 14. Changelog and release notes generated with [git-cliff](https://git-cliff.org/)
134
- 15. Documentation generated with [Sphinx](https://www.sphinx-doc.org/en/master/) including reference documentation and PDF export
135
- 16. Documentation published to [Read The Docs](https://readthedocs.org/)
136
- 17. Interactive OpenAPI specification with [Swagger](https://swagger.io/)
137
- 18. Python package published to [PyPI](https://pypi.org/)
138
- 19. 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)
139
- 20. One-click development environments with [Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers) and [GitHub Codespaces](https://github.com/features/codespaces)
140
- 21. Settings for use with [VSCode](https://code.visualstudio.com/)
141
- 22. Settings and custom instructions for use with [GitHub Copilot](https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot)
129
+ 10. Dependency monitoring and vulnerability scanning with [pip-audit](https://pypi.org/project/pip-audit/), [trivy](https://trivy.dev/latest/), [Renovate](https://github.com/renovatebot/renovate), and [GitHub Dependabot](https://docs.github.com/en/code-security/getting-started/dependabot-quickstart-guide)
130
+ 11. Licenses of dependencies extracted with [pip-licenses](https://pypi.org/project/pip-licenses/), matched with allow list, and published as release artifacts in CSV and JSON format for further compliance checks
131
+ 12. Generation of attributions from extracted licenses
132
+ 13. Software Bill of Materials (SBOM) generated in [CycloneDX](https://cyclonedx.org/) and [SPDX](https://spdx.dev/) formats with [cyclonedx-python](https://github.com/CycloneDX/cyclonedx-python) resp. [trivy](https://trivy.dev/latest/), published as release artifacts
133
+ 14. Version and release management with [bump-my-version](https://callowayproject.github.io/bump-my-version/)
134
+ 15. Changelog and release notes generated with [git-cliff](https://git-cliff.org/)
135
+ 16. Documentation generated with [Sphinx](https://www.sphinx-doc.org/en/master/) including reference documentation and PDF export
136
+ 17. Documentation published to [Read The Docs](https://readthedocs.org/)
137
+ 18. Interactive OpenAPI specification with [Swagger](https://swagger.io/)
138
+ 19. Python package published to [PyPI](https://pypi.org/)
139
+ 20. 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)
140
+ 21. One-click development environments with [Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers) and [GitHub Codespaces](https://github.com/features/codespaces)
141
+ 22. Settings for use with [VSCode](https://code.visualstudio.com/)
142
+ 23. Settings and custom instructions for use with [GitHub Copilot](https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot)
142
143
 
143
144
  ### Application Features
144
145
 
@@ -152,6 +153,7 @@ Beyond development tooling, projects generated with this template include the co
152
153
  6. Simple Web UI with [Streamlit](https://streamlit.io/)
153
154
  7. 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/)
154
155
  8. Documentation including badges, setup instructions, contribution guide and security policy
156
+ 9. Preparation to deploy API as serverless function to Vercel
155
157
 
156
158
  Explore [here](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example) for what's generated out of the box.
157
159
 
@@ -302,6 +304,11 @@ uv sync --all-extras # Install streamlit dependen
302
304
  uv run streamlit run examples/streamlit.py # Serve on localhost:8501, opens browser
303
305
  ```
304
306
 
307
+ ### Vercel Serverless Function
308
+
309
+ Serve the API as a [serverless function on Vercel](https://oe-python-template-example.vercel.app/)
310
+
311
+
305
312
  ## Notebooks
306
313
 
307
314
  ### Jupyter
@@ -444,9 +451,11 @@ Nothing yet
444
451
 
445
452
  ## Further Reading
446
453
 
447
- * Check out the [reference](https://oe-python-template-example.readthedocs.io/en/latest/reference.html) with detailed documentation of public classes and functions.
454
+ * Inspect our [security policy](https://oe-python-template-example.readthedocs.io/en/latest/security.html) with detailed documentation of checks, tools and principles.
448
455
  * Our [release notes](https://oe-python-template-example.readthedocs.io/en/latest/release-notes.html) provide a complete log of recent improvements and changes.
456
+ * Check out the [reference](https://oe-python-template-example.readthedocs.io/en/latest/reference.html) with detailed documentation of public classes and functions.
449
457
  * In case you want to help us improve 🧠 OE Python Template Example: The [contribution guidelines](https://oe-python-template-example.readthedocs.io/en/latest/contributing.html) explain how to setup your development environment and create pull requests.
458
+ * We gratefully acknowledge the [open source projects](ATTRIBUTIONS.md) that this project builds upon. Thank you to all these wonderful contributors!
450
459
 
451
460
  ## Star History
452
461
 
@@ -1,12 +1,12 @@
1
1
  oe_python_template_example/__init__.py,sha256=Ks3KjkBuzEO1gaezabSfal_WVOsJbuweHwRCs58oRv4,435
2
- oe_python_template_example/api.py,sha256=_4-Xauw5jA9a6VPTJ5RBjBcbB7gd6Pn585b5OULF13A,5034
3
- oe_python_template_example/cli.py,sha256=xqIiE2iYkzkGIj9g94ISolGmRd09gxyjbyKhSV1OStM,3761
2
+ oe_python_template_example/api.py,sha256=jP3nVgU06OHK0F9oi3h5_xZRWYsAu2fF80ezGshLk70,5034
3
+ oe_python_template_example/cli.py,sha256=0Du3lJATAT1Gnh02WuJuGfHAbL0eYD7YZNvVP47_mNQ,3761
4
4
  oe_python_template_example/constants.py,sha256=6uQHr2CRgzWQWhUQCRRKiPuFhzKB2iblZk3dIRQ5dDc,358
5
5
  oe_python_template_example/models.py,sha256=IbegPBFJq0OCAWS70V-ozl6coMd0dC2OsHZY-nIumGs,846
6
6
  oe_python_template_example/service.py,sha256=2bxTQH9JeM4ugoQMpTp-pOdANOSZ0HZrQc4JpJzXBqg,1650
7
7
  oe_python_template_example/settings.py,sha256=mQu7Bl2EhR6taQLqbaK1s86Ngn3kLVeEoMyhCqbydig,751
8
- oe_python_template_example-0.2.10.dist-info/METADATA,sha256=SDNrgoCZoGOc5HYHUcCsZ4UsECYcMQUfvAWoDJ1qKCU,28971
9
- oe_python_template_example-0.2.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
- oe_python_template_example-0.2.10.dist-info/entry_points.txt,sha256=S2eCPB45b1Wgj_GsDRFAN-e4h7dBA5UPxT8od98erDE,82
11
- oe_python_template_example-0.2.10.dist-info/licenses/LICENSE,sha256=5H409K6xzz9U5eUaoAHQExNkoWJRlU0LEj6wL2QJ34s,1113
12
- oe_python_template_example-0.2.10.dist-info/RECORD,,
8
+ oe_python_template_example-0.2.12.dist-info/METADATA,sha256=NEPXbbspobLezIrlQ8A-Iam8wVDCKKxFAaLyBUR7wXo,29752
9
+ oe_python_template_example-0.2.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
+ oe_python_template_example-0.2.12.dist-info/entry_points.txt,sha256=S2eCPB45b1Wgj_GsDRFAN-e4h7dBA5UPxT8od98erDE,82
11
+ oe_python_template_example-0.2.12.dist-info/licenses/LICENSE,sha256=5H409K6xzz9U5eUaoAHQExNkoWJRlU0LEj6wL2QJ34s,1113
12
+ oe_python_template_example-0.2.12.dist-info/RECORD,,