• Docs >
  • Lightning App - API References
Shortcuts

Lightning App - API References

Core

LightningApp

The Lightning App, or App in short runs a tree of one or more components that interact to create end-to-end applications.

LightningFlow

The LightningFlow is used by the LightningApp to coordinate and manage long- running jobs contained, the LightningWork.

LightningWork

LightningWork, or Work in short, is a building block for long-running jobs.

Learn more about Lightning Core.


Built-in Components

PopenPythonScript

The PopenPythonScript component enables to easily run a python script within a subprocess.

TracerPythonScript

The TracerPythonScript class enables to easily run a python script.

LightningTrainerScript

This component enables performing distributed multi-node multi-device training.

ServeGradio

The ServeGradio Class enables to quickly create a gradio based UI for your LightningApp.

ModelInferenceAPI

The ModelInferenceAPI Class enables to easily get your model served.


Frontend’s

Frontend

Base class for any frontend that gets exposed by LightningFlows.

StaticWebFrontend

A frontend that serves static files from a directory using FastAPI.

StreamlitFrontend

A frontend for wrapping Streamlit code in your LightingFlow.

Learn more about Frontend’s.


Storage

Path

A drop-in replacement for pathlib.Path for all paths in Lightning.

Drive

The Drive object provides a shared space to write and read files from.

Payload

The Payload object enables to transfer python objects from one work to another in a similar fashion as Path.

Learn more about Storage.


Runners

CloudRuntime

SingleProcessRuntime

Runtime to launch the LightningApp into a single process.

MultiProcessRuntime

Runtime to launch the LightningApp into multiple processes.