Skip to main content

Classes

SyncServerlessClient

Synchronous Python client for fal Serverless. Manage apps, runners, and deployments programmatically. The namespaces and methods mirror the CLI so you can automate the same workflows from Python. Example:
Namespaces:
  • client.apps.* - corresponds to fal apps ...
  • client.runners.* - corresponds to fal runners ...
  • client.keys.* - corresponds to fal keys ...
  • client.secrets.* - corresponds to fal secrets ...
  • client.deploy() - corresponds to fal deploy ...

Constructor Parameters

Class Variables

Properties

Methods

deploy

Deploy an application. Corresponds to fal deploy. If app_ref is omitted, discovery behavior matches the CLI (e.g., uses pyproject.toml).Example:

AppsNamespace

Namespace for app management operations. Corresponds to fal apps ... CLI commands. Accessed via client.apps. Example:

Constructor Parameters

Methods

list

List all applications. Corresponds to fal apps list.Example:
Returns: list[AliasInfo]

rollout

Returns: NoneType

runners

List runners for a specific app. Corresponds to fal apps runners \<app\>.Example:
Returns: list[RunnerInfo]

scale

Adjust scaling settings for an application. Corresponds to fal apps scale. Any omitted option keeps the current value.Example:
Returns: AliasInfo

RunnersNamespace

Namespace for runner management operations. Corresponds to fal runners ... CLI commands. Accessed via client.runners. Example:

Constructor Parameters

Methods

kill

Forcefully kill a runner.Returns: NoneType

list

List all runners. Corresponds to fal runners list.Example:
Returns: list[RunnerInfo]

stop

Gracefully stop a runner.Returns: NoneType

KeysNamespace

Namespace for API key management. Corresponds to fal keys ... CLI commands. Accessed via client.keys. Example:

Constructor Parameters

Methods

create

Create a new API key.Returns: tuple[str, str]

list

List all API keys.Returns: list[UserKeyInfo]

revoke

Revoke an API key.Returns: NoneType

SecretsNamespace

Namespace for secrets management. Corresponds to fal secrets ... CLI commands. Accessed via client.secrets. Example:

Constructor Parameters

Methods

list

List all secrets (names only, not values).Returns: list[ServerlessSecret]

set

Set a secret value.Returns: NoneType

unset

Delete a secret.Returns: NoneType