quadkit-cli 0.0.1__tar.gz → 0.0.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 (194) hide show
  1. quadkit_cli-0.0.2/.gitignore +190 -0
  2. quadkit_cli-0.0.2/LICENSE +201 -0
  3. quadkit_cli-0.0.2/NOTICE +35 -0
  4. quadkit_cli-0.0.2/PKG-INFO +194 -0
  5. quadkit_cli-0.0.2/README.md +138 -0
  6. quadkit_cli-0.0.2/example.yaml +13 -0
  7. quadkit_cli-0.0.2/pyproject.toml +171 -0
  8. quadkit_cli-0.0.2/src/quadkit/cli/__init__.py +86 -0
  9. quadkit_cli-0.0.2/src/quadkit/cli/assembly/__init__.py +7 -0
  10. quadkit_cli-0.0.2/src/quadkit/cli/assembly/assembler.py +185 -0
  11. quadkit_cli-0.0.2/src/quadkit/cli/commands/__init__.py +36 -0
  12. quadkit_cli-0.0.2/src/quadkit/cli/commands/add.py +75 -0
  13. quadkit_cli-0.0.2/src/quadkit/cli/commands/config.py +472 -0
  14. quadkit_cli-0.0.2/src/quadkit/cli/commands/config_utils.py +58 -0
  15. quadkit_cli-0.0.2/src/quadkit/cli/commands/contrib.py +258 -0
  16. quadkit_cli-0.0.2/src/quadkit/cli/commands/db.py +43 -0
  17. quadkit_cli-0.0.2/src/quadkit/cli/commands/db_bootstrap.py +130 -0
  18. quadkit_cli-0.0.2/src/quadkit/cli/commands/db_commands_data.py +215 -0
  19. quadkit_cli-0.0.2/src/quadkit/cli/commands/db_commands_migrations.py +260 -0
  20. quadkit_cli-0.0.2/src/quadkit/cli/commands/db_commands_ops.py +205 -0
  21. quadkit_cli-0.0.2/src/quadkit/cli/commands/dev.py +187 -0
  22. quadkit_cli-0.0.2/src/quadkit/cli/commands/events.py +201 -0
  23. quadkit_cli-0.0.2/src/quadkit/cli/commands/gen.py +86 -0
  24. quadkit_cli-0.0.2/src/quadkit/cli/commands/init.py +95 -0
  25. quadkit_cli-0.0.2/src/quadkit/cli/commands/inspect.py +230 -0
  26. quadkit_cli-0.0.2/src/quadkit/cli/commands/meta.py +293 -0
  27. quadkit_cli-0.0.2/src/quadkit/cli/commands/new.py +180 -0
  28. quadkit_cli-0.0.2/src/quadkit/cli/commands/project.py +198 -0
  29. quadkit_cli-0.0.2/src/quadkit/cli/commands/py.typed +0 -0
  30. quadkit_cli-0.0.2/src/quadkit/cli/commands/run.py +175 -0
  31. quadkit_cli-0.0.2/src/quadkit/cli/commands/shell.py +125 -0
  32. quadkit_cli-0.0.2/src/quadkit/cli/commands/system.py +239 -0
  33. quadkit_cli-0.0.2/src/quadkit/cli/config.py +127 -0
  34. quadkit_cli-0.0.2/src/quadkit/cli/constants.py +42 -0
  35. quadkit_cli-0.0.2/src/quadkit/cli/contributors/__init__.py +13 -0
  36. quadkit_cli-0.0.2/src/quadkit/cli/contributors/base.py +113 -0
  37. quadkit_cli-0.0.2/src/quadkit/cli/contributors/core.py +42 -0
  38. quadkit_cli-0.0.2/src/quadkit/cli/contributors/discovery.py +79 -0
  39. quadkit_cli-0.0.2/src/quadkit/cli/contributors/registry.py +41 -0
  40. quadkit_cli-0.0.2/src/quadkit/cli/contributors/runtime.py +256 -0
  41. quadkit_cli-0.0.2/src/quadkit/cli/decorators.py +3 -0
  42. quadkit_cli-0.0.2/src/quadkit/cli/di/__init__.py +7 -0
  43. quadkit_cli-0.0.2/src/quadkit/cli/di/provider.py +103 -0
  44. quadkit_cli-0.0.2/src/quadkit/cli/di/sub_providers/__init__.py +1 -0
  45. quadkit_cli-0.0.2/src/quadkit/cli/di/sub_providers/contributor.py +39 -0
  46. quadkit_cli-0.0.2/src/quadkit/cli/events.py +3 -0
  47. quadkit_cli-0.0.2/src/quadkit/cli/exceptions.py +65 -0
  48. quadkit_cli-0.0.2/src/quadkit/cli/generators/__init__.py +9 -0
  49. quadkit_cli-0.0.2/src/quadkit/cli/generators/base.py +7 -0
  50. quadkit_cli-0.0.2/src/quadkit/cli/generators/field_parser.py +7 -0
  51. quadkit_cli-0.0.2/src/quadkit/cli/generators/provider.py +71 -0
  52. quadkit_cli-0.0.2/src/quadkit/cli/generators/test.py +117 -0
  53. quadkit_cli-0.0.2/src/quadkit/cli/hooks.py +12 -0
  54. quadkit_cli-0.0.2/src/quadkit/cli/layout.py +358 -0
  55. quadkit_cli-0.0.2/src/quadkit/cli/lib/__init__.py +29 -0
  56. quadkit_cli-0.0.2/src/quadkit/cli/lib/config_gen.py +304 -0
  57. quadkit_cli-0.0.2/src/quadkit/cli/lib/config_loader.py +160 -0
  58. quadkit_cli-0.0.2/src/quadkit/cli/lib/console.py +18 -0
  59. quadkit_cli-0.0.2/src/quadkit/cli/lib/entry_point.py +75 -0
  60. quadkit_cli-0.0.2/src/quadkit/cli/lib/naming.py +7 -0
  61. quadkit_cli-0.0.2/src/quadkit/cli/lib/templates.py +46 -0
  62. quadkit_cli-0.0.2/src/quadkit/cli/module.py +66 -0
  63. quadkit_cli-0.0.2/src/quadkit/cli/output/__init__.py +7 -0
  64. quadkit_cli-0.0.2/src/quadkit/cli/output/manager.py +158 -0
  65. quadkit_cli-0.0.2/src/quadkit/cli/protocols.py +98 -0
  66. quadkit_cli-0.0.2/src/quadkit/cli/py.typed +0 -0
  67. quadkit_cli-0.0.2/src/quadkit/cli/registry/__init__.py +338 -0
  68. quadkit_cli-0.0.2/src/quadkit/cli/registry/backend_base.py +93 -0
  69. quadkit_cli-0.0.2/src/quadkit/cli/registry/command.py +35 -0
  70. quadkit_cli-0.0.2/src/quadkit/cli/registry/completion.py +189 -0
  71. quadkit_cli-0.0.2/src/quadkit/cli/registry/config.py +419 -0
  72. quadkit_cli-0.0.2/src/quadkit/cli/registry/database.py +500 -0
  73. quadkit_cli-0.0.2/src/quadkit/cli/registry/environment.py +241 -0
  74. quadkit_cli-0.0.2/src/quadkit/cli/registry/formatter.py +233 -0
  75. quadkit_cli-0.0.2/src/quadkit/cli/registry/generator.py +169 -0
  76. quadkit_cli-0.0.2/src/quadkit/cli/registry/health.py +150 -0
  77. quadkit_cli-0.0.2/src/quadkit/cli/registry/health_checks/__init__.py +63 -0
  78. quadkit_cli-0.0.2/src/quadkit/cli/registry/health_checks/base.py +66 -0
  79. quadkit_cli-0.0.2/src/quadkit/cli/registry/health_checks/deps.py +51 -0
  80. quadkit_cli-0.0.2/src/quadkit/cli/registry/health_checks/project.py +135 -0
  81. quadkit_cli-0.0.2/src/quadkit/cli/registry/health_checks/providers.py +195 -0
  82. quadkit_cli-0.0.2/src/quadkit/cli/registry/health_checks/python_env.py +45 -0
  83. quadkit_cli-0.0.2/src/quadkit/cli/registry/health_checks/tools.py +78 -0
  84. quadkit_cli-0.0.2/src/quadkit/cli/registry/health_checks/vcs_docker.py +101 -0
  85. quadkit_cli-0.0.2/src/quadkit/cli/registry/hook.py +254 -0
  86. quadkit_cli-0.0.2/src/quadkit/cli/registry/inspect.py +327 -0
  87. quadkit_cli-0.0.2/src/quadkit/cli/registry/migration.py +291 -0
  88. quadkit_cli-0.0.2/src/quadkit/cli/registry/presets.py +221 -0
  89. quadkit_cli-0.0.2/src/quadkit/cli/registry/provider.py +109 -0
  90. quadkit_cli-0.0.2/src/quadkit/cli/registry/provider_catalog.py +477 -0
  91. quadkit_cli-0.0.2/src/quadkit/cli/registry/provider_registry.py +147 -0
  92. quadkit_cli-0.0.2/src/quadkit/cli/registry/secrets.py +278 -0
  93. quadkit_cli-0.0.2/src/quadkit/cli/registry/serializer.py +264 -0
  94. quadkit_cli-0.0.2/src/quadkit/cli/registry/server.py +339 -0
  95. quadkit_cli-0.0.2/src/quadkit/cli/registry/task.py +219 -0
  96. quadkit_cli-0.0.2/src/quadkit/cli/registry/telemetry.py +330 -0
  97. quadkit_cli-0.0.2/src/quadkit/cli/registry/template.py +243 -0
  98. quadkit_cli-0.0.2/src/quadkit/cli/registry/version.py +152 -0
  99. quadkit_cli-0.0.2/src/quadkit/cli/registry/watcher.py +246 -0
  100. quadkit_cli-0.0.2/src/quadkit/cli/runtime/__init__.py +8 -0
  101. quadkit_cli-0.0.2/src/quadkit/cli/runtime/context.py +70 -0
  102. quadkit_cli-0.0.2/src/quadkit/cli/runtime/error_handler.py +43 -0
  103. quadkit_cli-0.0.2/src/quadkit/cli/runtime/main.py +154 -0
  104. quadkit_cli-0.0.2/src/quadkit/cli/scaffold.py +1161 -0
  105. quadkit_cli-0.0.2/src/quadkit/cli/scaffold_package.py +234 -0
  106. quadkit_cli-0.0.2/src/quadkit/cli/templates/provider.py.jinja2 +92 -0
  107. quadkit_cli-0.0.2/src/quadkit/cli/templates/py.typed +0 -0
  108. quadkit_cli-0.0.2/src/quadkit/cli/templates/test_unit.py.jinja2 +238 -0
  109. quadkit_cli-0.0.2/src/quadkit/cli/types.py +30 -0
  110. quadkit_cli-0.0.2/src/quadkit/py.typed +0 -0
  111. quadkit_cli-0.0.2/tests/conftest.py +165 -0
  112. quadkit_cli-0.0.2/tests/helpers/runner.py +153 -0
  113. quadkit_cli-0.0.2/tests/integration/__init__.py +1 -0
  114. quadkit_cli-0.0.2/tests/integration/test_cli_lifecycle.py +66 -0
  115. quadkit_cli-0.0.2/tests/test_package_structure_p1.py +13 -0
  116. quadkit_cli-0.0.2/tests/unit/__init__.py +0 -0
  117. quadkit_cli-0.0.2/tests/unit/_test_cli_contribution_system_support.py +30 -0
  118. quadkit_cli-0.0.2/tests/unit/commands/__init__.py +0 -0
  119. quadkit_cli-0.0.2/tests/unit/commands/test_config.py +142 -0
  120. quadkit_cli-0.0.2/tests/unit/commands/test_config_happy_paths.py +217 -0
  121. quadkit_cli-0.0.2/tests/unit/commands/test_contrib.py +139 -0
  122. quadkit_cli-0.0.2/tests/unit/commands/test_events_cmd.py +58 -0
  123. quadkit_cli-0.0.2/tests/unit/commands/test_inspect.py +65 -0
  124. quadkit_cli-0.0.2/tests/unit/commands/test_meta.py +104 -0
  125. quadkit_cli-0.0.2/tests/unit/commands/test_run.py +109 -0
  126. quadkit_cli-0.0.2/tests/unit/commands/test_shell.py +86 -0
  127. quadkit_cli-0.0.2/tests/unit/commands/test_system.py +95 -0
  128. quadkit_cli-0.0.2/tests/unit/di/test_config_alignment.py +58 -0
  129. quadkit_cli-0.0.2/tests/unit/lib/test_config_gen.py +251 -0
  130. quadkit_cli-0.0.2/tests/unit/lib/test_templates.py +70 -0
  131. quadkit_cli-0.0.2/tests/unit/registry/__init__.py +0 -0
  132. quadkit_cli-0.0.2/tests/unit/registry/test_database.py +341 -0
  133. quadkit_cli-0.0.2/tests/unit/registry/test_environment.py +234 -0
  134. quadkit_cli-0.0.2/tests/unit/registry/test_formatter.py +185 -0
  135. quadkit_cli-0.0.2/tests/unit/registry/test_health.py +303 -0
  136. quadkit_cli-0.0.2/tests/unit/registry/test_hook.py +201 -0
  137. quadkit_cli-0.0.2/tests/unit/registry/test_inspect_registry.py +157 -0
  138. quadkit_cli-0.0.2/tests/unit/registry/test_migration.py +187 -0
  139. quadkit_cli-0.0.2/tests/unit/registry/test_secrets.py +274 -0
  140. quadkit_cli-0.0.2/tests/unit/registry/test_serializer.py +256 -0
  141. quadkit_cli-0.0.2/tests/unit/registry/test_task.py +188 -0
  142. quadkit_cli-0.0.2/tests/unit/registry/test_telemetry.py +204 -0
  143. quadkit_cli-0.0.2/tests/unit/registry/test_template.py +177 -0
  144. quadkit_cli-0.0.2/tests/unit/registry/test_version.py +111 -0
  145. quadkit_cli-0.0.2/tests/unit/registry/test_watcher.py +174 -0
  146. quadkit_cli-0.0.2/tests/unit/test_add.py +131 -0
  147. quadkit_cli-0.0.2/tests/unit/test_base_contributor.py +131 -0
  148. quadkit_cli-0.0.2/tests/unit/test_cli_constants.py +43 -0
  149. quadkit_cli-0.0.2/tests/unit/test_cli_context.py +48 -0
  150. quadkit_cli-0.0.2/tests/unit/test_cli_contribution_system.py +342 -0
  151. quadkit_cli-0.0.2/tests/unit/test_cli_errors.py +41 -0
  152. quadkit_cli-0.0.2/tests/unit/test_cli_exceptions.py +56 -0
  153. quadkit_cli-0.0.2/tests/unit/test_cli_module.py +15 -0
  154. quadkit_cli-0.0.2/tests/unit/test_cli_types.py +80 -0
  155. quadkit_cli-0.0.2/tests/unit/test_config_async.py +109 -0
  156. quadkit_cli-0.0.2/tests/unit/test_config_loader.py +94 -0
  157. quadkit_cli-0.0.2/tests/unit/test_config_save.py +69 -0
  158. quadkit_cli-0.0.2/tests/unit/test_config_validate.py +45 -0
  159. quadkit_cli-0.0.2/tests/unit/test_contributor_registry.py +166 -0
  160. quadkit_cli-0.0.2/tests/unit/test_contributor_runtime.py +28 -0
  161. quadkit_cli-0.0.2/tests/unit/test_core_contributor.py +164 -0
  162. quadkit_cli-0.0.2/tests/unit/test_db.py +164 -0
  163. quadkit_cli-0.0.2/tests/unit/test_decorators.py +7 -0
  164. quadkit_cli-0.0.2/tests/unit/test_dev_command.py +64 -0
  165. quadkit_cli-0.0.2/tests/unit/test_error_handler.py +63 -0
  166. quadkit_cli-0.0.2/tests/unit/test_events.py +7 -0
  167. quadkit_cli-0.0.2/tests/unit/test_exception_handling.py +60 -0
  168. quadkit_cli-0.0.2/tests/unit/test_field_parser.py +42 -0
  169. quadkit_cli-0.0.2/tests/unit/test_gen.py +44 -0
  170. quadkit_cli-0.0.2/tests/unit/test_gen_controller.py +51 -0
  171. quadkit_cli-0.0.2/tests/unit/test_gen_provider.py +132 -0
  172. quadkit_cli-0.0.2/tests/unit/test_generator_base.py +44 -0
  173. quadkit_cli-0.0.2/tests/unit/test_generator_registry.py +193 -0
  174. quadkit_cli-0.0.2/tests/unit/test_generators_contract.py +18 -0
  175. quadkit_cli-0.0.2/tests/unit/test_health_checks.py +300 -0
  176. quadkit_cli-0.0.2/tests/unit/test_hooks.py +7 -0
  177. quadkit_cli-0.0.2/tests/unit/test_init_command.py +48 -0
  178. quadkit_cli-0.0.2/tests/unit/test_layout.py +186 -0
  179. quadkit_cli-0.0.2/tests/unit/test_main.py +47 -0
  180. quadkit_cli-0.0.2/tests/unit/test_new.py +139 -0
  181. quadkit_cli-0.0.2/tests/unit/test_output.py +98 -0
  182. quadkit_cli-0.0.2/tests/unit/test_output_json.py +175 -0
  183. quadkit_cli-0.0.2/tests/unit/test_project.py +101 -0
  184. quadkit_cli-0.0.2/tests/unit/test_project_layout.py +304 -0
  185. quadkit_cli-0.0.2/tests/unit/test_provider_registry.py +152 -0
  186. quadkit_cli-0.0.2/tests/unit/test_public_surface.py +85 -0
  187. quadkit_cli-0.0.2/tests/unit/test_round40_hardening.py +28 -0
  188. quadkit_cli-0.0.2/tests/unit/test_run_detection.py +49 -0
  189. quadkit_cli-0.0.2/tests/unit/test_scaffold_and_validators.py +301 -0
  190. quadkit_cli-0.0.2/tests/unit/test_server_registry.py +195 -0
  191. quadkit_cli-0.0.1/PKG-INFO +0 -32
  192. quadkit_cli-0.0.1/README.md +0 -5
  193. quadkit_cli-0.0.1/pyproject.toml +0 -37
  194. quadkit_cli-0.0.1/src/quadkit_cli/__init__.py +0 -3
