Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md
🚀 FastAPI for Machine Learning: End-to-End Course
Welcome to the official repository for the FastAPI for Machine Learning course! This comprehensive 20–22 hour course walks you through building powerful, production-ready APIs using FastAPI, with a special focus on deploying Machine Learning models. You’ll learn from API basics to deployment using modern DevOps practices.
📚 Course Overview
This course is designed to help data scientists, backend developers, and AI engineers build real-world ML-powered APIs using FastAPI and deploy them efficiently. We go beyond the basics by incorporating Redis, Docker, JWT, Prometheus, Grafana, and Render.
🧭 Course Modules
| Module | Title | Description |
|---|---|---|
| 1️⃣ | Introduction to APIs | What are APIs, how REST works, HTTP methods, status codes, and best practices. |
| 2️⃣ | Introduction to FastAPI | FastAPI essentials, comparison with Flask, type hinting, async support, and Pydantic. |
| 3️⃣ | Building Basic APIs | Creating routes, Request/Response Models, Query & Path parameters, and Validations. |
| 4️⃣ | Database Integration | SQL integration using ORMs/ODMs. |
| 5️⃣ | Machine Learning Model Integration | Load and serve ML models. |
| 6️⃣ | Advanced FastAPI Concepts | Dependency injection, JWT authentication, API key management, Middlewares, and Error Handling. |
| 7️⃣ | Testing and Debugging | Writing unit & integration tests with pytest, debugging tips, and FastAPI’s Swagger UI. |
| 8️⃣ | Performance Optimization and Monitoring | Caching with Redis and Monitoring with Prometheus & Grafana. |
| 9️⃣ | Capstone Project | A complete Car Price Prediction ML API — with auth, caching, logging, monitoring, and deployed using Docker & Render. |
🛠️ Tech Stack
- 🐍 Python
- ⚡ FastAPI
- 🔐 JWT Authentication
- 🧪 Pytest
- 🧠 Scikit-learn
- 🛢️ SQL
- 🧰 Docker & Docker Compose
- 🔁 Redis
- 📊 Prometheus + Grafana
- ☁️ Render Deployment
💻 Capstone Project
🎯 Car Price Prediction API — A fully production-ready API that includes:
- JWT-based login and API key access
- ML prediction endpoint with Redis caching
- Prometheus monitoring & Grafana dashboard
- Custom exception handling
- Modular project structure and Docker deployment
- Deployed on Render
👉 Find the project code in this repository
🚀 Getting Started
1. Prerequisites
- Python
- Git
- Docker (optional)
2. Clone the Repo
git clone https://github.com/your-username/fastapi-course.git
cd fastapi-course