Skip to content

Commit 5a813be

Browse files
chore(deps): update from template
1 parent f934830 commit 5a813be

15 files changed

Lines changed: 99 additions & 25 deletions

File tree

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
_commit: v0.10.5
1+
_commit: v0.10.7
22
_src_path: gh:helmut-hoffer-von-ankershoffen/oe-python-template
33
attestations_enabled: true
44
author_email: helmuthva@gmail.com

.github/workflows/test-and-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
envkey_OE_PYTHON_TEMPLATE_EXAMPLE_SENTRY_DSN: "${{ secrets.OE_PYTHON_TEMPLATE_EXAMPLE_SENTRY_DSN }}"
6060
envkey_OE_PYTHON_TEMPLATE_EXAMPLE_LOGGING_LOG_LEVEL: "DEBUG"
6161
envkey_OE_PYTHON_TEMPLATE_EXAMPLE_LOGGING_LOG_FILE_ENABLED: 1
62-
fail_on_empty: true
62+
fail_on_empty: false
6363

6464
- name: Validate installation
6565
run: |

.github/workflows/test-scheduled.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
envkey_OE_PYTHON_TEMPLATE_EXAMPLE_SENTRY_DSN: "${{ secrets.OE_PYTHON_TEMPLATE_EXAMPLE_SENTRY_DSN }}"
3535
envkey_OE_PYTHON_TEMPLATE_EXAMPLE_LOGGING_LOG_LEVEL: "DEBUG"
3636
envkey_OE_PYTHON_TEMPLATE_EXAMPLE_LOGGING_LOG_FILE_ENABLED: 1
37-
fail_on_empty: true
37+
fail_on_empty: false
3838

3939
- name: Run scheduled tests
4040
run: make test_scheduled

ATTRIBUTIONS.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10521,7 +10521,7 @@ License: LGPL-2.1-or-later
1052110521

1052210522
```
1052310523

10524-
## oe-python-template-example (0.3.6) - MIT License
10524+
## oe-python-template-example (0.3.7) - MIT License
1052510525

1052610526
🧠 Example project scaffolded and kept up to date with OE Python Template (oe-python-template).
1052710527

@@ -27699,6 +27699,41 @@ https://opensource.apple.com/source/tcl/tcl-14/tcl/license.terms
2769927699

2770027700
```
2770127701

27702+
## uptime (3.0.1) - BSD License
27703+
27704+
Cross-platform uptime library
27705+
27706+
* URL: https://github.com/Cairnarvon/uptime
27707+
* Author(s): Koen Crolla
27708+
27709+
### License Text
27710+
27711+
```
27712+
Copyright (c) 2012, Koen Crolla
27713+
All rights reserved.
27714+
27715+
Redistribution and use in source and binary forms, with or without
27716+
modification, are permitted provided that the following conditions are met:
27717+
27718+
1. Redistributions of source code must retain the above copyright notice, this
27719+
list of conditions and the following disclaimer.
27720+
2. Redistributions in binary form must reproduce the above copyright notice,
27721+
this list of conditions and the following disclaimer in the documentation
27722+
and/or other materials provided with the distribution.
27723+
27724+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
27725+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
27726+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27727+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
27728+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27729+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27730+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27731+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27732+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27733+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27734+
27735+
```
27736+
2770227737
## uri-template (1.3.0) - MIT License
2770327738

2770427739
RFC 6570 URI Template Processor

CLI_REFERENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $ oe-python-template-example [OPTIONS] COMMAND [ARGS]...
1414
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
1515
* `--help`: Show this message and exit.
1616

17-
🧠 OE Python Template Example v0.3.6 - built with love in Berlin 🐻
17+
🧠 OE Python Template Example v0.3.7 - built with love in Berlin 🐻
1818

1919
**Commands**:
2020

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Build and run the Docker image with plain Docker
145145

146146
```shell
147147
# Build from Dockerimage
148-
make docker build
148+
make docker_build
149149
# Run the CLI
150150
docker run --env THE_VAR=THE_VALUE oe-python-template-example --help
151151
```

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Projects generated with this template come with a comprehensive development tool
9090