@@ -0,0 +1,190 @@
1
+ *
2
+ !tests/
3
+ !tests/**
4
+ !README.md
5
+ !AGENTS.md
6
+ !DEVELOPMENT.md
7
+ !QUICKGUIDE.md
8
+ !MILESTONE*.md
9
+ !TESTS*.md
10
+ !CHANGELOG.md
11
+ !AUDIT*.md
12
+ !REF*.md
13
+ !AUDIT*.json
14
+ !LICENSE
15
+ !LICENSE-MIT.txt
16
+ !NOTICE
17
+ !TRADEMARK.md
18
+ !conftest.py
19
+ !CONTRIBUTING.md
20
+ !CODE_OF_CONDUCT.md
21
+ !SECURITY.md
22
+ !GOVERNANCE.md
23
+ !pyproject.toml
24
+ !uv.lock
25
+ !docker-compose.yml
26
+ !.env.example
27
+ !.env.full.example
28
+ !.importlinter
29
+ !.superpowers/
30
+ !.superpowers/**
31
+ !Makefile
32
+ !docker-compose.test.yml
33
+ !quadkit.yaml.example
34
+ !.github/
35
+ !.github/workflows/
36
+ !.github/workflows/**
37
+ !.github/dependabot.yml
38
+ !.devcontainer/
39
+ !.devcontainer/**
40
+ !tools/
41
+ !tools/**
42
+ !*example.yaml
43
+
44
+ # Quadkit Packages
45
+ !quadkit*/
46
+ !quadkit*/pyproject.toml
47
+ !quadkit*/CHANGELOG.md
48
+ !quadkit*/README.md
49
+ !quadkit*/alembic.ini
50
+ !quadkit*/mypy.ini
51
+ !quadkit*/*.yaml.example
52
+ !quadkit*/src/
53
+ !quadkit*/src/**
54
+ !quadkit*/docs/
55
+ !quadkit*/docs/**
56
+ !quadkit*/tests/
57
+ !quadkit*/tests/**
58
+
59
+ # Keep quadkit docs
60
+ !/docs/
61
+ !docs/**
62
+
63
+ # Session / cutover plans at the repo root
64
+ !plans/
65
+ !plans/**
66
+
67
+ # Keep example files for README examples
68
+ !/examples/
69
+ !/examples/**
70
+
71
+ # Re-ignore these AFTER negations (last match wins)
72
+ *.tape
73
+ examples/*/runs/
74
+ __pycache__/
75
+ *.pyc
76
+ *.pyo
77
+ *.egg-info/
78
+ dist/
79
+ build/
80
+ .eggs/
81
+ *.egg
82
+ .pytest_cache/
83
+ .mypy_cache/
84
+ .ruff_cache/
85
+ htmlcov/
86
+ .coverage
87
+ coverage.xml
88
+ test.db
89
+ !quadkit*/tests/fixtures/test.db
90
+ *.log
91
+ *.tmp
92
+
93
+ # Company-specific files (keep private, do not commit)
94
+ .company/
95
+ COMPANY_*.md
96
+ company-config/
97
+ internal-docs/
98
+ # Editor swap files
99
+ *.swp
100
+
101
+ # Tiered package layout (core/, packages/, experimental/<family>/)
102
+ !core/
103
+ !packages/
104
+ !experimental/
105
+ !experimental/*/
106
+ !core/quadkit*/
107
+ !packages/quadkit*/
108
+ !experimental/*/quadkit*/
109
+ !core/quadkit*/pyproject.toml
110
+ !packages/quadkit*/pyproject.toml
111
+ !experimental/*/quadkit*/pyproject.toml
112
+ !core/quadkit*/CHANGELOG.md
113
+ !packages/quadkit*/CHANGELOG.md
114
+ !experimental/*/quadkit*/CHANGELOG.md
115
+ !core/quadkit*/README.md
116
+ !packages/quadkit*/README.md
117
+ !experimental/*/quadkit*/README.md
118
+ !core/quadkit*/alembic.ini
119
+ !packages/quadkit*/alembic.ini
120
+ !experimental/*/quadkit*/alembic.ini
121
+ !core/quadkit*/mypy.ini
122
+ !packages/quadkit*/mypy.ini
123
+ !experimental/*/quadkit*/mypy.ini
124
+ !core/quadkit*/*.yaml.example
125
+ !packages/quadkit*/*.yaml.example
126
+ !experimental/*/quadkit*/*.yaml.example
127
+ !core/quadkit*/src/
128
+ !core/quadkit*/src/**
129
+ !packages/quadkit*/src/
130
+ !packages/quadkit*/src/**
131
+ !experimental/*/quadkit*/src/
132
+ !experimental/*/quadkit*/src/**
133
+ !core/quadkit*/tests/
134
+ !core/quadkit*/tests/**
135
+ !packages/quadkit*/tests/
136
+ !packages/quadkit*/tests/**
137
+ !experimental/*/quadkit*/tests/
138
+ !experimental/*/quadkit*/tests/**
139
+ !core/quadkit*/docs/
140
+ !core/quadkit*/docs/**
141
+ !packages/quadkit*/docs/
142
+ !packages/quadkit*/docs/**
143
+ !experimental/*/quadkit*/docs/
144
+ !experimental/*/quadkit*/docs/**
145
+
146
+ # dev/
147
+ !dev/
148
+ !dev/**
149
+
150
+ # Admin dev playground (committed dev asset; local SQLite files stay ignored)
151
+ !experimental/*/quadkit*/playground/
152
+ !experimental/*/quadkit*/playground/**
153
+ experimental/*/quadkit*/playground/*.db
154
+ experimental/*/quadkit*/playground/*.db-*
155
+
156
+ # Re-exclude private content under the tiered paths.
157
+ # MUST come after the !...docs/** negations above — last match wins.
158
+ core/quadkit*/docs/plans/
159
+ packages/quadkit*/docs/plans/
160
+ experimental/*/quadkit*/docs/plans/
161
+ core/quadkit*/docs/**/
162
+ packages/quadkit*/docs/**/
163
+ experimental/*/quadkit*/docs/**/
164
+
165
+ # Re-exclude tooling artifacts under the tiered paths
166
+ __pycache__/
167
+ *.pyc
168
+ *.pyo
169
+ *.egg-info/
170
+ .pytest_cache/
171
+ .mypy_cache/
172
+ .ruff_cache/
173
+ htmlcov/
174
+ .coverage
175
+ coverage.xml
176
+ test.db
177
+ *.tmp
178
+ *.log
179
+ !core/quadkit*/tests/fixtures/test.db
180
+ !packages/quadkit*/tests/fixtures/test.db
181
+ !experimental/*/quadkit*/tests/fixtures/test.db
182
+
183
+ # Allow the generated example gifs to be tracked (README hero images).
184
+ !core/quadkit*/docs/gifs/
185
+ !core/quadkit*/docs/gifs/**
186
+ !packages/*/quadkit*/docs/gifs/
187
+ !packages/*/quadkit*/docs/gifs/**
188
+ !experimental/*/quadkit*/docs/gifs/
189
+ !experimental/*/quadkit*/docs/gifs/**
190
+ examples/*/screenshot.png
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,35 @@
1
+ Quadkit Framework
2
+ Copyright 2026 Quadkit
3
+
4
+ This product includes software developed by the Quadkit Framework project.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
7
+ use this file except in compliance with the License. You may obtain a copy of
8
+ the License in the LICENSE file at the root of this repository, or at:
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15
+ License for the specific language governing permissions and limitations
16
+ under the License.
17
+
18
+ --------------------------------------------------------------------------
19
+ Prior licensing
20
+ --------------------------------------------------------------------------
21
+
22
+ The 0.0.1 release of this project was distributed under the MIT License.
23
+ That license text is retained in LICENSE-MIT.txt and continues to apply to
24
+ that release. It does not apply to this or any later version.
25
+
26
+ --------------------------------------------------------------------------
27
+ Trademarks
28
+ --------------------------------------------------------------------------
29
+
30
+ "Quadkit" and the Quadkit logo are trademarks of the Quadkit project and
31
+ are not licensed under the Apache License, Version 2.0. See TRADEMARK.md for
32
+ the trademark policy.
33
+
34
+ Quadkit is not affiliated with, endorsed by, or sponsored by any third
35
+ party whose marks may resemble the project name.
@@ -0,0 +1,194 @@
1
+ Metadata-Version: 2.5
2
+ Name: quadkit-cli
3
+ Version: 0.0.2
4
+ Summary: Command-line interface for Quadkit Framework - Project scaffolding, code generation, and development tools
5
+ Project-URL: Homepage, https://quadkit.dev
6
+ Project-URL: Repository, https://github.com/dbtinoy-/quadkit
7
+ Project-URL: Documentation, https://quadkit.dev
8
+ Project-URL: Issues, https://github.com/dbtinoy-/quadkit/issues
9
+ Project-URL: Changelog, https://github.com/dbtinoy-/quadkit/blob/main/CHANGELOG.md
10
+ Author-email: Quadkit Framework Team <team@quadkit.dev>
11
+ Maintainer-email: Quadkit Framework Team <team@quadkit.dev>
12
+ License: Apache-2.0
13
+ License-File: LICENSE
14
+ License-File: NOTICE
15
+ Keywords: cli,codegen,command-line,devtools,framework,scaffolding
16
+ Classifier: Development Status :: 3 - Alpha
17
+ Classifier: Environment :: Console
18
+ Classifier: Intended Audience :: Developers
19
+ Classifier: License :: OSI Approved :: Apache Software License
20
+ Classifier: Operating System :: OS Independent
21
+ Classifier: Programming Language :: Python :: 3
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Topic :: Software Development :: Code Generators
26
+ Classifier: Topic :: Utilities
27
+ Classifier: Typing :: Typed
28
+ Requires-Python: >=3.11
29
+ Requires-Dist: aiofiles>=23.0.0
30
+ Requires-Dist: httpx>=0.25.0
31
+ Requires-Dist: jinja2>=3.1.0
32
+ Requires-Dist: pydantic>=2.10.0
33
+ Requires-Dist: pyyaml>=6.0
34
+ Requires-Dist: quadkit-contracts>=0.0.2
35
+ Requires-Dist: quadkit>=0.0.2
36
+ Requires-Dist: rich>=13.0.0
37
+ Requires-Dist: shellingham>=1.5.0
38
+ Requires-Dist: tomli>=2.0.0
39
+ Requires-Dist: typer[all]>=0.9.0
40
+ Requires-Dist: watchfiles>=0.21.0
41
+ Provides-Extra: all
42
+ Requires-Dist: pytest-asyncio>=0.21.0; extra == 'all'
43
+ Requires-Dist: pytest-cov>=4.0.0; extra == 'all'
44
+ Requires-Dist: pytest>=8.0.0; extra == 'all'
45
+ Requires-Dist: quadkit-testing>=0.0.2; extra == 'all'
46
+ Provides-Extra: dev
47
+ Requires-Dist: black>=23.0.0; extra == 'dev'
48
+ Requires-Dist: mypy>=1.0.0; extra == 'dev'
49
+ Requires-Dist: ruff>=0.1.0; extra == 'dev'
50
+ Provides-Extra: test
51
+ Requires-Dist: pytest-asyncio>=0.21.0; extra == 'test'
52
+ Requires-Dist: pytest-cov>=4.0.0; extra == 'test'
53
+ Requires-Dist: pytest>=8.0.0; extra == 'test'
54
+ Requires-Dist: quadkit-testing>=0.0.2; extra == 'test'
55
+ Description-Content-Type: text/markdown
56
+
57
+ # quadkit-cli
58
+
59
+ Command-line interface for the Quadkit Framework.
60
+
61
+ ---
62
+
63
+ ## Overview
64
+
65
+ The `quadkit` CLI provides project scaffolding, code generation, development tooling, and administrative commands for every stage of the application lifecycle. It uses a contributor-based plugin system so other packages can extend the CLI with new commands and generators.
66
+
67
+ > Full documentation: [docs.quadkit.dev](https://docs.quadkit.dev)
68
+ ## Install
69
+
70
+ ```bash
71
+ uv add quadkit-cli
72
+ # or, as a standalone tool:
73
+ uv tool install quadkit-cli
74
+ ```
75
+
76
+ ## Quick Start
77
+
78
+ ```python
79
+ from quadkit import Application
80
+ from quadkit.di.module import Module, module
81
+
82
+ from quadkit.cli import CLIModule
83
+ from quadkit.cli.config import CLIConfig
84
+
85
+
86
+ @module(imports=[CLIModule.configure(CLIConfig())])
87
+ class AppModule(Module):
88
+ pass
89
+
90
+
91
+ async with Application.boot(modules=[AppModule]) as app:
92
+ # use app.container to resolve services
93
+ ...
94
+ ```
95
+
96
+ Or use the CLI directly:
97
+
98
+ ```bash
99
+ # Create a new web API project
100
+ quadkit new project my-api --template web-api
101
+
102
+ # Scaffold a new extension package
103
+ quadkit new package my-feature
104
+
105
+ # Generate a provider (providers and tests are the built-in generators)
106
+ quadkit gen provider MyProvider
107
+
108
+ # Add the database package to an existing project
109
+ quadkit add database
110
+
111
+ # Start the dev server with hot-reload
112
+ quadkit dev start
113
+ ```
114
+
115
+ ## Configuration
116
+
117
+ > **Zero-config usage:** Call `CLIModule.configure()` with no arguments to use all defaults.
118
+
119
+ ### Option 1 — YAML file
120
+
121
+ ```yaml
122
+ # application.yaml
123
+ cli:
124
+ default_template: "web-api"
125
+ default_database: "postgres"
126
+ color: true
127
+ verbose: false
128
+ ```
129
+
130
+ ### Option 2 — Profiles + Environment Variables *(recommended)*
131
+
132
+ ```bash
133
+ export QK_CLI__DEFAULT_TEMPLATE=web-api
134
+ export QK_CLI__COLOR=true
135
+ export QK_CLI__VERBOSE=false
136
+ ```
137
+
138
+ ### Option 3 — Python
139
+
140
+ ```python
141
+ from quadkit.cli.config import CLIConfig
142
+ from quadkit.cli import CLIModule
143
+
144
+ config = CLIConfig.from_env_profile()
145
+ CLIModule.configure(config)
146
+ ```
147
+
148
+ ### Config reference
149
+
150
+ | Field | Default | Env var | Description |
151
+ |-------|---------|---------|-------------|
152
+ | `default_template` | `"web-api"` | `QK_CLI__DEFAULT_TEMPLATE` | Template used by `quadkit new` |
153
+ | `default_database` | `"postgres"` | `QK_CLI__DEFAULT_DATABASE` | Database driver used by scaffolding |
154
+ | `color` | `true` | `QK_CLI__COLOR` | Enable coloured terminal output |
155
+ | `verbose` | `false` | `QK_CLI__VERBOSE` | Print verbose/debug output |
156
+
157
+ ## Module Factory Methods
158
+
159
+ | Method | Description |
160
+ |--------|-------------|
161
+ | `CLIModule.configure(config)` | Register the CLI module and its contributor-based commands |
162
+ | `CLIModule.stub()` | Minimal module for tests |
163
+
164
+ ## Key Features
165
+
166
+ - **Project scaffolding** — `web-api`, `api`, and `full` templates
167
+ - **Package generation** — scaffold new `quadkit-*` extension packages
168
+ - **Code generators** — `provider` and `test` generators built in; more generators ship as CLI contributors from ecosystem packages (e.g. controllers via `quadkit-web`)
169
+ - **Contributor system** — extensible plugin architecture for new commands
170
+ - **Shell completion** — bash, zsh, and fish completion scripts
171
+
172
+ ## Testing
173
+
174
+ ```python
175
+ from quadkit import Application
176
+ from quadkit.cli import CLIModule
177
+
178
+
179
+ async def test_cli_module():
180
+ async with Application.boot(modules=[CLIModule.stub()]) as app:
181
+ # No-op CLI module for tests
182
+ ...
183
+ ```
184
+
185
+ ## Key Source Files
186
+
187
+ | File | What it contains |
188
+ |------|----------------|
189
+ | `src/quadkit/cli/config.py` | `CLIConfig` configuration dataclass |
190
+ | `src/quadkit/cli/module.py` | CLI module assembly |
191
+ | `src/quadkit/cli/commands/` | All CLI command implementations |
192
+ | `src/quadkit/cli/generators/` | Code generation logic |
193
+ | `src/quadkit/cli/registry/` | Registry subsystems |
194
+ | `src/quadkit/cli/contributors/` | Plugin contributor system |