AI Agent Hub

Blog

In-depth articles on AI agents, LLM engineering, servers, Python and software development.

📝
Advanced FastAPI Path Parameters: Dynamic Routing and Parameter Validation
Dec 20, 2025 · FastAPI Framework

FastAPI supports dynamic routing and parameter validation with flexibility and robustness. Basic usage includes paths like `/users/{user_id}`, where parameters can be automatically type-identified (e.

# FastAPI path parameters # Dynamic routing # parameter validation 1,550 views
📝
FastAPI + SQLite: Quickly Build a Lightweight Database API Service
Dec 20, 2025 · FastAPI Framework

This article introduces the process of quickly building a "Student Information Management" database API service using FastAPI and SQLite. First, dependencies such as FastAPI, Uvicorn, and SQLAlchemy a

# FastAPI # SQLite # Student Information Management 1,662 views
📝
FastAPI + Frontend Interaction: Practical JavaScript Call to FastAPI API
Dec 20, 2025 · FastAPI Framework

This article introduces the interaction methods between a FastAPI backend and frontend JavaScript. The core principle is that the frontend calls the backend API through HTTP requests, and the backend

# FastAPI # JavaScript # Front end interaction 1,619 views
📝
FastAPI Deployment Guide: A Comprehensive Process from Local Development to Cloud Server Deployment
Dec 20, 2025 · FastAPI Framework

This article introduces the complete deployment process of FastAPI, from local development to cloud server deployment. First, install FastAPI and Uvicorn locally, write a simple interface (e.g., `main

# FastAPI deployment # Python Web Deployment # Cloud server deployment 2,368 views
📝
FastAPI + Pydantic: Best Practices for Data Model Definition and Serialization
Dec 20, 2025 · FastAPI Framework

Combining FastAPI with Pydantic is an efficient combination for data processing in modern web development, where Pydantic focuses on data validation and serialization, and FastAPI provides high perfor

# FastAPI # Pydantic # data model 1,206 views
📝
Practical Guide to FastAPI Middleware: Implementing Request Logging and Response Time Statistics
Dec 20, 2025 · FastAPI Framework

This article introduces the use of FastAPI middleware for uniformly handling request/response logic (such as logging and authentication) to avoid repetitive code. First, FastAPI and Uvicorn need to be

# FastAPI middleware # request log # Response time statistics 909 views
📝
Detailed Explanation of FastAPI Request Bodies: Defining Complex Data Structures with Pydantic
Dec 20, 2025 · FastAPI Framework

This article introduces Pydantic, a core tool in FastAPI for handling complex request bodies. Request bodies are used to pass complex data (e.g., JSON) in POST/PUT requests and are more suitable for s

# FastAPI Request Body # Pydantic model # Data Validation 915 views
📝
FastAPI and Python Version Compatibility: Version Issues to Note for Beginners
Dec 20, 2025 · FastAPI Framework

Python version compatibility is crucial in FastAPI development. Mismatched versions can lead to installation failures, errors, or missing functionality. FastAPI supports a minimum Python version of 3.

# FastAPI Python compatibility # Python version upgrade # FastAPI version compatible 3,103 views
📝
Detailed Explanation of FastAPI Dependency Injection: Basic and Advanced Usage of Depends
Dec 20, 2025 · FastAPI Framework

Dependency Injection (DI) core is to inject dependencies (such as database connections) into functions automatically by the system, rather than having the functions acquire them themselves, thereby en

# FastAPI # Dependency Injection # Depends 996 views
📝
Enhancing FastAPI Documentation: Tips for Customizing Swagger UI
Dec 20, 2025 · FastAPI Framework

Swagger UI is the default API documentation tool for FastAPI, enabling interface visualization and testing. Customization can enhance its professionalism. For basic modifications, set parameters like

# FastAPI # Swagger UI # API document beautification 1,299 views