flask-restx
Fully featured framework for fast, easy and documented API development with Flask
Decision gist · record as of 2026-08-14
Yes. Flask-RESTX is a stable, actively maintained extension with low install friction, no known vulnerabilities, and permissive licensing. It's well-suited for developers building REST APIs on Flask who want automatic documentation and schema validation without the overhead of a full framework migration. The recent maintenance history and broad Python version support make it a reliable choice.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9+; Flask 2.0+ (version 1.3.0+ supports Flask 3.0.0).
- Low install friction with a pure-wheel distribution.
- Actively maintained as of September 2025 with recent commits and community stewardship since early 2023.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is permissive; you can use this in commercial and proprietary projects with minimal restrictions beyond retaining the license notice.
last release 2025-09-23 (325 days) · last repo commit 2026-04-14 · 2,234 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,088,467 downloads/mo, #3,304 on PyPI
Alternatives
Verify before relying
pip install flask-restx
from flask import Flask
from flask_restx import Api, Resource
app = Flask(__name__)
api = Api(app)
ns = api.namespace('items')
@ns.route('/')
class ItemList(Resource):
def get(self):
return {'items': []}
if __name__ == '__main__':
app.run()- Whether the package's Swagger/OpenAPI generation covers all modern OpenAPI 3.x features or remains limited to earlier specs.
- Performance characteristics when documenting large APIs with hundreds of endpoints.
What it is and what it does
Flask-RESTX is a community-maintained extension for Flask that simplifies REST API development by providing a set of decorators and utilities to define endpoints, validate request/response schemas, and automatically generate Swagger documentation. It encourages best practices with minimal boilerplate—you define your API resources as classes, decorate them with namespace and HTTP method handlers, and Flask-RESTX handles routing, validation via jsonschema, and interactive API documentation.
The package depends on Flask, werkzeug, aniso8601 for date parsing, jsonschema for validation, and importlib-resources for resource loading. It's designed for developers already familiar with Flask who want to move faster when building documented APIs without switching to a heavier framework. The library is actively maintained, supports Python 3.9 through 3.12, and has been updated to work with modern Flask and Werkzeug versions.
Use it for
- Build a REST API with automatic Swagger/OpenAPI documentation without writing separate spec files.
- Define request/response schemas using Flask-RESTX field models and validate payloads automatically.
- Organize endpoints into logical namespaces and expose them through a single Api instance.
- Generate interactive API documentation that clients can use to explore and test endpoints.
- Migrate from Flask-RESTPlus to a maintained fork with ongoing community support and compatibility updates.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Flask-RESTX is a stable, actively maintained extension with low install friction, no known vulnerabilities, and permissive licensing. It's well-suited for developers building REST APIs on Flask who want automatic documentation and schema validation without the overhead of a full framework migration. The recent maintenance history and broad Python version support make it a reliable choice.
Install
flask-restx on PyPI
Before you install
Low install friction with a pure-wheel distribution. Actively maintained as of September 2025 with recent commits and community stewardship since early 2023.
Requires Python 3.9+; Flask 2.0+ (version 1.3.0+ supports Flask 3.0.0).
License in practice
BSD-3-Clause is permissive; you can use this in commercial and proprietary projects with minimal restrictions beyond retaining the license notice.
Quickstart
pip install flask-restx
from flask import Flask
from flask_restx import Api, Resource
app = Flask(__name__)
api = Api(app)
ns = api.namespace('items')
@ns.route('/')
class ItemList(Resource):
def get(self):
return {'items': []}
if __name__ == '__main__':
app.run()
Verify before relying
- Whether the package's Swagger/OpenAPI generation covers all modern OpenAPI 3.x features or remains limited to earlier specs.
- Performance characteristics when documenting large APIs with hundreds of endpoints.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesaniso8601jsonschemareferencingFlaskwerkzeugimportlib-resources |
| Maintenance | Actively maintained 325 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,088,467 / month, #3,304 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Software Distribution |
Evidence: flask_restx-1.3.2-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “flask rest extension”
- flask-restxFlask-RESTX extends Flask with decorators and tools to quickly build…
- flask-restplusFlask-RESTPlus adds decorators and tools to Flask for building REST…
- Flask-DatadogFlask-Datadog provides a Flask extension to access DogStatsd metrics…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also flask-restplus · flask-swagger-ui · flask-openapi3 · flask-openapi3-swagger · flask-swagger · Flask-RESTful · flask-apispec · flask-pydantic-spec · flasgger · quart-schema