python-template-project 0.2.2__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.
Files changed (82) hide show
  1. {python_template_project-0.2.2 → python_template_project-0.2.3}/.idea/runConfigurations/config_generate.xml +3 -3
  2. {python_template_project-0.2.2 → python_template_project-0.2.3}/.idea/runConfigurations/module_cli.xml +1 -1
  3. {python_template_project-0.2.2 → python_template_project-0.2.3}/.idea/runConfigurations/module_gui.xml +1 -1
  4. {python_template_project-0.2.2 → python_template_project-0.2.3}/HISTORY.md +9 -0
  5. {python_template_project-0.2.2 → python_template_project-0.2.3}/Makefile +1 -0
  6. {python_template_project-0.2.2/src/python_template_project.egg-info → python_template_project-0.2.3}/PKG-INFO +1 -1
  7. {python_template_project-0.2.2 → python_template_project-0.2.3}/config.yaml +3 -3
  8. {python_template_project-0.2.2 → python_template_project-0.2.3}/docs/usage/cli.md +11 -11
  9. {python_template_project-0.2.2 → python_template_project-0.2.3}/docs/usage/config.md +9 -9
  10. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project/_version.py +3 -3
  11. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project/config/config.py +7 -6
  12. {python_template_project-0.2.2 → python_template_project-0.2.3/src/python_template_project.egg-info}/PKG-INFO +1 -1
  13. {python_template_project-0.2.2 → python_template_project-0.2.3}/.github/FUNDING.yml +0 -0
  14. {python_template_project-0.2.2 → python_template_project-0.2.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  15. {python_template_project-0.2.2 → python_template_project-0.2.3}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  16. {python_template_project-0.2.2 → python_template_project-0.2.3}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  17. {python_template_project-0.2.2 → python_template_project-0.2.3}/.github/actions/setup-environment/action.yml +0 -0
  18. {python_template_project-0.2.2 → python_template_project-0.2.3}/.github/dependabot.yml +0 -0
  19. {python_template_project-0.2.2 → python_template_project-0.2.3}/.github/init.sh +0 -0
  20. {python_template_project-0.2.2 → python_template_project-0.2.3}/.github/release_message.sh +0 -0
  21. {python_template_project-0.2.2 → python_template_project-0.2.3}/.github/rename_project.sh +0 -0
  22. {python_template_project-0.2.2 → python_template_project-0.2.3}/.github/template.yml +0 -0
  23. {python_template_project-0.2.2 → python_template_project-0.2.3}/.github/update_funding.py +0 -0
  24. {python_template_project-0.2.2 → python_template_project-0.2.3}/.github/workflows/build-macos.yml +0 -0
  25. {python_template_project-0.2.2 → python_template_project-0.2.3}/.github/workflows/build.yml +0 -0
  26. {python_template_project-0.2.2 → python_template_project-0.2.3}/.github/workflows/main.yml +0 -0
  27. {python_template_project-0.2.2 → python_template_project-0.2.3}/.github/workflows/release.yml +0 -0
  28. {python_template_project-0.2.2 → python_template_project-0.2.3}/.github/workflows/rename_project.yml +0 -0
  29. {python_template_project-0.2.2 → python_template_project-0.2.3}/.github/workflows/update_readme.yml +0 -0
  30. {python_template_project-0.2.2 → python_template_project-0.2.3}/.gitignore +0 -0
  31. {python_template_project-0.2.2 → python_template_project-0.2.3}/.pre-commit-config-linux.yaml +0 -0
  32. {python_template_project-0.2.2 → python_template_project-0.2.3}/.pre-commit-config.yaml +0 -0
  33. {python_template_project-0.2.2 → python_template_project-0.2.3}/.readthedocs.yaml +0 -0
  34. {python_template_project-0.2.2 → python_template_project-0.2.3}/LICENSE +0 -0
  35. {python_template_project-0.2.2 → python_template_project-0.2.3}/README.md +0 -0
  36. {python_template_project-0.2.2 → python_template_project-0.2.3}/docs/.nav.yml +0 -0
  37. {python_template_project-0.2.2 → python_template_project-0.2.3}/docs/_static/img/favicon.png +0 -0
  38. {python_template_project-0.2.2 → python_template_project-0.2.3}/docs/_static/img/logo.png +0 -0
  39. {python_template_project-0.2.2 → python_template_project-0.2.3}/docs/css/custom.css +0 -0
  40. {python_template_project-0.2.2 → python_template_project-0.2.3}/docs/develop/contributing.md +0 -0
  41. {python_template_project-0.2.2 → python_template_project-0.2.3}/docs/develop/make_windows.md +0 -0
  42. {python_template_project-0.2.2 → python_template_project-0.2.3}/docs/develop/naming_convention.md +0 -0
  43. {python_template_project-0.2.2 → python_template_project-0.2.3}/docs/develop/pypi_release.md +0 -0
  44. {python_template_project-0.2.2 → python_template_project-0.2.3}/docs/funding/funding.md +0 -0
  45. {python_template_project-0.2.2 → python_template_project-0.2.3}/docs/getting-started/install.md +0 -0
  46. {python_template_project-0.2.2 → python_template_project-0.2.3}/docs/getting-started/virtual-environment.md +0 -0
  47. {python_template_project-0.2.2 → python_template_project-0.2.3}/docs/index.md +0 -0
  48. {python_template_project-0.2.2 → python_template_project-0.2.3}/examples/kuhkopfsteig.gpx +0 -0
  49. {python_template_project-0.2.2 → python_template_project-0.2.3}/examples/rother_lilienstein.gpx +0 -0
  50. {python_template_project-0.2.2 → python_template_project-0.2.3}/examples/teneriffa.gpx +0 -0
  51. {python_template_project-0.2.2 → python_template_project-0.2.3}/mkdocs.yml +0 -0
  52. {python_template_project-0.2.2 → python_template_project-0.2.3}/pyproject.toml +0 -0
  53. {python_template_project-0.2.2 → python_template_project-0.2.3}/scripts/generate_config_docs.py +0 -0
  54. {python_template_project-0.2.2 → python_template_project-0.2.3}/scripts/show_filelist.ps1 +0 -0
  55. {python_template_project-0.2.2 → python_template_project-0.2.3}/scripts/show_tree.ps1 +0 -0
  56. {python_template_project-0.2.2 → python_template_project-0.2.3}/scripts/show_tree.py +0 -0
  57. {python_template_project-0.2.2 → python_template_project-0.2.3}/scripts/update_readme.py +0 -0
  58. {python_template_project-0.2.2 → python_template_project-0.2.3}/setup.cfg +0 -0
  59. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/__init__.py +0 -0
  60. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/firewall_handler.py +0 -0
  61. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/main.py +0 -0
  62. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project/__init__.py +0 -0
  63. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project/__main__.py +0 -0
  64. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project/cli/__init__.py +0 -0
  65. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project/cli/__main__.py +0 -0
  66. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project/cli/cli.py +0 -0
  67. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project/config/__init__.py +0 -0
  68. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project/core/__init__.py +0 -0
  69. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project/core/base.py +0 -0
  70. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project/core/logging.py +0 -0
  71. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project/gui/__init__.py +0 -0
  72. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project/gui/__main__.py +0 -0
  73. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project/gui/gui.py +0 -0
  74. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project.egg-info/SOURCES.txt +0 -0
  75. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project.egg-info/dependency_links.txt +0 -0
  76. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project.egg-info/entry_points.txt +0 -0
  77. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project.egg-info/requires.txt +0 -0
  78. {python_template_project-0.2.2 → python_template_project-0.2.3}/src/python_template_project.egg-info/top_level.txt +0 -0
  79. {python_template_project-0.2.2 → python_template_project-0.2.3}/template.yml.url +0 -0
  80. {python_template_project-0.2.2 → python_template_project-0.2.3}/tests/__init__.py +0 -0
  81. {python_template_project-0.2.2 → python_template_project-0.2.3}/tests/test_gpx.py +0 -0
  82. {python_template_project-0.2.2 → python_template_project-0.2.3}/uv.lock +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="$PROJECT_DIR$/src/python_template_project" />
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="$PROJECT_DIR$/src/python_template_project/config/config.py" />
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="false" />
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,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="$PROJECT_DIR$" />
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" />
@@ -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="$PROJECT_DIR$" />
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,15 @@ 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]
7
16
  - Improved cli example, fix elevation cli param problem. [Paul Magister]