9191
Beyond development tooling, projects generated with this template include the code, documentation, and configuration of a fully functioning application and service. This reference implementation serves as a starting point for your own business logic with modern patterns and enterprise practices already in place:
9292

93-
1. Usable as library with "Hello" module exposing a simple service
93+
1. Usable as library with "Hello" module exposing a simple service that can say "Hello, world!" and echo utterances.
9494
2. Command-line interface (CLI) with [Typer](https://typer.tiangolo.com/)
9595
3. Versioned webservice API with [FastAPI](https://fastapi.tiangolo.com/)
9696
4. [Interactive Jupyter notebook](https://jupyter.org/) and [reactive Marimo notebook](https://marimo.io/)
@@ -100,8 +100,9 @@ Beyond development tooling, projects generated with this template include the co
100100
8. Info command enabling to inspect the runtime, compiled settings, and further info provided dynamically by modules
101101
9. Health endpoint exposing system health dynamically aggregated from all modules and dependencies
102102
10. Flexible logging and instrumentation, including support for [Sentry](https://sentry.io/) and [Logfire](https://logfire.dev/)
103-
11. Modular architecture including auto-registration of services, CLI commands and API routes exposed by modules
104-
12. Documentation including dynamic badges, setup instructions, contribution guide and security policy
103+
11. Hello service demonstrates use of custom real time metrics collected via Logfire
104+
12. Modular architecture including auto-registration of services, CLI commands and API routes exposed by modules
105+
13. Documentation including dynamic badges, setup instructions, contribution guide and security policy
105106

106107
Explore [here](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example) for what's generated out of the box.
107108

compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ services:
33
build: .
44
env_file:
55
- path: .env
6-
required: true
6+
required: false
77
develop:
88
watch:
99
- path: src
@@ -17,7 +17,7 @@ services:
1717
build: .
1818
env_file:
1919
- path: .env
20-
required: true
20+
required: false
2121
develop:
2222
watch:
2323
- path: src

docs/partials/README_main.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Projects generated with this template come with a comprehensive development tool
4343

4444
Beyond development tooling, projects generated with this template include the code, documentation, and configuration of a fully functioning application and service. This reference implementation serves as a starting point for your own business logic with modern patterns and enterprise practices already in place:
4545

46-
1. Usable as library with "Hello" module exposing a simple service
46+
1. Usable as library with "Hello" module exposing a simple service that can say "Hello, world!" and echo utterances.
4747
2. Command-line interface (CLI) with [Typer](https://typer.tiangolo.com/)
4848
3. Versioned webservice API with [FastAPI](https://fastapi.tiangolo.com/)
4949
4. [Interactive Jupyter notebook](https://jupyter.org/) and [reactive Marimo notebook](https://marimo.io/)
@@ -53,8 +53,9 @@ Beyond development tooling, projects generated with this template include the co
5353
8. Info command enabling to inspect the runtime, compiled settings, and further info provided dynamically by modules
5454
9. Health endpoint exposing system health dynamically aggregated from all modules and dependencies
5555
10. Flexible logging and instrumentation, including support for [Sentry](https://sentry.io/) and [Logfire](https://logfire.dev/)
56-
11. Modular architecture including auto-registration of services, CLI commands and API routes exposed by modules
57-
12. Documentation including dynamic badges, setup instructions, contribution guide and security policy
56+
11. Hello service demonstrates use of custom real time metrics collected via Logfire
57+
12. Modular architecture including auto-registration of services, CLI commands and API routes exposed by modules
58+
13. Documentation including dynamic badges, setup instructions, contribution guide and security policy
5859

5960
Explore [here](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example) for what's generated out of the box.
6061

src/oe_python_template_example/hello/_service.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from http import HTTPStatus
66
from typing import Any
77

8+
import logfire
89
import requests
910

1011
from oe_python_template_example.utils import BaseService, Health
@@ -74,6 +75,9 @@ def get_hello_world(self) -> str:
7475
Returns:
7576
str: Hello world message.
7677
"""
78+
messages_sent = logfire.metric_counter("hello_world_messages_sent")
79+
messages_sent.add(1)
80+
7781
match self._settings.language:
7882
case Language.GERMAN:
7983
return HELLO_WORLD_DE_DE

0 commit comments

Comments
 (0)