awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
tiangolo avatar

tiangolo/fastapi

0
View on GitHub↗
99,301 星标·9,441 分支·Python·MIT·13 次浏览fastapi.tiangolo.com↗

Fastapi

FastAPI is a high-performance Python web framework designed for building REST APIs. It operates as an ASGI web framework, providing a system to create structured HTTP endpoints that automatically serialize data and validate request parameters.

The framework utilizes Python type hints to drive data validation and serialization, automatically generating machine-readable OpenAPI and JSON Schema specifications. This process enables the automatic creation of interactive, browser-based API documentation where endpoints can be tested directly.

The project includes a dependency injection system for managing shared logic and supports asynchronous request handling and WebSocket communication for real-time data exchange. It also provides tools for API endpoint security through authentication and authorization standards.

Local development is supported via a server with hot reloading, and the framework includes utilities for automated cloud deployment.

Features

  • Python Web Frameworks - Provides a high-performance web framework for building scalable APIs using Python type hints for validation and serialization.
  • REST API Frameworks - Provides a high-performance framework for building structured REST APIs with automatic serialization and validation.
  • Request Validation - Validates incoming HTTP request bodies, parameters, and headers against defined types with automatic error handling.
  • JSON Response Serializers - Automatically converts server-side Python objects and database models into JSON responses for clients.
  • Automatic Specification Generators - Automatically generates OpenAPI and JSON Schema specifications directly from Python type hints.
  • Data Validation Schemas - Leverages Pydantic and Python type hints to enforce request and response data schemas.
  • Type-Hint-Based Schema Definitions - Uses Python type annotations to automatically drive the serialization of objects into JSON responses.
  • API Documentation - Generates interactive web interfaces for exploring and testing API endpoints directly from the browser.
  • API Schema Generation - Automatically derives machine-readable OpenAPI specifications from the code to power interactive documentation.
  • Asynchronous Request Handlers - Uses non-blocking execution patterns with async and await to handle concurrent web requests efficiently.
  • Asynchronous Runtimes - Utilizes a high-performance ASGI runtime based on Starlette for asynchronous request handling.
  • Asynchronous Web Frameworks - Functions as a high-performance asynchronous web framework built on the ASGI standard.
  • High-Performance Web Services - Designed for high-throughput, low-latency web services using an asynchronous architectural foundation.
  • RESTful API Frameworks - Implements a system for creating structured HTTP endpoints with automatic data serialization and request parameter validation.
  • Production Deployment Tools - Provides a robust foundation for deploying production-grade servers capable of handling heavy workloads.
  • Real-Time Web Communication - Implements persistent bidirectional connections via WebSockets for live, real-time data exchange.
  • Authentication Standards - Includes built-in utilities for securing endpoints using authentication and authorization standards such as tokens and basic credentials.
  • Web Service Security - Integrates authentication and authorization standards to protect API endpoints and restrict access to sensitive data.
  • Dependency Injection - Implements a dependency injection system to resolve shared logic and resources for request handlers.
  • WebSocket Communication - Supports full-duplex WebSocket communication channels for real-time, bidirectional data exchange.
  • API Frameworks - High-performance framework using modern Python type hints.
  • Server Frameworks - High-performance Python framework using standard type hints.
  • Web Frameworks - Provides support for the high-performance Python web framework.

Star 历史

tiangolo/fastapi 的 Star 历史图表tiangolo/fastapi 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Fastapi 的开源替代方案

相似的开源项目,按与 Fastapi 的功能重合度排序。
  • falconry/falconfalconry 的头像

    falconry/falcon

    9,794在 GitHub 上查看↗

    Falcon is a minimalist Python web API framework and high-performance microservices framework. It serves as a resource-oriented API toolkit designed for building RESTful APIs and data plane services that prioritize low overhead, reliability, and scale. The framework implements an ASGI web server interface to handle both synchronous and asynchronous HTTP requests and WebSockets. It features a dedicated HTTP middleware system for intercepting network traffic and executing shared processing logic across multiple API endpoints. Its capability surface covers resource-based routing, HTTP specificat

    Pythonapiapi-restasgi
    在 GitHub 上查看↗9,794
  • litestar-org/litestarlitestar-org 的头像

    litestar-org/litestar

    8,302在 GitHub 上查看↗

    Litestar is a high-performance Python ASGI web framework designed for building asynchronous APIs and web services. It functions as a type-safe toolkit that leverages Python type hints to provide automatic request validation and response serialization, while natively generating interactive API documentation based on the OpenAPI specification. The framework is distinguished by its integrated dependency injection system, which manages shared resources and resolves complex nested service chains directly within request handlers. It further organizes API development through class-based controllers

    Pythonapiasgiasyncio
    在 GitHub 上查看↗8,302
  • zhanymkanov/fastapi-best-practiceszhanymkanov 的头像

    zhanymkanov/fastapi-best-practices

    16,515在 GitHub 上查看↗

    This project provides a comprehensive guide to architectural patterns and best practices for building scalable, maintainable, and performant web applications using FastAPI. It focuses on standardizing development approaches for Python web services, emphasizing robust request validation, dependency injection, and automated documentation standards to ensure consistent API design. The guide distinguishes itself by promoting domain-driven modular packaging, which organizes application logic into isolated, feature-based directories to support long-term codebase scalability. It also details strateg

    best-practicesfastapi
    在 GitHub 上查看↗16,515
  • hugapi/hughugapi 的头像

    hugapi/hug

    6,883在 GitHub 上查看↗

    Hug is a Python API framework used for building web services by mapping functions to HTTP endpoints via decorators and type annotations. It functions as a type-based validator that automatically converts and validates incoming request data based on Python type hints and serves as a WSGI-compliant web framework for deployment on production servers. The project is distinguished by its ability to automatically generate API specifications and user-facing documentation derived from function signatures. It further extends the utility of internal logic by exposing functions as terminal commands thro

    Python
    在 GitHub 上查看↗6,883
查看 Fastapi 的所有 30 个替代方案→

常见问题解答

tiangolo/fastapi 是做什么的?

FastAPI is a high-performance Python web framework designed for building REST APIs. It operates as an ASGI web framework, providing a system to create structured HTTP endpoints that automatically serialize data and validate request parameters.

tiangolo/fastapi 的主要功能有哪些?

tiangolo/fastapi 的主要功能包括:Python Web Frameworks, REST API Frameworks, Request Validation, JSON Response Serializers, Automatic Specification Generators, Data Validation Schemas, Type-Hint-Based Schema Definitions, API Documentation。

tiangolo/fastapi 有哪些开源替代品?

tiangolo/fastapi 的开源替代品包括: falconry/falcon — Falcon is a minimalist Python web API framework and high-performance microservices framework. It serves as a… litestar-org/litestar — Litestar is a high-performance Python ASGI web framework designed for building asynchronous APIs and web services. It… zhanymkanov/fastapi-best-practices — This project provides a comprehensive guide to architectural patterns and best practices for building scalable,… hugapi/hug — Hug is a Python API framework used for building web services by mapping functions to HTTP endpoints via decorators and… vitalik/django-ninja — Django Ninja is a high-performance framework for building type-safe REST APIs using Django. It functions as an OpenAPI… actix/actix-web — Actix Web is an asynchronous web framework designed for building high-performance network services. It provides a…