python-template-project 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.
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.idea/runConfigurations/config_generate.xml +3 -3
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.idea/runConfigurations/module_cli.xml +2 -2
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.idea/runConfigurations/module_gui.xml +1 -1
- {python_template_project-0.2.1 → python_template_project-0.2.3}/HISTORY.md +16 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/Makefile +1 -0
- {python_template_project-0.2.1/src/python_template_project.egg-info → python_template_project-0.2.3}/PKG-INFO +2 -2
- {python_template_project-0.2.1 → python_template_project-0.2.3}/config.yaml +3 -3
- {python_template_project-0.2.1 → python_template_project-0.2.3}/docs/usage/cli.md +11 -11
- {python_template_project-0.2.1 → python_template_project-0.2.3}/docs/usage/config.md +9 -9
- {python_template_project-0.2.1 → python_template_project-0.2.3}/pyproject.toml +1 -1
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project/_version.py +3 -3
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project/cli/cli.py +9 -5
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project/config/config.py +7 -6
- {python_template_project-0.2.1 → python_template_project-0.2.3/src/python_template_project.egg-info}/PKG-INFO +2 -2
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project.egg-info/requires.txt +1 -1
- {python_template_project-0.2.1 → python_template_project-0.2.3}/uv.lock +4 -4
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.github/FUNDING.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.github/actions/setup-environment/action.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.github/dependabot.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.github/init.sh +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.github/release_message.sh +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.github/rename_project.sh +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.github/template.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.github/update_funding.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.github/workflows/build-macos.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.github/workflows/build.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.github/workflows/main.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.github/workflows/release.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.github/workflows/rename_project.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.github/workflows/update_readme.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.gitignore +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.pre-commit-config-linux.yaml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.pre-commit-config.yaml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/.readthedocs.yaml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/LICENSE +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/README.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/docs/.nav.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/docs/_static/img/favicon.png +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/docs/_static/img/logo.png +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/docs/css/custom.css +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/docs/develop/contributing.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/docs/develop/make_windows.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/docs/develop/naming_convention.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/docs/develop/pypi_release.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/docs/funding/funding.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/docs/getting-started/install.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/docs/getting-started/virtual-environment.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/docs/index.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/examples/kuhkopfsteig.gpx +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/examples/rother_lilienstein.gpx +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/examples/teneriffa.gpx +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/mkdocs.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/scripts/generate_config_docs.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/scripts/show_filelist.ps1 +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/scripts/show_tree.ps1 +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/scripts/show_tree.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/scripts/update_readme.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/setup.cfg +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/__init__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/firewall_handler.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/main.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project/__init__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project/__main__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project/cli/__init__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project/cli/__main__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project/config/__init__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project/core/__init__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project/core/base.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project/core/logging.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project/gui/__init__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project/gui/__main__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project/gui/gui.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project.egg-info/SOURCES.txt +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project.egg-info/dependency_links.txt +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project.egg-info/entry_points.txt +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/src/python_template_project.egg-info/top_level.txt +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/template.yml.url +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/tests/__init__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.3}/tests/test_gpx.py +0 -0
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
<env name="PYTHONUNBUFFERED" value="1" />
|
|
9
9
|
</envs>
|
|
10
10
|
<option name="SDK_HOME" value="" />
|
|
11
|
-
<option name="WORKING_DIRECTORY" value="$
|
|
11
|
+
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
|
|
12
12
|
<option name="IS_MODULE_SDK" value="true" />
|
|
13
13
|
<option name="ADD_CONTENT_ROOTS" value="true" />
|
|
14
14
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
|
15
15
|
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
|
16
|
-
<option name="SCRIPT_NAME" value="
|
|
16
|
+
<option name="SCRIPT_NAME" value="python_template_project.config.config" />
|
|
17
17
|
<option name="PARAMETERS" value="" />
|
|
18
18
|
<option name="SHOW_COMMAND_LINE" value="false" />
|
|
19
19
|
<option name="EMULATE_TERMINAL" value="false" />
|
|
20
|
-
<option name="MODULE_MODE" value="
|
|
20
|
+
<option name="MODULE_MODE" value="true" />
|
|
21
21
|
<option name="REDIRECT_INPUT" value="false" />
|
|
22
22
|
<option name="INPUT_FILE" value="" />
|
|
23
23
|
<method v="2" />
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
<env name="PYTHONUNBUFFERED" value="1" />
|
|
9
9
|
</envs>
|
|
10
10
|
<option name="SDK_HOME" value="" />
|
|
11
|
-
<option name="WORKING_DIRECTORY" value="$
|
|
11
|
+
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
|
|
12
12
|
<option name="IS_MODULE_SDK" value="true" />
|
|
13
13
|
<option name="ADD_CONTENT_ROOTS" value="true" />
|
|
14
14
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
|
15
15
|
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
|
16
16
|
<option name="SCRIPT_NAME" value="python_template_project.cli" />
|
|
17
|
-
<option name="PARAMETERS" value="
|
|
17
|
+
<option name="PARAMETERS" value="--elevation False --min_dist 50 examples/teneriffa.gpx" />
|
|
18
18
|
<option name="SHOW_COMMAND_LINE" value="false" />
|
|
19
19
|
<option name="EMULATE_TERMINAL" value="false" />
|
|
20
20
|
<option name="MODULE_MODE" value="true" />
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<env name="PYTHONUNBUFFERED" value="1" />
|
|
9
9
|
</envs>
|
|
10
10
|
<option name="SDK_HOME" value="" />
|
|
11
|
-
<option name="WORKING_DIRECTORY" value="$
|
|
11
|
+
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
|
|
12
12
|
<option name="IS_MODULE_SDK" value="true" />
|
|
13
13
|
<option name="ADD_CONTENT_ROOTS" value="true" />
|
|
14
14
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
|
@@ -4,6 +4,22 @@ Changelog
|
|
|
4
4
|
|
|
5
5
|
(unreleased)
|
|
6
6
|
------------
|
|
7
|
+
- Run precommit before building release for proper formatting. [Paul
|
|
8
|
+
Magister]
|
|
9
|
+
- Valid app_name for cli configuration. [Paul Magister]
|
|
10
|
+
- Proper run configurations. [Paul Magister]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
0.2.2 (2025-11-14)
|
|
14
|
+
------------------
|
|
15
|
+
- Docs: Update HISTORY.md for release 0.2.2. [Paul Magister]
|
|
16
|
+
- Improved cli example, fix elevation cli param problem. [Paul Magister]
|
|
17
|
+
- Update to new config: cli fixes. [Paul Magister]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
0.2.1 (2025-11-14)
|
|
21
|
+
------------------
|
|
22
|
+
- Docs: Update HISTORY.md for release 0.2.1. [Paul Magister]
|
|
7
23
|
- Update to new config: use .value to be type save. [Paul Magister]
|
|
8
24
|
- Contributing.md: troubleshooting make release issue. [Paul Magister]
|
|
9
25
|
- Linux setup details. [paul]
|
|
@@ -119,6 +119,7 @@ virtualenv: ## Create a virtual environment.
|
|
|
119
119
|
|
|
120
120
|
.PHONY: release
|
|
121
121
|
release: ## Create a new tag for release.
|
|
122
|
+
$(MAKE) precommit
|
|
122
123
|
@echo "WARNING: This operation will create a version tag and push to GitHub"
|
|
123
124
|
|
|
124
125
|
# Get the latest Git tag if it exists, otherwise default to 0.0.0 for calculations
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-template-project
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Feature-rich Python project template designed for robustness and ease of use.
|
|
5
5
|
Author: pamagister
|
|
6
6
|
Requires-Python: <3.12,>=3.10
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
License-File: LICENSE
|
|
9
|
-
Requires-Dist: config-cli-gui>=0.2.
|
|
9
|
+
Requires-Dist: config-cli-gui>=0.2.2
|
|
10
10
|
Requires-Dist: fastkml>=1.1.0
|
|
11
11
|
Requires-Dist: gpxpy>=1.6.2
|
|
12
12
|
Requires-Dist: shapely>=2.1.1
|
|
@@ -22,12 +22,12 @@ cli:
|
|
|
22
22
|
extract_waypoints: true
|
|
23
23
|
# Path to input (file or folder) | type=str, default= [CLI]
|
|
24
24
|
input: ''
|
|
25
|
-
# Maximum distance between two waypoints | type=int, default=
|
|
26
|
-
min_dist:
|
|
25
|
+
# Maximum distance between two waypoints | type=int, default=25 [CLI]
|
|
26
|
+
min_dist: 25
|
|
27
27
|
# Path to output destination | type=str, default= [CLI]
|
|
28
28
|
output: ''
|
|
29
29
|
gui:
|
|
30
|
-
# Automatically scroll to newest log entries | type=bool, default=True
|
|
30
|
+
# Automatically scroll to the newest log entries | type=bool, default=True
|
|
31
31
|
auto_scroll_log: true
|
|
32
32
|
# Height of the log window in pixels | type=int, default=200
|
|
33
33
|
log_window_height: 200
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Command Line Interface
|
|
2
2
|
|
|
3
|
-
Command line options for
|
|
3
|
+
Command line options for python_template_project
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
python -m
|
|
6
|
+
python -m python_template_project [OPTIONS] input
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
## Options
|
|
@@ -12,7 +12,7 @@ python -m app [OPTIONS] input
|
|
|
12
12
|
|-----------------------|------|---------------------------------------------------|------------|---------------|
|
|
13
13
|
| `input` | str | Path to input (file or folder) | *required* | - |
|
|
14
14
|
| `--output` | str | Path to output destination | *required* | - |
|
|
15
|
-
| `--min_dist` | int | Maximum distance between two waypoints |
|
|
15
|
+
| `--min_dist` | int | Maximum distance between two waypoints | 25 | - |
|
|
16
16
|
| `--extract_waypoints` | bool | Extract starting points of each track as waypoint | True | [True, False] |
|
|
17
17
|
| `--elevation` | bool | Include elevation data in waypoints | True | [True, False] |
|
|
18
18
|
|
|
@@ -23,37 +23,37 @@ python -m app [OPTIONS] input
|
|
|
23
23
|
### 1. Basic usage
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
python -m
|
|
26
|
+
python -m python_template_project input
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
### 2. With verbose logging
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
|
-
python -m
|
|
33
|
-
python -m
|
|
32
|
+
python -m python_template_project -v input
|
|
33
|
+
python -m python_template_project --verbose input
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
### 3. With quiet mode
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
python -m
|
|
40
|
-
python -m
|
|
39
|
+
python -m python_template_project -q input
|
|
40
|
+
python -m python_template_project --quiet input
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
### 4. With min_dist parameter
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
|
-
python -m
|
|
46
|
+
python -m python_template_project --min_dist 25 input
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
### 5. With extract_waypoints parameter
|
|
50
50
|
|
|
51
51
|
```bash
|
|
52
|
-
python -m
|
|
52
|
+
python -m python_template_project --extract_waypoints True input
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
### 6. With elevation parameter
|
|
56
56
|
|
|
57
57
|
```bash
|
|
58
|
-
python -m
|
|
58
|
+
python -m python_template_project --elevation True input
|
|
59
59
|
```
|
|
@@ -9,7 +9,7 @@ The parameters in the cli category can be accessed via the command line interfac
|
|
|
9
9
|
|-------------------|------|---------------------------------------------------|---------|---------------|
|
|
10
10
|
| input | str | Path to input (file or folder) | '' | - |
|
|
11
11
|
| output | str | Path to output destination | '' | - |
|
|
12
|
-
| min_dist | int | Maximum distance between two waypoints |
|
|
12
|
+
| min_dist | int | Maximum distance between two waypoints | 25 | - |
|
|
13
13
|
| extract_waypoints | bool | Extract starting points of each track as waypoint | True | [True, False] |
|
|
14
14
|
| elevation | bool | Include elevation data in waypoints | True | [True, False] |
|
|
15
15
|
|
|
@@ -28,12 +28,12 @@ The parameters in the cli category can be accessed via the command line interfac
|
|
|
28
28
|
|
|
29
29
|
## Category "gui"
|
|
30
30
|
|
|
31
|
-
| Name | Type | Description
|
|
32
|
-
|
|
33
|
-
| theme | str | GUI theme setting
|
|
34
|
-
| window_width | int | Default window width
|
|
35
|
-
| window_height | int | Default window height
|
|
36
|
-
| log_window_height | int | Height of the log window in pixels
|
|
37
|
-
| auto_scroll_log | bool | Automatically scroll to newest log entries | True | [True, False] |
|
|
38
|
-
| max_log_lines | int | Maximum number of log lines to keep in GUI
|
|
31
|
+
| Name | Type | Description | Default | Choices |
|
|
32
|
+
|-------------------|------|------------------------------------------------|---------|---------------------------|
|
|
33
|
+
| theme | str | GUI theme setting | 'light' | ['light', 'dark', 'auto'] |
|
|
34
|
+
| window_width | int | Default window width | 800 | - |
|
|
35
|
+
| window_height | int | Default window height | 600 | - |
|
|
36
|
+
| log_window_height | int | Height of the log window in pixels | 200 | - |
|
|
37
|
+
| auto_scroll_log | bool | Automatically scroll to the newest log entries | True | [True, False] |
|
|
38
|
+
| max_log_lines | int | Maximum number of log lines to keep in GUI | 1000 | - |
|
|
39
39
|
|
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '0.2.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 2,
|
|
31
|
+
__version__ = version = '0.2.3'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 2, 3)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'g05d198f46'
|
|
@@ -12,7 +12,7 @@ from python_template_project.core.base import BaseGPXProcessor
|
|
|
12
12
|
from python_template_project.core.logging import initialize_logging
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
def validate_config(config: ConfigParameterManager
|
|
15
|
+
def validate_config(config: ConfigParameterManager) -> bool:
|
|
16
16
|
"""Validate the configuration parameters.
|
|
17
17
|
|
|
18
18
|
Args:
|
|
@@ -22,6 +22,10 @@ def validate_config(config: ConfigParameterManager, logger) -> bool:
|
|
|
22
22
|
Returns:
|
|
23
23
|
True if configuration is valid, False otherwise
|
|
24
24
|
"""
|
|
25
|
+
# Initialize logging system
|
|
26
|
+
logger_manager = initialize_logging(config)
|
|
27
|
+
logger = logger_manager.get_logger("python_template_project.cli")
|
|
28
|
+
|
|
25
29
|
# Get CLI category and check required parameters
|
|
26
30
|
cli_category = config.cli
|
|
27
31
|
if not cli_category:
|
|
@@ -63,16 +67,16 @@ def run_main_processing(config: ConfigParameterManager) -> int:
|
|
|
63
67
|
logger_manager.log_config_summary()
|
|
64
68
|
|
|
65
69
|
# Validate configuration
|
|
66
|
-
if not validate_config(config
|
|
70
|
+
if not validate_config(config):
|
|
67
71
|
logger.error("Configuration validation failed")
|
|
68
72
|
return 1
|
|
69
73
|
|
|
70
|
-
# Get
|
|
74
|
+
# Get parameters with cli overrides
|
|
71
75
|
cli_category = config.cli
|
|
72
76
|
input_file = cli_category.input.value
|
|
73
77
|
output_file = cli_category.output.value
|
|
74
78
|
min_dist = cli_category.min_dist.value
|
|
75
|
-
|
|
79
|
+
elevation = cli_category.elevation.value
|
|
76
80
|
|
|
77
81
|
# Get app parameters
|
|
78
82
|
app_category = config.app
|
|
@@ -86,7 +90,7 @@ def run_main_processing(config: ConfigParameterManager) -> int:
|
|
|
86
90
|
output=output_file,
|
|
87
91
|
min_dist=min_dist,
|
|
88
92
|
date_format=date_format,
|
|
89
|
-
elevation=
|
|
93
|
+
elevation=elevation,
|
|
90
94
|
logger=logger,
|
|
91
95
|
)
|
|
92
96
|
|
|
@@ -34,7 +34,7 @@ class CliConfig(ConfigCategory):
|
|
|
34
34
|
|
|
35
35
|
min_dist: ConfigParameter = ConfigParameter(
|
|
36
36
|
name="min_dist",
|
|
37
|
-
value=
|
|
37
|
+
value=25,
|
|
38
38
|
help="Maximum distance between two waypoints",
|
|
39
39
|
is_cli=True,
|
|
40
40
|
)
|
|
@@ -145,7 +145,7 @@ class GuiConfig(ConfigCategory):
|
|
|
145
145
|
auto_scroll_log: ConfigParameter = ConfigParameter(
|
|
146
146
|
name="auto_scroll_log",
|
|
147
147
|
value=True,
|
|
148
|
-
help="Automatically scroll to newest log entries",
|
|
148
|
+
help="Automatically scroll to the newest log entries",
|
|
149
149
|
)
|
|
150
150
|
|
|
151
151
|
max_log_lines: ConfigParameter = ConfigParameter(
|
|
@@ -170,9 +170,10 @@ class ConfigParameterManager(ConfigManager): # Inherit from ConfigManager
|
|
|
170
170
|
|
|
171
171
|
def main():
|
|
172
172
|
"""Main function to generate config file and documentation."""
|
|
173
|
-
default_config: str = "
|
|
174
|
-
default_cli_doc: str = "
|
|
175
|
-
default_config_doc: str = "
|
|
173
|
+
default_config: str = "config.yaml"
|
|
174
|
+
default_cli_doc: str = "docs/usage/cli.md"
|
|
175
|
+
default_config_doc: str = "docs/usage/config.md"
|
|
176
|
+
app_name = "python_template_project"
|
|
176
177
|
config_manager = ConfigParameterManager()
|
|
177
178
|
doc_gen = DocumentationGenerator(config_manager)
|
|
178
179
|
doc_gen.generate_default_config_file(output_file=default_config)
|
|
@@ -181,7 +182,7 @@ def main():
|
|
|
181
182
|
doc_gen.generate_config_markdown_doc(output_file=default_config_doc)
|
|
182
183
|
print(f"Generated: {default_config_doc}")
|
|
183
184
|
|
|
184
|
-
doc_gen.generate_cli_markdown_doc(output_file=default_cli_doc)
|
|
185
|
+
doc_gen.generate_cli_markdown_doc(output_file=default_cli_doc, app_name=app_name)
|
|
185
186
|
print(f"Generated: {default_cli_doc}")
|
|
186
187
|
|
|
187
188
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-template-project
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Feature-rich Python project template designed for robustness and ease of use.
|
|
5
5
|
Author: pamagister
|
|
6
6
|
Requires-Python: <3.12,>=3.10
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
License-File: LICENSE
|
|
9
|
-
Requires-Dist: config-cli-gui>=0.2.
|
|
9
|
+
Requires-Dist: config-cli-gui>=0.2.2
|
|
10
10
|
Requires-Dist: fastkml>=1.1.0
|
|
11
11
|
Requires-Dist: gpxpy>=1.6.2
|
|
12
12
|
Requires-Dist: shapely>=2.1.1
|
|
@@ -148,15 +148,15 @@ wheels = [
|
|
|
148
148
|
|
|
149
149
|
[[package]]
|
|
150
150
|
name = "config-cli-gui"
|
|
151
|
-
version = "0.2.
|
|
151
|
+
version = "0.2.2"
|
|
152
152
|
source = { registry = "https://pypi.org/simple" }
|
|
153
153
|
dependencies = [
|
|
154
154
|
{ name = "pydantic" },
|
|
155
155
|
{ name = "pyyaml" },
|
|
156
156
|
]
|
|
157
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
157
|
+
sdist = { url = "https://files.pythonhosted.org/packages/66/45/3e723a140449dc05de9587ed335a93a5def3540de51822da5b977c5badc8/config_cli_gui-0.2.2.tar.gz", hash = "sha256:de8c4af7fad13e85ec4ace0665212a72dbe4639d1be0b7b3c6155a631673ae74", size = 134050, upload-time = "2025-11-14T14:51:54.384Z" }
|
|
158
158
|
wheels = [
|
|
159
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
159
|
+
{ url = "https://files.pythonhosted.org/packages/8b/91/8a28d11d08d6c0e2022f4a77fec0d45e9af5c7aae2f80db4c8527fec7a73/config_cli_gui-0.2.2-py3-none-any.whl", hash = "sha256:198ca3874d772871cc6275af1d6d5e0794df618babd62b9e0911f8fd189dd196", size = 17213, upload-time = "2025-11-14T14:51:53.129Z" },
|
|
160
160
|
]
|
|
161
161
|
|
|
162
162
|
[[package]]
|
|
@@ -871,7 +871,7 @@ docs = [
|
|
|
871
871
|
[package.metadata]
|
|
872
872
|
requires-dist = [
|
|
873
873
|
{ name = "black", marker = "extra == 'dev'", specifier = ">=25.1.0" },
|
|
874
|
-
{ name = "config-cli-gui", specifier = ">=0.2.
|
|
874
|
+
{ name = "config-cli-gui", specifier = ">=0.2.2" },
|
|
875
875
|
{ name = "coverage", marker = "extra == 'dev'", specifier = ">=7.8.2" },
|
|
876
876
|
{ name = "fastkml", specifier = ">=1.1.0" },
|
|
877
877
|
{ name = "flake8", marker = "extra == 'dev'", specifier = ">=7.2.0" },
|
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.3}/.github/ISSUE_TEMPLATE/bug_report.md
RENAMED
|
File without changes
|
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.3}/.github/PULL_REQUEST_TEMPLATE.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.3}/.github/workflows/build-macos.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.3}/.github/workflows/release.yml
RENAMED
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.3}/.github/workflows/rename_project.yml
RENAMED
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.3}/.github/workflows/update_readme.yml
RENAMED
|
File without changes
|
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.3}/.pre-commit-config-linux.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.3}/docs/_static/img/favicon.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.3}/docs/develop/contributing.md
RENAMED
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.3}/docs/develop/make_windows.md
RENAMED
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.3}/docs/develop/naming_convention.md
RENAMED
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.3}/docs/develop/pypi_release.md
RENAMED
|
File without changes
|
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.3}/docs/getting-started/install.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.3}/examples/rother_lilienstein.gpx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.3}/scripts/generate_config_docs.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|