
Product
A Fresh Look for the Socket Dashboard
We’ve redesigned the Socket dashboard with simpler navigation, less visual clutter, and a cleaner UI that highlights what really matters.
fastapi-cookiecutters
Advanced tools
A customizable Cookiecutter template for generating production-ready FastAPI projects
⚡ A Powerhouse Template for FastAPI Projects ⚡
FastAPI Cookiecutter is a highly customizable Python template designed to kickstart your FastAPI applications with a production-ready structure. Perfect for developers who want a scalable, modular foundation without the setup grind.
Install FastAPI Cookiecutter via PyPI (assuming you publish it):
pip install fastapi-cookiecutter
cookiecutter
(automatically installed via pip)After installation, generate a new FastAPI project:
fastapi-cookiecutter
Or use it directly from GitHub:
cookiecutter gh:Mohammad222PR/fastapi-cookiecutters
Answer the prompts to customize your project, and you’re good to go!
Here’s how to wield FastAPI Cookiecutter:
Generate a simple FastAPI app with SQLite:
cookiecutter gh:Mohammad222PR/fastapi-cookiecutters
# Enter project_name="MyAPI", database="sqlite", use_docker="no", use_ci_cd="no"
Create a loaded project with Postgres, Docker, and CI/CD:
cookiecutter gh:Mohammad222PR/fastapi-cookiecutters --no-input \
project_name="MyAPI" database="postgres" use_redis="yes" use_docker="yes" use_ci_cd="yes"
Check the generated README.md
for next steps!
When running the template, you’ll be prompted for:
Option | Description | Choices/Default |
---|---|---|
project_name | Name of your project | e.g., "MyAPI" |
project_slug | Auto-generated project directory name | Auto-filled |
author | Your name | e.g., "Your Name" |
version | Project version | "0.1.0" |
description | Short project description | e.g., "A FastAPI app" |
database | Database type | "postgres" / "sqlite" |
use_redis | Include Redis support | "yes" / "no" |
use_docker | Include Docker and Compose files | "yes" / "no" |
use_ci_cd | Include GitHub Actions CI/CD pipeline | "yes" / "no" |
FastAPI Cookiecutter is licensed under the MIT License. Use it, tweak it, share it—responsibly.
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
We’ve redesigned the Socket dashboard with simpler navigation, less visual clutter, and a cleaner UI that highlights what really matters.
Industry Insights
Terry O’Daniel, Head of Security at Amplitude, shares insights on building high-impact security teams, aligning with engineering, and why AI gives defenders a fighting chance.
Security News
MCP spec updated with structured tool output, stronger OAuth 2.1 security, resource indicators, and protocol cleanups for safer, more reliable AI workflows.