falcon
The ultra-reliable, fast ASGI+WSGI framework for building data plane APIs at scale.
What it is and what it does
Falcon is a web framework built from the ground up for REST APIs and microservices. It strips away unnecessary abstractions and dependencies, giving you direct control over HTTP semantics and request routing. The framework supports both ASGI (async) and WSGI (sync) protocols, works with standard Python servers, and compiles with Cython for extra performance when available.
You use Falcon when you need a fast, reliable, debuggable API backend without the overhead of heavier frameworks. It enforces no magic globals, requires explicit middleware and hooks, and keeps error handling straightforward. The zero-dependency design minimizes your app's attack surface and avoids transitive breakage. It's particularly suited for large-scale microservices, cloud deployments, and scenarios where performance and code clarity matter more than built-in conveniences.
Use it for:
- Build a high-throughput REST API backend for a microservices architecture where performance and minimal dependencies are critical.
- Create a lightweight HTTP service that needs to run on constrained infrastructure or inside containers with minimal footprint.
- Develop an async API using native asyncio support for I/O-bound operations like database queries or external API calls.
- Migrate from a heavier framework to reduce code size and response latency while maintaining HTTP correctness and RFC adherence.
- Build a data plane API at scale where you need explicit control over routing, middleware, and error handling without framework magic.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Falcon is a minimalist ASGI/WSGI framework for building REST APIs and microservices, designed for high performance and reliability at scale with no external dependencies.
Yes. Falcon is production-ready, actively maintained, has no external dependencies, and is well-suited for REST APIs and microservices where performance and code clarity are priorities. Install it if you want a fast, reliable, minimalist framework; skip it if you need built-in ORM, templating, or admin interfaces that heavier frameworks provide out of the box.
Install
falcon on PyPI
pip
pip install falconuv
uv add falconpoetry
poetry add falconInstalling falcon
Before you install
Installation is straightforward with low friction—Falcon has zero runtime dependencies outside the standard library, reducing attack surface and transitive breakage risk. The project is actively maintained with recent releases and strong community engagement.
License in practice
Falcon is licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions—you may use, modify, and distribute it freely provided you include a copy of the license and state significant changes.
Quickstart
pip install falcon
import falcon
class HelloResource:
def on_get(self, req, resp):
resp.text = 'Hello, World!'
app = falcon.App()
app.add_route('/hello', HelloResource())
Requires Python 3.9 or later (CPython 3.9+ or PyPy 3.9+); a WSGI or ASGI server (e.g., gunicorn, uvicorn) is needed to run the app in production.
Verify before relying
- Specific performance benchmarks against other frameworks (description mentions 'three times faster' but context is unclear)
- Whether Cython compilation is automatic or requires additional setup on all platforms
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 59 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,833,126/month — #3,507 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: falcon-4.3.1-py3-none-any.whl
Keywords: asgi, wsgi, web, api, framework, rest, http, cloud
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
crowdstrike-falconpyFalconPy is the official CrowdStrike Falcon SDK…
permissive · top 5,000 on PyPI
hughug is a Python framework for building REST…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-falconAdds distributed tracing to Falcon web…
permissive · top 5,000 on PyPI
starletteStarlette is a lightweight ASGI framework for…
permissive · top 100 on PyPI
granianGranian is a Rust-based HTTP server that runs…
permissive · top 5,000 on PyPI
pyramidPyramid is a Python web framework for building…
permissive · top 5,000 on PyPI
toolA compact modular framework for building WSGI…
copyleft · top 15,000 on PyPI
bottleBottle is a lightweight WSGI microframework for…
permissive · top 5,000 on PyPI
uvicornUvicorn is an ASGI web server that runs async…
permissive · top 100 on PyPI
namekoNameko is a microservices framework for Python…
permissive · top 15,000 on PyPI