python-template-project 0.2.1__tar.gz → 0.2.2__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.2}/.idea/runConfigurations/module_cli.xml +1 -1
- {python_template_project-0.2.1 → python_template_project-0.2.2}/HISTORY.md +7 -0
- {python_template_project-0.2.1/src/python_template_project.egg-info → python_template_project-0.2.2}/PKG-INFO +2 -2
- {python_template_project-0.2.1 → python_template_project-0.2.2}/pyproject.toml +1 -1
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/_version.py +3 -3
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/cli/cli.py +9 -5
- {python_template_project-0.2.1 → python_template_project-0.2.2/src/python_template_project.egg-info}/PKG-INFO +2 -2
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project.egg-info/requires.txt +1 -1
- {python_template_project-0.2.1 → python_template_project-0.2.2}/uv.lock +4 -4
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/FUNDING.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/actions/setup-environment/action.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/dependabot.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/init.sh +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/release_message.sh +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/rename_project.sh +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/template.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/update_funding.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/workflows/build-macos.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/workflows/build.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/workflows/main.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/workflows/release.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/workflows/rename_project.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/workflows/update_readme.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.gitignore +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.idea/runConfigurations/config_generate.xml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.idea/runConfigurations/module_gui.xml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.pre-commit-config-linux.yaml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.pre-commit-config.yaml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/.readthedocs.yaml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/LICENSE +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/Makefile +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/README.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/config.yaml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/.nav.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/_static/img/favicon.png +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/_static/img/logo.png +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/css/custom.css +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/develop/contributing.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/develop/make_windows.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/develop/naming_convention.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/develop/pypi_release.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/funding/funding.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/getting-started/install.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/getting-started/virtual-environment.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/index.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/usage/cli.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/usage/config.md +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/examples/kuhkopfsteig.gpx +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/examples/rother_lilienstein.gpx +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/examples/teneriffa.gpx +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/mkdocs.yml +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/scripts/generate_config_docs.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/scripts/show_filelist.ps1 +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/scripts/show_tree.ps1 +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/scripts/show_tree.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/scripts/update_readme.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/setup.cfg +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/__init__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/firewall_handler.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/main.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/__init__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/__main__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/cli/__init__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/cli/__main__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/config/__init__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/config/config.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/core/__init__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/core/base.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/core/logging.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/gui/__init__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/gui/__main__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/gui/gui.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project.egg-info/SOURCES.txt +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project.egg-info/dependency_links.txt +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project.egg-info/entry_points.txt +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project.egg-info/top_level.txt +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/template.yml.url +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/tests/__init__.py +0 -0
- {python_template_project-0.2.1 → python_template_project-0.2.2}/tests/test_gpx.py +0 -0
|
@@ -14,7 +14,7 @@
|
|
|
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" />
|
|
@@ -4,6 +4,13 @@ Changelog
|
|
|
4
4
|
|
|
5
5
|
(unreleased)
|
|
6
6
|
------------
|
|
7
|
+
- Improved cli example, fix elevation cli param problem. [Paul Magister]
|
|
8
|
+
- Update to new config: cli fixes. [Paul Magister]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
0.2.1 (2025-11-14)
|
|
12
|
+
------------------
|
|
13
|
+
- Docs: Update HISTORY.md for release 0.2.1. [Paul Magister]
|
|
7
14
|
- Update to new config: use .value to be type save. [Paul Magister]
|
|
8
15
|
- Contributing.md: troubleshooting make release issue. [Paul Magister]
|
|
9
16
|
- Linux setup details. [paul]
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-template-project
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
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
|
|
@@ -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.2'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 2, 2)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'g43e51a5fe'
|
|
@@ -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
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-template-project
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
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.2}/.github/ISSUE_TEMPLATE/bug_report.md
RENAMED
|
File without changes
|
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.2}/.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.2}/.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.2}/.github/workflows/release.yml
RENAMED
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.2}/.github/workflows/rename_project.yml
RENAMED
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.2}/.github/workflows/update_readme.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.2}/.pre-commit-config-linux.yaml
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.2}/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.2}/docs/develop/contributing.md
RENAMED
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.2}/docs/develop/make_windows.md
RENAMED
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.2}/docs/develop/naming_convention.md
RENAMED
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.2}/docs/develop/pypi_release.md
RENAMED
|
File without changes
|
|
File without changes
|
{python_template_project-0.2.1 → python_template_project-0.2.2}/docs/getting-started/install.md
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.2}/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.2}/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
|
|
File without changes
|