FastAPI Best Practices Configuration
A set of guidelines and templates for developing scalable and maintainable FastAPI applications, emphasizing best practices in coding standards, project structure, and data modeling.
Core Guidelines
- FastAPI Best Practices:
Provides recommendations for building high-performance APIs with FastAPI, focusing on asynchronous operations and error handling. - FastAPI Folder Structure:
Outlines a standardized directory structure for organizing FastAPI projects, ensuring clarity and maintainability. - FastAPI Main Application File:
Offers a template for the main application file, including setup for routes, middleware, and dependency injection.
Data Modeling & Coding Standards
- Pydantic Models:
Guides the creation of robust data models using Pydantic, ensuring validation and serialization best practices. - Python General Coding Standards:
Adheres to Python coding conventions, emphasizing readability, consistency, and maintainability across the project.
Key Technologies:
- FastAPI
- Pydantic
- Python Coding Standards
Overview of .cursorrules prompt
The .cursorrules
configuration provides guidelines and templates for developing scalable and maintainable FastAPI applications. It emphasizes best practices in coding standards, project structure, and data modeling using Pydantic. The configuration includes recommendations for the main application file, folder structure, and adherence to Python coding standards.