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

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

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

zalando/connexion

0
View on GitHub↗
4,600 星标·784 分支·Python·Apache-2.0·4 次浏览connexion.readthedocs.io/en/latest↗

Connexion

Connexion 是一个规范驱动的框架,用于构建自动将 OpenAPI 规范映射到应用逻辑的 API。它使用这些规范来自动化路由、请求验证和响应序列化,并通过操作 ID 将 API 操作链接到后端处理函数。

该项目通过提供一个模式驱动的 Mock 服务器来区分开来,该服务器使用规范中的示例响应来模拟 API 行为,而无需后端逻辑。它还包括一个动态文档托管系统,将 API 规范转换为实时交互式控制台,用于探索和测试端点。

该框架涵盖了广泛的功能领域,包括通过基于中间件的身份验证和作用域验证实施安全性、可插拔的请求和响应验证逻辑,以及向类型化函数参数自动注入参数。它还提供了用于应用生命周期管理、自定义中间件集成和请求模拟测试的实用工具。

该项目可用于引导独立 Web 应用,或包装在现有框架周围以添加规范驱动的功能。

Features

  • Automatic Route Registration - Automatically maps API endpoints to handler functions by parsing an OpenAPI specification file at startup.
  • Specification-Driven Registrations - Automatically maps API endpoints to backend handler functions by parsing the OpenAPI specification at startup.
  • API Payload Serializers - Converts internal data types into network responses conforming to the content types defined in the API specification.
  • Request Validation - Validates incoming request parameters and payloads against a schema to ensure required data is present.
  • Specification-Driven Registrations - Uses a specification to automate the registration of routes, validation rules, and response serialization.
  • Request Contexts - Provides thread-safe storage for sharing request-scoped data and matched operation metadata across functions.
  • API Route Prefixes - Defines URL path prefixes to version APIs and align clients and servers on service locations.
  • API Access Security - Checks incoming requests against security definitions in the specification to ensure authorized access.
  • API Authentication - Enforces endpoint access restrictions by verifying credentials against the API specification.
  • Request Authentication Middleware - Uses middleware to validate authentication credentials and scopes against the security requirements of the specification.
  • Request Context Injection - Injects operation IDs, base paths, and authenticated user metadata into the runtime request context for handler use.
  • Response Schema Validators - Checks that response bodies and headers match the schema defined in the API specification.
  • Security Logic Decoupling - Decouples security checks from application logic by automating authentication based on the API specification.
  • API Traffic Validation - Validates both incoming requests and outgoing responses against the defined API specification.
  • API Response Serializers - Converts objects into the format defined in the API specification before sending them to the client in the product.
  • API Response Validations - Verifies that the data returned by the server conforms to the schema promised in the API specification in the product.
  • Automatic Parameter Injection - Extracts and casts path, query, and body parameters directly into typed function arguments for handlers.
  • Bidirectional Specification Validation - Ensures that both incoming request data and outgoing response bodies strictly adhere to the API specification.
  • Operation ID Handler Mapping - Links specific API operations to Python functions by matching the operation IDs defined in the specification.
  • Operation ID Mappings - Links API operations to backend functions using the operation IDs defined in the OpenAPI specification.
  • Request Parameter Binding - Maps HTTP request parameters and bodies directly into strongly typed function arguments.
  • Request Schema Validators - Provides automatic request validation by ensuring incoming data conforms to the OpenAPI specification schemas.
  • Response Serialization - Automatically converts returned Python objects into the network format required by the API specification.
  • Typed Path Parameter Decoders - Parses URL path parameter strings into typed primitives with automatic validation before they reach handlers.
  • Method-Based Handler Binding - Binds specific HTTP methods and URL paths to backend handler functions automatically.
  • Interactive API Explorers - Includes a browser-based environment for testing and discovering API capabilities through a visual interface.
  • Interactive API Documentation Servers - Ships a built-in server that hosts interactive Swagger UI or ReDoc documentation from a specification file.
  • Security Scheme Validators - Implements identity verification using registered functions or remote URLs as defined by the API's security requirements.
  • API Reference Resolution - Resolves relative and nested pointers within specifications to support modular API definitions.
  • Operation Metadata - Retrieves operation-specific metadata, such as operation IDs and input schemas, during request processing.
  • API Mocking - Enables API simulation via a CLI to test functionality without implementing a full backend.
  • API Documentation Viewers - Provides interfaces for displaying and exploring API specifications interactively.
  • API Documentation Hosting - Serves interactive, browsable API specifications and documentation interfaces directly from the server.
  • API Mocking Servers - Ships a mock server that simulates API responses based on the provided OpenAPI specification.
  • Pluggable Body Validators - Provides pluggable validation logic for request and response bodies based on specific media types.
  • Interactive API Documentation UIs - Renders API specifications into interactive HTML for browsing and testing endpoints.
  • Middleware Server Integrations - Can be wrapped around existing web applications to add specification-driven routing and validation.
  • Request Middleware - Allows the integration of custom middleware classes to intercept and modify HTTP requests and responses.
  • API Frameworks - OpenAPI-first framework for Python with automatic validation.
  • Language Toolkits - OpenAPI framework for Python with automatic validation.
  • Web Frameworks - Swagger/OpenAPI First framework for Python with automatic endpoint validation.

