Skip to main content
floo’s Python SDK is Modal-compatible: floo_sandbox has App, Image, Sandbox, Secret and Volume under Modal’s names. A program written for Modal’s Sandbox runs on floo after it changes its import and its key.

1. Install the SDK

It needs Python 3.10 or later and has no dependencies.

2. Change the import

The rest of the program stays as it is: modal.App.lookup, modal.Sandbox.create, sb.exec and sb.terminate are the same calls. In a new program, name it floo, as the rest of these docs do:

3. Change the key

Set FLOO_API_KEY to a floo API key from the dashboard’s Settings, in place of MODAL_TOKEN_ID and MODAL_TOKEN_SECRET.
A key that belongs to one organization acts in it. For a person’s key, also set FLOO_ORG_ID to the organization the program acts in.

What is different

floo runs sandboxes. The rest of Modal’s SDK, such as functions and GPUs, is not in floo_sandbox. An option of Sandbox.create that floo does not take is refused by name, never ignored, so a program that depends on one fails at that call. Differences from Modal lists them. On floo, a sandbox’s files need no machine: file calls are answered from its workspace, and a micro-VM attaches only while a command runs. A program that mostly reads and writes files bills for fewer seconds than its sandbox lives. See Which calls need a machine and Pricing.

Next

Sandboxes covers sizes, persistent sandboxes, agent workers, network rules and secrets.