8
17
  - Update to new config: cli fixes. [Paul Magister]
9
18
 
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-template-project
3
- Version: 0.2.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
@@ -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=20 [CLI]
26
- min_dist: 20
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 app
3
+ Command line options for python_template_project
4
4
 
5
5
  ```bash
6
- python -m app [OPTIONS] input
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 | 20 | - |
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 app input
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 app -v input
33
- python -m app --verbose input
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 app -q input
40
- python -m app --quiet input
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 app --min_dist 20 input
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 app --extract_waypoints True input
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 app --elevation True input
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 | 20 | - |
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 | 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 newest log entries | True | [True, False] |
38
- | max_log_lines | int | Maximum number of log lines to keep in GUI | 1000 | - |
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.2'
32
- __version_tuple__ = version_tuple = (0, 2, 2)
31
+ __version__ = version = '0.2.3'
32
+ __version_tuple__ = version_tuple = (0, 2, 3)
33
33
 
34
- __commit_id__ = commit_id = 'g43e51a5fe'
34
+ __commit_id__ = commit_id = 'g05d198f46'
@@ -34,7 +34,7 @@ class CliConfig(ConfigCategory):
34
34
 
35
35
  min_dist: ConfigParameter = ConfigParameter(
36
36
  name="min_dist",
37
- value=20,
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 = "../../config.yaml"
174
- default_cli_doc: str = "../../docs/usage/cli.md"
175
- default_config_doc: str = "../../docs/usage/config.md"
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-template-project
3
- Version: 0.2.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