$npx skillfedfor your agent

APIFlask

A lightweight web API framework based on Flask.

Worth itPyPI Application FrameworksReleased Jun 2026211.2K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — apiflask-3.1.1-py3-none-any.whl
v3.1.1 · released 2026-06-23 · 7 runtime deps: flask, flask-marshmallow, marshmallow, webargs, flask-httpauth, apispec, pydantic

Yes. APIFlask is actively maintained, has no known vulnerabilities, installs with low friction, and solves a real problem—reducing boilerplate in Flask API development while keeping you in the Flask ecosystem. It's suitable for production use (Development Status: Production/Stable) and works with modern Python versions. Choose it if you want Flask's flexibility with structured API patterns and auto-generated docs, without adopting a heavier framework.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9+ and Flask 2.1+.
  • Low friction install with a pure-Python wheel.
  • Depends on seven runtime packages including Flask, marshmallow, Pydantic, and webargs.

License · maintenance · safety

MIT (permissive) — MIT license is permissive and imposes no restrictions on commercial or private use, modification, or redistribution.

last release 2026-06-23 (52 days) · last repo commit 2026-08-10 · 1,131 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 211,229 downloads/mo, #9,482 on PyPI

Verify before relying

pip install apiflask

from apiflask import APIFlask, Schema
from apiflask.fields import String

app = APIFlask(__name__)

class PetOut(Schema):
    name = String()

@app.get('/pets/<int:pet_id>')
@app.output(PetOut)
def get_pet(pet_id):
    return {'name': 'Kitty'}
  • Performance characteristics under load compared to other Flask-based API frameworks.
  • Maturity and stability of Pydantic model adapter relative to marshmallow schemas.
  • Real-world async support reliability and any known gotchas with Flask 2.0+ async features.
Same gist for agents: .md · .json

What it is and what it does

APIFlask is a thin wrapper around Flask that adds structured API development patterns. It lets you declare request and response schemas using either marshmallow or Pydantic, then automatically validates incoming JSON, deserializes it into your schema, and serializes responses back out—all while generating an OpenAPI specification and interactive Swagger UI documentation on the fly. You write decorators like `@app.input()` and `@app.output()` on your route functions, and APIFlask handles the plumbing: validation errors return JSON, successful responses are formatted consistently, and your API docs stay in sync with your code.

It's built on top of Flask's ecosystem (using flask-marshmallow, webargs, apispec, and flask-httpauth) and remains fully compatible with Flask extensions and patterns. The framework is ORM/ODM-agnostic, so you can use it with SQLAlchemy, MongoDB, or any data layer. It supports both synchronous and asynchronous route handlers, and you can choose between multiple documentation UIs (Swagger UI, Redoc, Elements, RapiDoc, RapiPDF).

Use it for

  • Build REST APIs with automatic request validation and OpenAPI docs without writing boilerplate schema code.
  • Migrate from plain Flask to a structured API framework while keeping all existing Flask extensions and middleware.
  • Generate interactive API documentation (Swagger UI) automatically from your route decorators and schemas.
  • Validate incoming JSON against marshmallow or Pydantic schemas and return consistent error responses.
  • Implement API authentication using Flask-HTTPAuth with minimal setup code.
  • Serialize ORM/ODM model instances directly to JSON responses without manual conversion.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

APIFlask is actively maintained, has no known vulnerabilities, installs with low friction, and solves a real problem—reducing boilerplate in Flask API development while keeping you in the Flask ecosystem. It's suitable for production use (Development Status: Production/Stable) and works with modern Python versions. Choose it if you want Flask's flexibility with structured API patterns and auto-generated docs, without adopting a heavier framework.

Install

apiflask on PyPI

Before you install

Low friction install with a pure-Python wheel. Depends on seven runtime packages including Flask, marshmallow, Pydantic, and webargs. Actively maintained with a recent release and ongoing commits.

Requires Python 3.9+ and Flask 2.1+.

License in practice

MIT license is permissive and imposes no restrictions on commercial or private use, modification, or redistribution.

Quickstart

pip install apiflask

from apiflask import APIFlask, Schema
from apiflask.fields import String

app = APIFlask(__name__)

class PetOut(Schema):
    name = String()

@app.get('/pets/<int:pet_id>')
@app.output(PetOut)
def get_pet(pet_id):
    return {'name': 'Kitty'}

Verify before relying

  • Performance characteristics under load compared to other Flask-based API frameworks.
  • Maturity and stability of Pydantic model adapter relative to marshmallow schemas.
  • Real-world async support reliability and any known gotchas with Flask 2.0+ async features.

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
7 packages
flaskflask-marshmallowmarshmallowwebargsflask-httpauthapispecpydantic
MaintenanceActively maintained 52 days since the last release
Last repo commit
First released
Downloads211,229 / month, #9,482 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: FlaskIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Internet :: WWW/HTTP :: WSGITopic :: Internet :: WWW/HTTP :: WSGI :: ApplicationTopic :: Software Development :: Libraries :: Application Frameworks

Evidence: apiflask-3.1.1-py3-none-any.whl

Tags

Capabilities
flask api framework with validationautomatic openapi documentationmarshmallow pydantic schema validationrest api with flaskjson request response serializationswagger ui api docsflask http authentication
Topics
rest-apiopenapi-generationschema-validation

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 › “marshmallow pydantic schema validation”

  • APIFlaskAPIFlask is a lightweight web API framework that extends Flask with…
  • marshmallow-jsonschemaConverts marshmallow schemas into JSON Schema Draft v7 documents,…
  • marshmallow-enumProvides an Enum field type for Marshmallow schemas, enabling…

Give your agent the search over MCP, or paste the wish link into any chat.

More Application Frameworks packages

fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
textual Worth it
PyPI · Application Frameworks · released Jun 2026

Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.

Install it if you're developing CLI tools, dashboards, or interactive terminal applications.

MITpure Python
443.6Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
mcp Worth it
PyPI · Application Frameworks · released Jul 2026

Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.

Install it if you need to build or connect to servers.

MITpure Python · 3.10+
319.3Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo

See also flask-openapi3 · Flask · flask-apispec · tapipy · Flask-API · Flask-Pydantic · flask-marshmallow · flask-pydantic-spec · apispec-webframeworks