Skip to main content

FloraLab

FloraLab is a Python CLI tool for managing Flower-AI federated learning deployments on SLURM clusters.

Features

  • 🚀 Automated deployment of Flower-AI stacks on SLURM
  • 🔧 Seamless integration with florago backend
  • 📦 Bundled binaries - no manual setup required
  • 🌐 SSH tunnel management for secure communication
  • ⚡ Simple 3-command workflow: init, run, stop

Installation

pip install floralab

Or with uv:

uv pip install floralab

Quick Start

1. Initialize Configuration

floralab-cli init your-slurm-login-node.edu

This adds Flower-AI configuration to your pyproject.toml.

2. Run Federated Learning Job

floralab-cli run --nodes 3

This will:

  • Copy florago to the SLURM cluster
  • Initialize the environment
  • Start the API server
  • Spin up a Flower stack (1 server + 3 clients)
  • Run your federated learning job with flwr run

3. Stop the Stack

floralab-cli stop

Tears down the Flower stack and cancels the SLURM job.

Commands

floralab-cli init <login-node>

Initialize floralab configuration in your project's pyproject.toml.

Arguments:

  • login-node - Hostname of your SLURM login node

Options:

  • --dir, -d - Project directory (default: current directory)

floralab-cli run

Run a federated learning job on the SLURM cluster.

Options:

  • --nodes, -n - Number of client nodes (default: 2)
  • --partition, -p - SLURM partition
  • --memory, -m - Memory per node (e.g., "4G")
  • --time, -t - Time limit (e.g., "01:00:00")
  • --dir, -d - Project directory (default: current directory)
  • --ssh-port - Local port for SSH tunnel (default: 8080)

floralab-cli stop

Stop the running Flower stack.

Options:

  • --dir, -d - Project directory (default: current directory)
  • --ssh-port - Local port for SSH tunnel (default: 8080)

Configuration

FloraLab adds the following to your pyproject.toml:

[tool.floralab]
login-node = "your-slurm-login-node.edu"

[tool.flwr.federations.floralab]
address = "127.0.0.1:9093"
insecure = true
root-certificates = null

The address field is automatically updated when you run floralab-cli run to point to the actual Flower server.

Requirements

  • Python 3.12+
  • SSH access to a SLURM cluster
  • Flower AI installed (flwr command available)

License

MIT

Metadata

Release files for floralab 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for floralab 0.1.0
File Size Uploaded Provenance Actions
floralab-0.1.0.tar.gz 26.7 MB Without provenance Details for floralab-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for floralab 0.1.0
File Interpreter ABI Platform Actions
floralab-0.1.0-py3-none-any.whl Python 3 none any Details for floralab-0.1.0-py3-none-any.whl

Total release size: 37.8 MB

Release files / floralab-0.1.0.tar.gz

Download URL floralab-0.1.0.tar.gz
Size 26.7 MB
Tags Source
SHA-256 checksum
How to use checksums
f2a77adfd6d3aac2fdd7ab1282dcc3899d0d751b933fbb6f52c51d26263ba352
BLAKE2b-256 checksum
How to use checksums
1f41d79115784939a27f2a97effd8788363de61b58eda3c1cf1d46d785745a46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.6

Release files / floralab-0.1.0-py3-none-any.whl

Download URL floralab-0.1.0-py3-none-any.whl
Size 11.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f7e0f2e90b882cafa08f12e3b9668d460abd2c9a8ad29ea5195efe4e4eebc348
BLAKE2b-256 checksum
How to use checksums
2b4b71d07493d40b31f35c1656acdc209d6d556a6107506675395e01ada3591d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.6

Security for floralab 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page