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.
Files changed (82) hide show
  1. {python_template_project-0.2.1 → python_template_project-0.2.2}/.idea/runConfigurations/module_cli.xml +1 -1
  2. {python_template_project-0.2.1 → python_template_project-0.2.2}/HISTORY.md +7 -0
  3. {python_template_project-0.2.1/src/python_template_project.egg-info → python_template_project-0.2.2}/PKG-INFO +2 -2
  4. {python_template_project-0.2.1 → python_template_project-0.2.2}/pyproject.toml +1 -1
  5. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/_version.py +3 -3
  6. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/cli/cli.py +9 -5
  7. {python_template_project-0.2.1 → python_template_project-0.2.2/src/python_template_project.egg-info}/PKG-INFO +2 -2
  8. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project.egg-info/requires.txt +1 -1
  9. {python_template_project-0.2.1 → python_template_project-0.2.2}/uv.lock +4 -4
  10. {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/FUNDING.yml +0 -0
  11. {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  12. {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  13. {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  14. {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/actions/setup-environment/action.yml +0 -0
  15. {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/dependabot.yml +0 -0
  16. {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/init.sh +0 -0
  17. {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/release_message.sh +0 -0
  18. {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/rename_project.sh +0 -0
  19. {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/template.yml +0 -0
  20. {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/update_funding.py +0 -0
  21. {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/workflows/build-macos.yml +0 -0
  22. {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/workflows/build.yml +0 -0
  23. {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/workflows/main.yml +0 -0
  24. {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/workflows/release.yml +0 -0
  25. {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/workflows/rename_project.yml +0 -0
  26. {python_template_project-0.2.1 → python_template_project-0.2.2}/.github/workflows/update_readme.yml +0 -0
  27. {python_template_project-0.2.1 → python_template_project-0.2.2}/.gitignore +0 -0
  28. {python_template_project-0.2.1 → python_template_project-0.2.2}/.idea/runConfigurations/config_generate.xml +0 -0
  29. {python_template_project-0.2.1 → python_template_project-0.2.2}/.idea/runConfigurations/module_gui.xml +0 -0
  30. {python_template_project-0.2.1 → python_template_project-0.2.2}/.pre-commit-config-linux.yaml +0 -0
  31. {python_template_project-0.2.1 → python_template_project-0.2.2}/.pre-commit-config.yaml +0 -0
  32. {python_template_project-0.2.1 → python_template_project-0.2.2}/.readthedocs.yaml +0 -0
  33. {python_template_project-0.2.1 → python_template_project-0.2.2}/LICENSE +0 -0
  34. {python_template_project-0.2.1 → python_template_project-0.2.2}/Makefile +0 -0
  35. {python_template_project-0.2.1 → python_template_project-0.2.2}/README.md +0 -0
  36. {python_template_project-0.2.1 → python_template_project-0.2.2}/config.yaml +0 -0
  37. {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/.nav.yml +0 -0
  38. {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/_static/img/favicon.png +0 -0
  39. {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/_static/img/logo.png +0 -0
  40. {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/css/custom.css +0 -0
  41. {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/develop/contributing.md +0 -0
  42. {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/develop/make_windows.md +0 -0
  43. {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/develop/naming_convention.md +0 -0
  44. {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/develop/pypi_release.md +0 -0
  45. {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/funding/funding.md +0 -0
  46. {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/getting-started/install.md +0 -0
  47. {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/getting-started/virtual-environment.md +0 -0
  48. {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/index.md +0 -0
  49. {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/usage/cli.md +0 -0
  50. {python_template_project-0.2.1 → python_template_project-0.2.2}/docs/usage/config.md +0 -0
  51. {python_template_project-0.2.1 → python_template_project-0.2.2}/examples/kuhkopfsteig.gpx +0 -0
  52. {python_template_project-0.2.1 → python_template_project-0.2.2}/examples/rother_lilienstein.gpx +0 -0
  53. {python_template_project-0.2.1 → python_template_project-0.2.2}/examples/teneriffa.gpx +0 -0
  54. {python_template_project-0.2.1 → python_template_project-0.2.2}/mkdocs.yml +0 -0
  55. {python_template_project-0.2.1 → python_template_project-0.2.2}/scripts/generate_config_docs.py +0 -0
  56. {python_template_project-0.2.1 → python_template_project-0.2.2}/scripts/show_filelist.ps1 +0 -0
  57. {python_template_project-0.2.1 → python_template_project-0.2.2}/scripts/show_tree.ps1 +0 -0
  58. {python_template_project-0.2.1 → python_template_project-0.2.2}/scripts/show_tree.py +0 -0
  59. {python_template_project-0.2.1 → python_template_project-0.2.2}/scripts/update_readme.py +0 -0
  60. {python_template_project-0.2.1 → python_template_project-0.2.2}/setup.cfg +0 -0
  61. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/__init__.py +0 -0
  62. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/firewall_handler.py +0 -0
  63. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/main.py +0 -0
  64. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/__init__.py +0 -0
  65. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/__main__.py +0 -0
  66. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/cli/__init__.py +0 -0
  67. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/cli/__main__.py +0 -0
  68. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/config/__init__.py +0 -0
  69. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/config/config.py +0 -0
  70. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/core/__init__.py +0 -0
  71. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/core/base.py +0 -0
  72. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/core/logging.py +0 -0
  73. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/gui/__init__.py +0 -0
  74. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/gui/__main__.py +0 -0
  75. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project/gui/gui.py +0 -0
  76. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project.egg-info/SOURCES.txt +0 -0
  77. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project.egg-info/dependency_links.txt +0 -0
  78. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project.egg-info/entry_points.txt +0 -0
  79. {python_template_project-0.2.1 → python_template_project-0.2.2}/src/python_template_project.egg-info/top_level.txt +0 -0
  80. {python_template_project-0.2.1 → python_template_project-0.2.2}/template.yml.url +0 -0
  81. {python_template_project-0.2.1 → python_template_project-0.2.2}/tests/__init__.py +0 -0
  82. {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="example.mbox" />
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.1
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.0
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
@@ -8,7 +8,7 @@ authors = [
8
8
  readme = "docs/index.md"
9
9
  requires-python = ">=3.10,<3.12"
10
10
  dependencies = [
11
- "config-cli-gui>=0.2.0",
11
+ "config-cli-gui>=0.2.2",
12
12
  "fastkml>=1.1.0",
13
13
  "gpxpy>=1.6.2",
14
14
  "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.1'
32
- __version_tuple__ = version_tuple = (0, 2, 1)
31
+ __version__ = version = '0.2.2'
32
+ __version_tuple__ = version_tuple = (0, 2, 2)
33
33
 
34
- __commit_id__ = commit_id = 'gd3c7ca4b6'
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, logger) -> bool:
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, logger):
70
+ if not validate_config(config):
67
71
  logger.error("Configuration validation failed")
68
72
  return 1
69
73
 
70
- # Get CLI parameters
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
- extract_waypoints = cli_category.extract_waypoints.value
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=extract_waypoints,
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.1
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.0
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
@@ -1,4 +1,4 @@
1
- config-cli-gui>=0.2.0
1
+ config-cli-gui>=0.2.2
2
2
  fastkml>=1.1.0
3
3
  gpxpy>=1.6.2
4
4
  shapely>=2.1.1
@@ -148,15 +148,15 @@ wheels = [
148
148
 
149
149
  [[package]]
150
150
  name = "config-cli-gui"
151
- version = "0.2.0"
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/24/16/50fee4c66c5f2ac79149edf3af9429d5e5c9f788e3e6d4c637e0d0e823b6/config_cli_gui-0.2.0.tar.gz", hash = "sha256:3f718b8ed3fdbea4678c3c48054e7aeff560dc8836c3532efa18787f60e12df8", size = 113007, upload-time = "2025-11-13T22:28:22.14Z" }
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/72/db/73f7ab415b77dc705aa144d703c0a9cc113a553b6fd6d6c32067eacd73a6/config_cli_gui-0.2.0-py3-none-any.whl", hash = "sha256:08c70a715157deb5872d98997b3eb2da1cecc814f7bc0f8fe419c43242550381", size = 17406, upload-time = "2025-11-13T22:28:21.129Z" },
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.0" },
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" },