Skip to main content

functualize-lambda

Status: Published — Independently installable from PyPI.

AWS Lambda adapter plugin for functualize.

Supports two deployment patterns:

  1. Fat Lambda — Single Lambda function with internal routing via event["job"]
  2. Thin Lambda — One Lambda per job via make_handler(job_name)

Installation

pip install functualize-lambda

Usage

Fat Lambda (internal routing)

from functualize.app import FunctualizeApp, JobSources
from functualize_lambda import LambdaAdapter

app = FunctualizeApp("my-app", job_sources=JobSources(functions=[deploy, rollback]))
adapter = LambdaAdapter()
adapter(app)

def handler(event, context):
    return adapter.run(event, context)

The event envelope

Breaking change in this release. A job's parameters used to sit under kwargs; they are now under arguments, with the control inputs beside them.

// Before
{"job": "deploy", "kwargs": {"target": "prod"}}

// After
{
  "job":                  "deploy",
  "arguments":            {"target": "prod"},
  "group_option_values":  {"env": "staging"},
  "scope_id":             "run-42",
  "force":                true
}

The nesting is the fix, not decoration: with the parameters flat against the control inputs, an argument named scope_id chose the workflow scope the run joined instead of reaching the job.

scope_id is what makes a gated workflow resumable over Lambda — invoke, read the id back from the result, answer the gate, invoke again with the same id. All fields but job are optional, and one parser (functualize.types.request_from_envelope) serves every wire surface, so Lambda and HTTP cannot drift apart on what a payload means.

Thin Lambda (per-job handler)

from functualize.app import FunctualizeApp, JobSources
from functualize_lambda import LambdaAdapter

app = FunctualizeApp("my-app", job_sources=JobSources(functions=[deploy]))
adapter = LambdaAdapter()
adapter(app)

handler = adapter.make_handler("deploy")

Release files for functualize-lambda 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for functualize-lambda 0.4.0
File Size Uploaded
functualize_lambda-0.4.0.tar.gz 17.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for functualize-lambda 0.4.0
File Interpreter ABI Platform
functualize_lambda-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.7 kB

Release files / functualize_lambda-0.4.0.tar.gz

Download URL functualize_lambda-0.4.0.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4b0423dc99f773c975eb270f2457b57a94a965ac8cd469747a5768423d3a6f2d
BLAKE2b-256 checksum
How to use checksums
137d787815300d5f9bcea63b4c2f5c099c6179ea1f6af69d41869b83ed57424b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / functualize_lambda-0.4.0-py3-none-any.whl

Download URL functualize_lambda-0.4.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
858d831ff63f486185283fa5cab31d16293ad6ec09639bdbd5d5451c7c3680c2
BLAKE2b-256 checksum
How to use checksums
2eae4a36cc442d6ae5ea5a7ee182f02f29c22404f74d8ace32e891ece6fd8e56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page