Skip to main content

fal is an easy-to-use Serverless Python Framework

Project description

PyPI Tests

fal

fal is a serverless Python runtime that lets you run and scale code in the cloud with no infra management.

With fal, you can build pipelines, serve ML models and scale them up to many users. You scale down to 0 when you don't use any resources.

For full product and platform documentation, see fal.ai/docs.

Quickstart

Install the package and authenticate:

pip install fal
fal auth login

Create a minimal app:

import fal


class MyApp(fal.App):
    @fal.endpoint("/")
    def run(self) -> dict:
        return {"message": "Hello, World!"}

Run it on fal for testing:

fal run hello_world.py::MyApp

Deploy it to a persistent endpoint:

fal deploy hello_world.py::MyApp

Next steps

If you want to go deeper, start with:

Install from source

From the repository root:

pip install -e 'projects/fal[dev]'

Contributing

Running tests

Use the smallest relevant scope first:

pytest -n auto -v projects/fal/tests/unit

Pre-commit

Run the repository hooks before opening or finishing work:

pre-commit run --all-files

Commit format

Please follow the Conventional Commits specification for commit messages.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fal-1.72.6.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fal-1.72.6-py3-none-any.whl (248.4 kB view details)

Uploaded Python 3

File details

Details for the file fal-1.72.6.tar.gz.

File metadata

  • Download URL: fal-1.72.6.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fal-1.72.6.tar.gz
Algorithm Hash digest
SHA256 16d1d50bd8c9af3e621595c2aed03ff54fd9e0961ed27cb541ea4be825b1bc7f
MD5 ac27b6732d65449d159a70615f1ed8d2
BLAKE2b-256 e187cd840531b5dda0b2b91a1ca0cb7931912646691f44919ad3f0792904075b

See more details on using hashes here.

Provenance

The following attestation bundles were made for fal-1.72.6.tar.gz:

Publisher: release.yaml on fal-ai/fal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fal-1.72.6-py3-none-any.whl.

File metadata

  • Download URL: fal-1.72.6-py3-none-any.whl
  • Upload date:
  • Size: 248.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fal-1.72.6-py3-none-any.whl
Algorithm Hash digest
SHA256 43430189fc29ae7d4e8b04dc86e15f47a4ce87a13f71d7434e3c2fbe4a5a4ad4
MD5 1ee25ab0e48072a15962ea3fe5b6e08f
BLAKE2b-256 e5200afdd7a52ddf31d249426ac363c1846744383ec7ef66d5ec8cd6eb4a2ba3

See more details on using hashes here.

Provenance

The following attestation bundles were made for fal-1.72.6-py3-none-any.whl:

Publisher: release.yaml on fal-ai/fal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page