talira

The minimal, fast, and secure web framework for Python

open sourceApache-2.0free

Falcon is a minimalist Python framework for web APIs and microservices, aimed at reliability and performance at scale. It runs under both ASGI (asyncio) and WSGI, encourages REST with resource classes whose methods handle each HTTP verb, has no dependencies outside the standard library, and avoids magic so it's clear which inputs lead to which outputs. Its makers avoid breaking changes outside major versions and keep 100% test coverage.

Problems it solves

  • build a fast Python REST API with no dependencies beyond the standard library
  • a Python web framework for microservices that won't break my code on minor upgrades
  • serve the same API under ASGI with asyncio or under WSGI with gunicorn
  • a minimal backend framework without ORM, templates or other magic I don't need

Features

  • ASGI and WSGI
  • REST resource classes with per-verb handlers
  • no dependencies outside the standard library
  • 100% test coverage
  • breaking changes only in major versions
  • runs on CPython 3.9+ and PyPy

Alternatives

The same job

These do what Falcon does.

  1. FastAPI FastAPI framework, high performance, easy to learn, fast to code, ready for production
  2. Flask A lightweight WSGI web application framework for Python
  3. Django REST framework A powerful and flexible toolkit for building Web APIs
  4. Puma A Ruby/Rack web server built for parallelism
  5. Starlette Lightweight ASGI framework and toolkit for async Python web services
  6. Sanic Fast asynchronous Python web framework with its own production server

Compare Falcon with the top 3