Skip to main content

Turn Python functions into web apps. Type hints become UI, API, and shareable links.

Project description

floom SDK

Python SDK for building apps on floom.

Installation

The SDK is automatically available in the floom runtime. For local development:

pip install -e .

Or install from PyPI:

pip install floom-sdk

Quick Start

from floom import app, remember

@app.action
def greet(name: str) -> dict:
    visits = (remember("visits") or 0) + 1
    remember("visits", visits)
    return {"message": f"Hello, {name}! Visit #{visits}"}

Paste this into floom, hit "Go Live," and share the link.

Features

  • @app.action - Mark functions as runnable actions with auto-generated UI
  • remember() / forget() - Built-in key-value storage across runs
  • storage - Full storage API (get, set, delete, list)
  • save_artifact() - Write outputs that users can download
  • save_dataframe() - Save pandas/polars DataFrames in multiple formats
  • context - Access secrets and uploaded JSON data
  • Zero Dependencies - Core functionality has no required dependencies

Documentation

See the SDK Guide for complete documentation and examples.

Sample Apps

Check out the sample apps in ../samples/:

  • hello-world - Minimal greeting action
  • extract-company - URL scraping with artifacts
  • image-analysis - File upload and image processing
  • bulk-processor - Batch processing with error handling
  • opendraft - Multi-action app example

Development

# Install with dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run tests with coverage
pytest --cov=floom --cov-report=html

License

MIT

Project details


Download files

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

Source Distribution

floom_sdk-0.1.6.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

floom_sdk-0.1.6-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file floom_sdk-0.1.6.tar.gz.

File metadata

  • Download URL: floom_sdk-0.1.6.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for floom_sdk-0.1.6.tar.gz
Algorithm Hash digest
SHA256 591d88df1159b28e15233426b4e0d7aa1d398d73c23f1f32f74cc6cef0d5e18e
MD5 60cfb90ace940f3d1c7c58143ac41023
BLAKE2b-256 6e6b42908b893b996acc0d269bdcf00c74c2052f43e345f5d671b4e33c648b53

See more details on using hashes here.

File details

Details for the file floom_sdk-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: floom_sdk-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for floom_sdk-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b7a381a6d690f979344b5f3f98c3067c220e7755db84a3d6eea79342c7da37bd
MD5 0df5bec788a87b0d3c7ffda030cf579d
BLAKE2b-256 44beef0190252e2800333c5152d87082a1b3cf85439c7bba4f088ff1d99f5a37

See more details on using hashes here.

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