SyncServerlessClient
is the synchronous Python client for interacting with fal Serverless.
Its namespaces and methods mirror the CLI so you can automate the same workflows from Python.
Import and Initialize
Overview of Namespaces
client.apps.*
— corresponds tofal apps ...
client.runners.*
— corresponds tofal runners ...
client.deploy(...)
— corresponds tofal deploy ...
Apps Namespace
Manage your applications: list them, view runners for a specific app, and adjust scaling.List Applications (fal apps list)
List App Runners (fal apps runners my-app)
Scale Application (fal apps scale)
Maps to CLI flags infal apps scale
. Any omitted option keeps the current value.
Runners Namespace
List and manage runners.List Runners (fal runners list)
Deploy (fal deploy)
Programmatic equivalent offal deploy
. If app_ref
is omitted, discovery behavior matches the CLI (e.g., pyproject.toml
).