Metadata-Version: 2.4
Name: fal
Version: 1.75.1
Summary: fal is an easy-to-use Serverless Python Framework
Author: Features & Labels <support@fal.ai>
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: isolate[build]<0.27.0,>=0.23.1
Requires-Dist: isolate-proto<1,>=0.31.3
Requires-Dist: grpcio<2,>=1.64.0
Requires-Dist: dill==0.3.7
Requires-Dist: cloudpickle<3.2,>=3.0.0
Requires-Dist: typing-extensions<5,>=4.7.1
Requires-Dist: structlog<26,>=22.3.0
Requires-Dist: opentelemetry-api<2,>=1.15.0
Requires-Dist: opentelemetry-sdk<2,>=1.15.0
Requires-Dist: grpc-interceptor<1,>=0.15.0
Requires-Dist: colorama<1,>=0.4.6
Requires-Dist: certifi>=2024.2.2
Requires-Dist: portalocker<3,>=2.7.0
Requires-Dist: rich<15,>=13.3.2
Requires-Dist: rich_argparse
Requires-Dist: packaging>=21.3
Requires-Dist: pathspec<1,>=0.11.1
Requires-Dist: pydantic!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*
Requires-Dist: fastapi<0.119,>=0.99.1
Requires-Dist: starlette-exporter>=0.21.0
Requires-Dist: httpx>=0.15.4
Requires-Dist: httpx-sse
Requires-Dist: attrs>=21.3.0
Requires-Dist: python-dateutil<3,>=2.8.0
Requires-Dist: types-python-dateutil<3,>=2.8.0
Requires-Dist: dateparser<2,>=1.2.0
Requires-Dist: types-dateparser<2,>=1.2.0
Requires-Dist: tuspy==1.1.0
Requires-Dist: importlib-metadata>=4.4; python_version < "3.10"
Requires-Dist: msgpack<2,>=1.0.7
Requires-Dist: websockets>=12.0
Requires-Dist: pillow<12,>=10.2.0
Requires-Dist: pyjwt[crypto]<3,>=2.8.0
Requires-Dist: uvicorn<1,>=0.29.0
Requires-Dist: cookiecutter
Requires-Dist: tomli<3,>2
Requires-Dist: tomli-w<2,>=1
Requires-Dist: fsspec
Requires-Dist: tblib<3.2.0
Requires-Dist: build<2,>=1.0
Provides-Extra: docs
Requires-Dist: sphinx<8.2.0; extra == "docs"
Requires-Dist: sphinx-rtd-theme; extra == "docs"
Requires-Dist: sphinx-autodoc-typehints; extra == "docs"
Provides-Extra: test
Requires-Dist: pytest<8; extra == "test"
Requires-Dist: pytest-asyncio; extra == "test"
Requires-Dist: pytest-xdist; extra == "test"
Requires-Dist: pytest-timeout; extra == "test"
Requires-Dist: flaky; extra == "test"
Requires-Dist: boto3; extra == "test"
Requires-Dist: numpy; extra == "test"
Requires-Dist: pyzmq; extra == "test"
Requires-Dist: fal_client; extra == "test"
Provides-Extra: dev
Requires-Dist: fal[docs,test]; extra == "dev"
Requires-Dist: openapi-python-client<1,>=0.14.1; extra == "dev"

[![PyPI](https://img.shields.io/pypi/v/fal.svg?logo=PyPI)](https://pypi.org/project/fal)
[![Tests](https://img.shields.io/github/actions/workflow/status/fal-ai/fal/fal-unit-tests.yml?label=Tests)](https://github.com/fal-ai/fal/actions)

# 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](https://fal.ai/docs/documentation).

## Quickstart

Install the package and authenticate:

```bash
pip install fal
fal auth login
```

Create a minimal app:

```python
import fal


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

Run it on fal for testing:

```bash
fal run hello_world.py::MyApp
```

Deploy it to a persistent endpoint:

```bash
fal deploy hello_world.py::MyApp
```

## Next steps

If you want to go deeper, start with:

- [Quick start](https://fal.ai/docs/documentation/development/getting-started/quick-start)
- [Deploy to production](https://fal.ai/docs/documentation/deployment/deploy-to-production)
- [Serverless documentation](https://fal.ai/docs/documentation/serverless)

## Install from source

From the repository root:

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

## Contributing

### Running tests

Use the smallest relevant scope first:

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

### Pre-commit

Run the repository hooks before opening or finishing work:

```bash
pre-commit run --all-files
```

### Commit format

Please follow the [Conventional Commits](https://www.conventionalcommits.org/) specification for commit messages.
