forgepy-cli 1.0.0__py3-none-any.whl

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 (74) hide show
  1. builders/__init__.py +0 -0
  2. builders/base_builder.py +17 -0
  3. builders/file_builder.py +31 -0
  4. builders/folder_builder.py +30 -0
  5. builders/python_tools_builder.py +64 -0
  6. cli/__init__.py +3 -0
  7. cli/command.py +52 -0
  8. cli/commands/__init__.py +32 -0
  9. cli/commands/component_command.py +177 -0
  10. cli/commands/config_command.py +174 -0
  11. cli/commands/create_command.py +161 -0
  12. cli/commands/list_command.py +40 -0
  13. cli/commands/version_command.py +29 -0
  14. cli/dispatcher.py +61 -0
  15. cli/parser.py +84 -0
  16. components/__init__.py +1 -0
  17. components/base_component.py +30 -0
  18. components/component_context.py +21 -0
  19. components/component_installer.py +44 -0
  20. components/component_manifest.py +102 -0
  21. components/component_metadata.py +50 -0
  22. components/component_registry.py +74 -0
  23. components/component_state.py +243 -0
  24. components/component_validation.py +88 -0
  25. components/github_actions_component.py +75 -0
  26. components/pytest_component.py +40 -0
  27. components/ruff_component.py +40 -0
  28. config/__init__.py +0 -0
  29. config/default_structure.py +18 -0
  30. config/user_config.py +238 -0
  31. config/version.py +16 -0
  32. core/__init__.py +0 -0
  33. core/environment_builder.py +33 -0
  34. core/git_builder.py +90 -0
  35. core/project_generator.py +125 -0
  36. core/requirements_installer.py +50 -0
  37. core/vscode_builder.py +103 -0
  38. forgepy_cli-1.0.0.dist-info/METADATA +176 -0
  39. forgepy_cli-1.0.0.dist-info/RECORD +74 -0
  40. forgepy_cli-1.0.0.dist-info/WHEEL +5 -0
  41. forgepy_cli-1.0.0.dist-info/entry_points.txt +2 -0
  42. forgepy_cli-1.0.0.dist-info/licenses/LICENSE +21 -0
  43. forgepy_cli-1.0.0.dist-info/top_level.txt +8 -0
  44. main.py +20 -0
  45. models/__init__.py +1 -0
  46. models/project_config.py +87 -0
  47. templates/__init__.py +0 -0
  48. templates/app_template.py +20 -0
  49. templates/basic/basic_files.py +23 -0
  50. templates/basic/basic_template.py +32 -0
  51. templates/changelog_template.py +15 -0
  52. templates/cli/cli_files.py +70 -0
  53. templates/cli/cli_template.py +55 -0
  54. templates/env_template.py +20 -0
  55. templates/gitignore_template.py +27 -0
  56. templates/library/library_files.py +28 -0
  57. templates/library/library_template.py +56 -0
  58. templates/license_template.py +21 -0
  59. templates/pyproject_template.py +15 -0
  60. templates/readme_template.py +15 -0
  61. templates/requirements_template.py +13 -0
  62. templates/template_engine/base_template.py +58 -0
  63. templates/template_engine/file_template.py +76 -0
  64. templates/template_engine/package_name.py +30 -0
  65. templates/template_engine/template_context.py +24 -0
  66. templates/template_engine/template_files.py +10 -0
  67. templates/template_engine/template_metadata.py +59 -0
  68. templates/template_engine/template_registry.py +107 -0
  69. templates/template_manager.py +58 -0
  70. templates/vscode/__init__.py +0 -0
  71. templates/vscode/extensions_template.py +32 -0
  72. templates/vscode/launch_template.py +41 -0
  73. templates/vscode/settings_template.py +37 -0
  74. templates/vscode/tasks_template.py +66 -0
@@ -0,0 +1,37 @@
1
+ """
2
+ ==================================================
3
+ ForgePy
4
+ Author : Rendy Zou
5
+ Module : VSCode Settings Template
6
+ ==================================================
7
+
8
+ Deskripsi:
9
+ - Template settings.json untuk Visual Studio Code.
10
+ """
11
+
12
+ import json
13
+
14
+
15
+ def build() -> str:
16
+
17
+ settings = {
18
+ "python.defaultInterpreterPath": ".venv\\Scripts\\python.exe",
19
+
20
+ "python.analysis.typeCheckingMode": "basic",
21
+
22
+ "python.analysis.autoImportCompletions": True,
23
+
24
+ "editor.formatOnSave": True,
25
+
26
+ "editor.tabSize": 4,
27
+
28
+ "files.trimTrailingWhitespace": True,
29
+
30
+ "files.insertFinalNewline": True,
31
+ }
32
+
33
+ return json.dumps(
34
+ settings,
35
+ indent=4,
36
+ ensure_ascii=False,
37
+ )
@@ -0,0 +1,66 @@
1
+ """
2
+ ==================================================
3
+ ForgePy
4
+ Author : Rendy Zou
5
+ Module : VSCode Tasks Template
6
+ ==================================================
7
+
8
+ Deskripsi:
9
+ - Template tasks.json untuk Visual Studio Code.
10
+ - Menyediakan task aplikasi jika tersedia dan install dependencies.
11
+ """
12
+
13
+ import json
14
+
15
+
16
+ def build(entry_point: str | None = "app.py") -> str:
17
+
18
+ tasks = []
19
+
20
+ if entry_point is not None:
21
+ tasks.append(
22
+ {
23
+ "label": "Run Application",
24
+ "type": "shell",
25
+ "command": "${workspaceFolder}\\.venv\\Scripts\\python.exe",
26
+ "args": [
27
+ entry_point
28
+ ],
29
+ "group": {
30
+ "kind": "build",
31
+ "isDefault": True
32
+ },
33
+ "presentation": {
34
+ "reveal": "always"
35
+ },
36
+ "problemMatcher": []
37
+ }
38
+ )
39
+
40
+ tasks.append(
41
+ {
42
+ "label": "Install Requirements",
43
+ "type": "shell",
44
+ "command": "${workspaceFolder}\\.venv\\Scripts\\pip.exe",
45
+ "args": [
46
+ "install",
47
+ "-r",
48
+ "requirements.txt"
49
+ ],
50
+ "presentation": {
51
+ "reveal": "always"
52
+ },
53
+ "problemMatcher": []
54
+ }
55
+ )
56
+
57
+ task_configuration = {
58
+ "version": "2.0.0",
59
+ "tasks": tasks,
60
+ }
61
+
62
+ return json.dumps(
63
+ task_configuration,
64
+ indent=4,
65
+ ensure_ascii=False,
66
+ )