functions-framework
An open source FaaS (Function as a service) framework for writing portable Python functions -- brought to you by the Google Cloud Functions team.
Decision gist · record as of 2026-08-14
Yes. Production-stable, actively maintained, zero known vulnerabilities, and permissive licensing. Install friction is low. Use it if you're building serverless functions for Google Cloud Run, local testing of cloud functions, or any portable FaaS workload. The framework eliminates boilerplate and handles CloudEvents unmarshalling automatically—solid choice for rapid function development.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with a pure-Python wheel.
- Active maintenance (last commit 2026-08-05, 968 repository stars) and production-stable status.
- Supports Python 3.7 through 3.12.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for both proprietary and open-source projects.
last release 2026-06-17 (58 days) · last repo commit 2026-08-05 · 968 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,965,513 downloads/mo, #1,678 on PyPI
Alternatives
Verify before relying
pip install functions-framework
import functions_framework
import flask
@functions_framework.http
def hello(request: flask.Request) -> flask.typing.ResponseReturnValue:
return "Hello world!"
# Run: functions-framework --target hello --debug- Whether the framework's performance characteristics suit your expected request volume or latency requirements.
- Compatibility with specific Google Cloud Run or Knative deployment configurations beyond the documented quickstarts.
What it is and what it does
Functions Framework is an open-source FaaS runtime maintained by Google Cloud Functions team that abstracts away HTTP server setup and request handling, letting you focus on writing business logic as decorated Python functions. You define a function with a simple decorator (@functions_framework.http or @functions_framework.cloud_event), and the framework handles spinning up a local development server, routing requests, and unmarshalling CloudEvents payloads.
The framework supports HTTP functions (request/response), CloudEvent functions (event-driven), and Pub/Sub event handlers. It runs on your local machine for testing, deploys to Google Cloud Run Functions, or runs in Knative-based environments. Runtime dependencies include Flask for HTTP handling, click for CLI, watchdog for file monitoring, gunicorn and uvicorn for production serving, and cloudevents for spec-compliant event unmarshalling.
Use it for
- Write a simple HTTP endpoint function locally and deploy it unchanged to Google Cloud Run Functions.
- Handle CloudEvents from event sources (Pub/Sub, Cloud Storage) with automatic payload unmarshalling.
- Develop and test serverless functions in a local development server before cloud deployment.
- Build event-driven functions that respond to Pub/Sub messages via the framework's event signature type.
- Prototype lightweight microservices without managing Flask app initialization or WSGI server configuration.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Production-stable, actively maintained, zero known vulnerabilities, and permissive licensing. Install friction is low. Use it if you're building serverless functions for Google Cloud Run, local testing of cloud functions, or any portable FaaS workload. The framework eliminates boilerplate and handles CloudEvents unmarshalling automatically—solid choice for rapid function development.
Install
functions-framework on PyPI
Before you install
Low friction install with a pure-Python wheel. Active maintenance (last commit 2026-08-05, 968 repository stars) and production-stable status. Supports Python 3.7 through 3.12.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for both proprietary and open-source projects.
Quickstart
pip install functions-framework
import functions_framework
import flask
@functions_framework.http
def hello(request: flask.Request) -> flask.typing.ResponseReturnValue:
return "Hello world!"
# Run: functions-framework --target hello --debug
Verify before relying
- Whether the framework's performance characteristics suit your expected request volume or latency requirements.
- Compatibility with specific Google Cloud Run or Knative deployment configurations beyond the documented quickstarts.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <4,>=3.5 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 9 packagesflaskclickwatchdoggunicorncloudeventsWerkzeugstarletteuvicornuvicorn-worker |
| Maintenance | Actively maintained 58 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,965,513 / month, #1,678 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/StableIntended Audience :: DevelopersProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: functions_framework-3.10.2-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 › “serverless function framework python”
- functions-frameworkA lightweight FaaS framework that lets you write portable Python…
- chaliceChalice is a Python framework for building and deploying serverless…
- mangumMangum adapts ASGI applications to run on AWS Lambda, handling events…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
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.
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.
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.
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.
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.
See also cloudevents · lib · serverless-wsgi · google-events · zappa · fastapi-cloudevents · fal · google-cloud-functions · gcloud · google-cloud-deploy