Runtime

Deploy Python on Light Cloud

Python runs web apps and APIs, most often with Django, Flask or FastAPI. Light Cloud detects it from a requirements.txt, pyproject.toml or setup.py. It runs as a container that scales with traffic and down to zero when idle.

Free plan, no card. Google or GitHub sign-in.

Send me the link for my desktop
Deploy Python

Python at a glance

Detected from
a requirements.txt, pyproject.toml or setup.py
Runs as
Container that scales with traffic and to zero when idle
Versions
Python 3.10 to 3.14 (default 3.12), read from .python-version, runtime.txt or requires-python
Build
Dependencies installed with pip
Start command
Django on gunicorn, FastAPI on uvicorn, Flask on gunicorn, otherwise python main.py or app.py
Port
8000

How to deploy Python

  1. 01

    Bring the code

    Pick a repository, upload a folder, or ask Claude Code or GitHub Copilot to put it online.

    github.com/acme/app

  2. 02

    Python, detected

    The files are read and the build is filled in. Every setting can be changed by hand.

  3. 03

    Built into a container

    An image is built and started, listening on the port the app expects.

  4. 04

    Live

    A light-cloud.io URL in minutes, a preview URL for every branch, and logs and metrics beside it.

    main-app-acme.light-cloud.io

Frameworks on Python

Detected the same way, each with its own build and start command.

Add a database

Managed PostgreSQL in the same project, its connection string one copy away.

Questions

How do I deploy Python?
Connect the repository, upload the folder, or ask Claude Code or GitHub Copilot to deploy it. Light Cloud reads the files, builds Python and returns a live URL in minutes, with a preview URL for every branch.
How much does it cost to host Python?
The Free plan runs up to 3 server apps with $1 of usage a month and no card. A container is billed by the hour only while it runs, so an idle app costs nothing and a quiet one uses about $0.10 a month. Paid plans start at $5 a month with $5 of usage included.
Can a Python app use a database?
Yes. Create a PostgreSQL database in the same project and set its connection string as DATABASE_URL. Databases come with paid plans, from $5 a month.
Can I use my own Dockerfile instead?
Yes. A Dockerfile at the root of the repository always wins over detection: it is built as is and runs as a container.

Python, live in minutes

Connect a Python repository and get a live URL. Start free, no card.