Skip to content

pimuzzo/python-fastapi-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-fastapi-template

A simple and idiomatic REST API boilerplate in Python using FastAPI, designed for clarity, modularity and extensibility.
Built to showcase best practices in Python backend development and serve as a solid foundation for future projects.

✨ Features

  • 🧱 Modular project structure (api/, models/, services/, etc.)
  • πŸ”€ Routing with versioned endpoints
  • πŸ“„ OpenAPI docs auto-generated (/docs, /redoc)
  • βœ… Data validation and typing with Pydantic v2
  • πŸ§ͺ Async-ready test setup with pytest, httpx, pytest-asyncio
  • 🐳 Minimal Docker support
  • 🧰 Designed as a reusable starter template

πŸ“¦ Technologies

  • Python 3.13+
  • FastAPI
  • Uvicorn (ASGI server)
  • Pydantic v2

πŸš€ Getting Started

# Install dependencies
poetry install

# Run the development server
poetry run uvicorn app.main:app --reload --log-config=log_config.yml

About

Starter template for building RESTful APIs in Python with FastAPI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors