
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.