-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtemplates.json
More file actions
543 lines (543 loc) · 16.2 KB
/
Copy pathtemplates.json
File metadata and controls
543 lines (543 loc) · 16.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
{
"$schema": "./templates.schema.json",
"categories": [
{
"slug": "backend-applications",
"name": "Backend Applications",
"description": "API and service starters for FastAPI and similar Python backends.",
"details": "Use when the deliverable is an HTTP API or background worker \u2014 FastAPI for async APIs with OpenAPI docs.",
"labels": [
"Backend",
"API",
"Python",
"FastAPI"
]
},
{
"slug": "ci",
"name": "CI",
"description": "Continuous integration and repository automation.",
"details": "GitHub Actions, Dependabot, and related repository workflows.",
"labels": [
"CI",
"GitHub",
"DevOps"
]
},
{
"slug": "containers",
"name": "Containers",
"description": "Docker and Compose packaging for the app.",
"details": "Add when you want container images and compose stacks for the API.",
"labels": [
"Docker",
"Compose",
"DevOps"
]
},
{
"slug": "database",
"name": "Database",
"description": "Database services and connection scaffolding.",
"details": "Pair with the app when you need Postgres (or similar) locally/in compose.",
"labels": [
"PostgreSQL",
"Database"
]
},
{
"slug": "editor",
"name": "Editor",
"description": "Editor and remote development ergonomics.",
"details": "Dev Containers and related IDE integrations.",
"labels": [
"DevContainer",
"VS Code"
]
},
{
"slug": "cli-applications",
"name": "CLI Applications",
"description": "Command-line tools and console scripts.",
"details": "Use for Typer/Click CLIs and internal utilities shipped as entry points.",
"labels": [
"CLI",
"Python",
"Typer"
]
},
{
"slug": "observability",
"name": "Observability",
"description": "Error tracking, metrics, and tracing integrations.",
"details": "Add when you need production diagnostics such as Sentry.",
"labels": [
"Observability",
"Sentry",
"Monitoring"
]
},
{
"slug": "security",
"name": "Security",
"description": "Authentication and authorization scaffolds.",
"details": "JWT/session auth skeletons and related security helpers.",
"labels": [
"Auth",
"JWT",
"Security"
]
},
{
"slug": "monorepo",
"name": "Monorepo",
"description": "Multi-package workspaces with shared tooling and one lockfile.",
"details": "Use when you need multiple libraries and apps in one repo \u2014 uv workspaces link members locally with a single virtual environment.",
"labels": [
"Monorepo",
"uv",
"Workspace",
"Python"
]
},
{
"slug": "ai-ml-applications",
"name": "AI/ML Applications",
"description": "FastAPI AI and ML capability extensions.",
"details": "Add when you need LLM-backed chat, retrieval, or agent endpoints on a FastAPI starter.",
"labels": [
"AI",
"ML",
"LangChain",
"FastAPI"
]
},
{
"slug": "mlops",
"name": "MLOps",
"description": "MLOps framework starters and training/serving pipelines.",
"details": "CPU-first sklearn/pytorch/tensorflow topologies with MLflow-friendly defaults.",
"labels": [
"MLOps",
"sklearn",
"MLflow",
"Python"
]
}
],
"templates": [
{
"name": "FastAPI Starter",
"slug": "fastapi-starter",
"description": "Production-ready FastAPI API with feature-based layout, uv, Ruff, pytest, mypy, pyright, and pydantic-settings. The reference CPA backend template.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=templates/fastapi-starter",
"type": "fastapi-backend",
"category": "backend-applications",
"labels": [
"FastAPI",
"API",
"Python",
"uv",
"Backend",
"Type Hints",
"mypy",
"pyright"
]
},
{
"name": "CLI Starter",
"slug": "cli-starter",
"description": "Typer CLI with multi-command layout, uv, Ruff, pytest, and a console script entry point. Best for internal tools and shippable CLIs.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=templates/cli-starter",
"type": "cli-app",
"category": "cli-applications",
"labels": [
"CLI",
"Typer",
"Python",
"uv"
]
},
{
"name": "Celery Worker",
"slug": "celery-worker",
"description": "Celery worker with modular tasks, Redis defaults, pydantic-settings, and eager-mode tests. Choose it for background jobs outside the HTTP process.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=templates/celery-worker",
"type": "celery-worker",
"category": "backend-applications",
"labels": [
"Celery",
"Worker",
"Redis",
"Python",
"uv"
]
},
{
"name": "Django API",
"slug": "django-api",
"description": "Django + DRF API with feature apps, OpenAPI-friendly health probes, uv, Ruff, and pytest-django. Use when you want Django's ORM and admin with a clean API layout.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=templates/django-api",
"type": "django-backend",
"category": "backend-applications",
"labels": [
"Django",
"DRF",
"API",
"Python",
"uv"
]
},
{
"name": "uv Workspace Starter",
"slug": "uv-workspace-starter",
"description": "Python monorepo using uv workspaces: shared packages/ libraries and apps/ deployables with one lockfile, Ruff, Pyright, and pytest.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=templates/uv-workspace-starter",
"type": "uv-workspace",
"category": "monorepo",
"labels": [
"Monorepo",
"uv",
"Workspace",
"Python",
"Typer"
]
},
{
"name": "MLOps sklearn Starter",
"slug": "mlops-sklearn-starter",
"description": "CPU-first sklearn MLOps pipeline with YAML configs, step architecture, local MLflow, and batch/FastAPI serving.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=templates/mlops-sklearn-starter",
"type": "mlops-sklearn",
"category": "mlops",
"labels": [
"MLOps",
"sklearn",
"MLflow",
"Python",
"uv"
]
}
],
"extensions": [
{
"name": "GitHub Setup",
"slug": "github-setup",
"description": "GitHub Actions CI, MegaLinter, Danger PR review, todo-to-issue, Dependabot, and issue/PR templates. Use for any CPA template that lives on GitHub.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/all-github-setup",
"type": [
"celery-worker",
"cli-app",
"django-backend",
"fastapi-backend",
"mlops-sklearn",
"uv-workspace"
],
"category": "ci",
"labels": [
"GitHub",
"CI",
"DevOps",
"MegaLinter",
"Danger"
]
},
{
"name": "Development Container",
"slug": "development-container",
"description": "VS Code Dev Container with Python 3.12 and uv for consistent editor environments across stacks.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/all-devcontainer",
"type": [
"celery-worker",
"cli-app",
"django-backend",
"fastapi-backend",
"uv-workspace"
],
"category": "editor",
"labels": [
"DevContainer",
"VS Code",
"uv"
]
},
{
"name": "Postgres",
"slug": "postgres",
"description": "PostgreSQL 16 Compose service under docker/postgres/ plus env examples. Infra-only \u2014 does not write application ORM code.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/all-postgres",
"type": [
"celery-worker",
"django-backend",
"fastapi-backend"
],
"category": "database",
"labels": [
"PostgreSQL",
"Database",
"Docker"
]
},
{
"name": "FastAPI CORS",
"slug": "fastapi-cors",
"description": "CORS middleware helper for FastAPI (no-op without CORS_ORIGINS).",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/fastapi-cors",
"type": [
"fastapi-backend"
],
"category": "security",
"labels": [
"CORS",
"Security",
"FastAPI",
"Middleware"
]
},
{
"name": "FastAPI Docker",
"slug": "fastapi-docker",
"description": "Dockerfile and Compose for FastAPI (uvicorn app.main:app). Reach for it when containerizing the FastAPI starter.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/fastapi-docker",
"type": [
"fastapi-backend"
],
"category": "containers",
"labels": [
"Docker",
"FastAPI",
"Container"
]
},
{
"name": "Django Docker",
"slug": "django-docker",
"description": "Dockerfile and Compose for Django (runserver / gunicorn config.wsgi). Use with django-api.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/django-docker",
"type": [
"django-backend"
],
"category": "containers",
"labels": [
"Docker",
"Django",
"Container"
]
},
{
"name": "Celery Docker",
"slug": "celery-docker",
"description": "Dockerfile and Compose for a Celery worker plus Redis broker. Pair with a reachable BROKER_URL (Compose sets redis://redis:6379/0).",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/celery-docker",
"type": [
"celery-worker"
],
"category": "containers",
"labels": [
"Docker",
"Celery",
"Container"
],
"incompatibleWith": ["flower-docker"]
},
{
"name": "Flower (Celery monitoring)",
"slug": "flower-docker",
"description": "Flower monitoring for Celery tasks — Compose stack with Redis, worker, and Flower dashboard (port 5555).",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/flower-docker",
"type": [
"celery-worker"
],
"category": "observability",
"labels": [
"Flower",
"Celery",
"Monitoring",
"Observability"
],
"incompatibleWith": ["celery-docker"]
},
{
"name": "FastAPI SQLAlchemy",
"slug": "fastapi-sqlalchemy",
"description": "SQLAlchemy 2.x session helpers and Alembic migrations for FastAPI (writes app/db/).",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/fastapi-sqlalchemy",
"type": [
"fastapi-backend"
],
"category": "database",
"labels": [
"SQLAlchemy",
"Alembic",
"ORM",
"FastAPI"
]
},
{
"name": "FastAPI Redis",
"slug": "fastapi-redis",
"description": "Redis client helper under app/core plus a local Redis Compose service for FastAPI apps.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/fastapi-redis",
"type": [
"fastapi-backend"
],
"category": "database",
"labels": [
"Redis",
"Cache",
"FastAPI"
]
},
{
"name": "FastAPI Sentry",
"slug": "fastapi-sentry",
"description": "Sentry SDK helper for FastAPI with env-driven init (no-op without SENTRY_DSN).",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/fastapi-sentry",
"type": [
"fastapi-backend"
],
"category": "observability",
"labels": [
"Sentry",
"Observability",
"FastAPI"
]
},
{
"name": "FastAPI Auth JWT",
"slug": "fastapi-auth-jwt",
"description": "JWT auth feature skeleton under app/features/auth for FastAPI starters.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/fastapi-auth-jwt",
"type": [
"fastapi-backend"
],
"category": "security",
"labels": [
"Auth",
"JWT",
"FastAPI",
"Security"
]
},
{
"name": "Pre-commit",
"slug": "pre-commit",
"description": "Local quality gates with Ruff, YAML validation, and whitespace checks for every CPA template.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/all-pre-commit",
"type": [
"celery-worker",
"cli-app",
"django-backend",
"fastapi-backend",
"uv-workspace"
],
"category": "ci",
"labels": [
"Pre-commit",
"Quality",
"Git Hooks"
]
},
{
"name": "FastAPI OpenTelemetry",
"slug": "fastapi-opentelemetry",
"description": "OpenTelemetry tracing and logging hooks for FastAPI projects, useful for local debugging and observability setup.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/fastapi-opentelemetry",
"type": [
"fastapi-backend"
],
"category": "observability",
"labels": [
"OpenTelemetry",
"Tracing",
"Observability"
],
"incompatibleWith": [
"fastapi-mlflow-tracing"
]
},
{
"name": "FastAPI Rate Limit",
"slug": "fastapi-rate-limit",
"description": "Rate limiting helper using slowapi (in-memory by default, Redis-ready).",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/fastapi-rate-limit",
"type": [
"fastapi-backend"
],
"category": "security",
"labels": [
"Rate Limit",
"Security",
"FastAPI"
]
},
{
"name": "FastAPI MLflow Tracing",
"slug": "fastapi-mlflow-tracing",
"description": "Generic MLflow tracing infrastructure for FastAPI. Disabled by default; exposes reusable primitives for future extensions.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/fastapi-mlflow-tracing",
"type": [
"fastapi-backend"
],
"category": "observability",
"labels": [
"MLflow",
"Tracing",
"Observability",
"FastAPI"
],
"incompatibleWith": [
"fastapi-opentelemetry"
]
},
{
"name": "FastAPI RAG pgvector",
"slug": "fastapi-rag-pgvector",
"description": "Foundational RAG data layer using pgvector. Provides agnostic chunking, embedding generation, and vector retrieval services.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/fastapi-rag-pgvector",
"type": [
"fastapi-backend"
],
"category": "ai-ml-applications",
"labels": [
"RAG",
"AI",
"pgvector",
"FastAPI",
"PostgreSQL"
]
},
{
"name": "FastAPI AI Chat",
"slug": "fastapi-ai-chat",
"description": "Minimal /chat endpoint backed by LangChain's BaseChatModel. Mock provider by default \u2014 drop in a real provider via init_chat_model() with no interface change.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/fastapi-ai-chat",
"type": [
"fastapi-backend"
],
"category": "ai-ml-applications",
"labels": [
"LangChain",
"AI",
"Chat",
"FastAPI"
]
},
{
"name": "Django Spectacular",
"slug": "django-spectacular",
"description": "OpenAPI 3 schema generation and Swagger UI for Django REST Framework.",
"url": "https://github.com/Create-Python-App/cpa-templates?subdir=extensions/django-spectacular",
"type": [
"django-backend"
],
"category": "observability",
"labels": [
"Django",
"OpenAPI",
"Swagger",
"DRF"
]
}
]
}