Star 历史

zalando/connexion 的 Star 历史图表zalando/connexion 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

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

Start searching with AI

常见问题解答

zalando/connexion 是做什么的?

Connexion 是一个规范驱动的框架,用于构建自动将 OpenAPI 规范映射到应用逻辑的 API。它使用这些规范来自动化路由、请求验证和响应序列化,并通过操作 ID 将 API 操作链接到后端处理函数。

zalando/connexion 的主要功能有哪些?

zalando/connexion 的主要功能包括:Automatic Route Registration, Specification-Driven Registrations, API Payload Serializers, Request Validation, Request Contexts, API Route Prefixes, API Access Security, API Authentication。

zalando/connexion 有哪些开源替代品?

zalando/connexion 的开源替代品包括: spec-first/connexion — Connexion is a spec-first Python web framework designed to derive server behavior and validation logic directly from a… flasgger/flasgger — Flasgger is a documentation framework for Flask applications that generates OpenAPI specifications and an integrated… cerbos/cerbos — Cerbos is an open-source authorization service that provides a centralized, language-agnostic engine for managing… mulesoft/api-console — This project is a web-based documentation viewer and interactive console designed to render API specifications into… nodeshift/nodejs-reference-architecture — This project provides a comprehensive architectural framework and set of standardized patterns for building, securing,… typestack/routing-controllers — routing-controllers is a declarative API router and web framework controller for TypeScript. It provides a system for…

Connexion 的开源替代方案

相似的开源项目,按与 Connexion 的功能重合度排序。
  • spec-first/connexionspec-first 的头像

    spec-first/connexion

    4,600在 GitHub 上查看↗

    Connexion is a spec-first Python web framework designed to derive server behavior and validation logic directly from a predefined API contract. It enables the development of web services by using an OpenAPI specification to automatically handle routing, request validation, and response serialization. The framework distinguishes itself by acting as an OpenAPI request validator and mock server. It can simulate API behavior by serving example responses based on specification schemas, allowing for frontend development and prototyping before a backend implementation is completed. Additionally, it

    Pythonapi-firstapi-restflask-extensions
    在 GitHub 上查看↗4,600
  • flasgger/flasggerflasgger 的头像

    flasgger/flasgger

    3,740在 GitHub 上查看↗

    Flasgger is a documentation framework for Flask applications that generates OpenAPI specifications and an integrated Swagger UI. It functions as a documentation generator and specification parser that extracts API schemas from route definitions, function docstrings, and external specification files. The tool allows API definitions to be maintained either within the source code using YAML blocks in docstrings or decoupled into standalone YAML files. It provides a browser-based interactive console for testing and exploring API endpoints directly from the web application. Beyond documentation,

    Python
    在 GitHub 上查看↗3,740
  • cerbos/cerboscerbos 的头像

    cerbos/cerbos

    4,460在 GitHub 上查看↗

    Cerbos is an open-source authorization service that provides a centralized, language-agnostic engine for managing access control. It functions as a policy-as-code platform, allowing teams to define, test, and distribute authorization rules using declarative YAML or JSON configurations. By decoupling access logic from application code, it enables consistent permission enforcement across diverse service stacks. The project distinguishes itself through its ability to translate high-level authorization policies into native database query filters. This capability allows applications to enforce sec

    Goaccess-controlauthorizationgo
    在 GitHub 上查看↗4,460
  • mulesoft/api-consolemulesoft 的头像

    mulesoft/api-console

    907在 GitHub 上查看↗

    This project is a web-based documentation viewer and interactive console designed to render API specifications into browser-based interfaces. It provides a framework for exploring endpoints, managing authorization flows, and executing live test requests directly against defined services. By parsing specification files into structured data models, the tool generates dynamic interfaces that allow developers to interact with API definitions in real time. The console is built as a library of reusable web components, enabling developers to embed documentation viewers into existing web applications

    JavaScriptramlraml-documentraml-tooling
    在 GitHub 上查看↗907
查看 Connexion 的所有 30 个替代方案→