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.

Quickstart

First, you need to install the fal package. You can do so using pip:

pip install fal

Then you need to authenticate:

fal auth login

You can also use fal keys that you can get from our dashboard.

Now can use the fal package in your Python scripts as follows:

import fal

@fal.function(
    "virtualenv",
    requirements=["pyjokes"],
)
def tell_joke() -> str:
    import pyjokes

    joke = pyjokes.get_joke()
    return joke

print("Joke from the clouds: ", tell_joke())

A new virtual environment will be created by fal in the cloud and the set of requirements that we passed will be installed as soon as this function is called. From that point on, our code will be executed as if it were running locally, and the joke prepared by the pyjokes library will be returned.

Next steps

If you would like to find out more about the capabilities of fal, check out to the docs. You can learn more about persistent storage, function caches and deploying your functions as API endpoints.

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-0.14.0.tar.gz (59.5 kB view details)

Uploaded Source

Built Distribution

fal-0.14.0-py3-none-any.whl (94.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fal-0.14.0.tar.gz
  • Upload date:
  • Size: 59.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.19 Linux/6.5.0-1017-azure

File hashes

Hashes for fal-0.14.0.tar.gz
Algorithm Hash digest
SHA256 bca72afde3dfc2b34f3802e2c42047c4f24f7f649647e4ff87a873f2932516e0
MD5 c7569570713d519b04e15c391ce7d748
BLAKE2b-256 686953f4bb45ffe83da131f4167333148a00175ea64397e2e194966a60966f91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fal-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 94.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.19 Linux/6.5.0-1017-azure

File hashes

Hashes for fal-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d57d4242edf182874f10a5b872e5e93c3bd960edc742bed99eed3f31da64825
MD5 274cccc842725f8ab5f7f7771c3c33c7
BLAKE2b-256 faf79d16f1cee627d9aa5eccae595ccd6caf07f9b3cd8219c461684d7d1c082e

See more details on using hashes here.

Supported by

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