-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcookiecutter.json
More file actions
34 lines (34 loc) · 1.47 KB
/
Copy pathcookiecutter.json
File metadata and controls
34 lines (34 loc) · 1.47 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
{
"project_name": "My FastAPI Service",
"project_slug": "{{ cookiecutter.project_name.lower().replace(' ', '-').replace('_', '-') }}",
"package_name": "{{ cookiecutter.project_slug.lower().replace('-', '_') }}",
"project_description": "A production-ready FastAPI service.",
"author_name": "Your Name",
"author_email": "you@example.com",
"version": "0.1.0",
"python_version": ["3.12", "3.11", "3.13"],
"app_port": "8000",
"use_postgres": ["yes", "no"],
"use_api_key": ["no", "yes"],
"__prompts__": {
"project_name": "Human-readable project name",
"project_slug": "Directory/repo name (kebab-case)",
"package_name": "Importable Python package name (snake_case)",
"project_description": "Short description of the service",
"author_name": "Author name",
"author_email": "Author email",
"version": "Initial version",
"python_version": "Python version",
"app_port": "Port the API listens on",
"use_postgres": {
"__prompt__": "Include a PostgreSQL service and async DB session?",
"yes": "Yes — add Postgres to docker-compose and wire up SQLAlchemy",
"no": "No — app only"
},
"use_api_key": {
"__prompt__": "Protect the API with a Bearer API key (Authorization: Bearer <API_KEY>)?",
"yes": "Yes — require an API key on application routes",
"no": "No — leave the API open"
}
}
}