qmetrics.net

Flask RESTX

Flask extension for documented REST APIs

Flask RESTX screenshot

Community-maintained Flask extension for building REST APIs with decorators, models, and automatic Swagger documentation. Forked from Flask-RESTPlus to continue releases.

Overview

Flask-RESTX is a Flask extension for quickly building REST APIs with a coherent set of decorators and helpers. It exposes API documentation through Swagger and is presented as a community-driven fork of Flask-RESTPlus, created because the original PyPI project could not ship new releases.

Developers define namespaces, resource classes, request and response models, and marshalling rules. Decorators document list, create, read, update, and delete operations and attach expected payloads and response codes. The quick-start pattern centers on an Api instance attached to a Flask app, with Resource subclasses handling HTTP methods.

Documentation covers resource routing, argument parsing, error handling, response marshalling, file uploads, blueprint integration, multiple APIs, and exporting OpenAPI specifications with Swagger UI. Python 3.10 or newer is required, with guidance on Flask and Werkzeug version pairings.

Installation is available through pip or easy_install. Guides cover migration from Flask-RESTPlus, model factories, custom fields, and authorization documentation for APIs.

Key features

  • Swagger/OpenAPI documentation
  • Namespace and Resource routing
  • Request and response model factories
  • Marshalling and parsing decorators
  • Blueprint and multi-API support
  • Error handler integration
  • Swagger UI exposure
  • Flask-RESTPlus migration guides

Use cases

  • Documented REST APIs on Flask
  • CRUD services with marshalled models
  • Multi-namespace API projects
  • Swagger-driven API exploration
  • Teams migrating from Flask-RESTPlus

Tags

Similar software

FastAPI

Python web framework for building APIs with type hints

FastAPI is a Python web framework for building APIs using standard type hints. It builds on Starlette and Pydantic and generates interactive OpenAPI documentation for the endpoints you define.

★ 105.1k⟳ 9 days agoMIT

NestJS

Progressive TypeScript framework for Node.js backends

Nest organizes Node server apps with modules, dependency injection, and first-party packages for auth, data, queues, and observability.

★ 77.2k⟳ todayMIT

OkHttp

HTTP client for JVM, Android, and GraalVM

OkHttp is an HTTP client library tuned for efficient networking on Android, Java, and GraalVM native images. It offers synchronous and asynchronous call APIs with a fluent request builder.

★ 47.1k⟳ yesterdayApache-2.0
Frameworks & PlatformsDesktop/CLI app

gRPC

Cross-language remote procedure call framework

gRPC is an RPC framework that lets client and server programs communicate transparently and supports building connected, multi-language systems.

★ 45.5k⟳ todayApache-2.0

tRPC

End-to-end typesafe TypeScript APIs without code generation

tRPC helps teams define server procedures and call them from clients with full TypeScript types for inputs, outputs, and errors—no schemas or codegen step.

★ 40.9k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

go-zero

Cloud-native Go microservices and RPC framework

go-zero is a Go web and RPC framework with code generation, built-in resilience middleware, and tooling aimed at stable high-traffic services.

★ 33.5k⟳ 9 days agoMIT