Back to Marimo

FastAPI + marimo

examples/frameworks/fastapi/README.md

0.23.5549 B
Original Source

FastAPI + marimo

This is a simple example of how to use FastAPI with marimo. This example programmatically creates multiple marimo apps from a directory, and then serves them as a single FastAPI app.

This example includes:

  • Authentication
  • Serving multiple marimo apps from a directory
  • A home page listing all the apps
  • Loading environment variables from a .env file
  • Basic logging

Running the app

  1. Install uv
  2. Run the app with uv run --no-project main.py