A personal repository for learning and practicing FastAPI, a modern, high-performance Python web framework for building APIs.
This repository contains my FastAPI learning journey, including:
- FastAPI basics
- Routing and path parameters
- Query parameters
- Request and response models
- Pydantic validation
- CRUD APIs
- Dependency Injection
- Database integration
- Authentication & Authorization
- File uploads
- Middleware
- Background tasks
- Deployment
- Python 3.13
- FastAPI
- Uvicorn
- Pydantic
FastApi Learning/
โโโ venv/
โโโ main.py
โโโ README.md
git clone <repository-url>
cd "FastApi Learning"python -m venv venv.\venv\Scripts\Activate.ps1venv\Scripts\activatesource venv/bin/activatepip install fastapi uvicornuvicorn main:app --reloadServer will start at:
http://127.0.0.1:8000
FastAPI automatically generates interactive API documentation.
- Swagger UI: http://127.0.0.1:8000/docs
- ReDoc: http://127.0.0.1:8000/redoc
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def home():
return {"message": "Hello World"}- Learn FastAPI fundamentals
- Build REST APIs
- Perform CRUD operations
- Use Pydantic models
- Connect to a database
- Implement JWT Authentication
- Handle file uploads
- Write unit tests
- Deploy FastAPI applications
- FastAPI Official Documentation: https://fastapi.tiangolo.com/
- Python Documentation: https://docs.python.org/3/
This project is created for educational purposes and personal learning.