Skip to content
zefıly

Python hosting on your own server

Install Python 3.12, 3.13 or 3.14, and run your web app as a managed service. Dependencies come from your lock file with uv, and gunicorn serves the app behind the web server.

  • Python 3.12, 3.13 or 3.14 installed on the server
  • Dependencies installed with uv sync --frozen from your lock file
  • gunicorn bound to a local port behind your domain

On your own server

Your provider bills the server as it does now. Zefily installs Python and the web server, deploys your code and renews the certificates. If you move away from Zefily, your Python app stays on the same server.

The Zefily panel showing a Python site on a server the customer owns.

Runs the stacks you already use

What you get

uv for dependencies

The Python preset runs uv sync --frozen --no-dev, so production installs the exact versions you locked and tested.

Gunicorn start command

The preset starts gunicorn on 127.0.0.1 on the port Zefily assigns. Edit it on the Deploy pane if your module has another name.

Environment variables

Keep secrets such as SECRET_KEY and database URLs in the site's environment variables, not in the repository.

Linked databases

Link a MariaDB or PostgreSQL database to the site, so its connection details reach the app through the environment.

Background workers

Run background workers as managed services next to the web app, with the same deploy.

Logs in the panel

Read the app's output in the site's Logs pane, next to the web server logs.

How it works

  1. 1

    Install Python

    In the web stack section, install Python 3.12, 3.13 or 3.14.

  2. 2

    Add the site

    Choose Runs on: Python, the version and your domain. The port is assigned for you.

  3. 3

    Deploy from Git

    Use the Python preset for your Git deploy. Each push installs the locked dependencies and restarts the app.

Pricing

Plans, limits and prices are on the pricing page. Start with the plan that fits your sites and change it later.

See plans →

Questions

Which Python versions can I use?

3.12, 3.13 and 3.14, installed from the web stack section. A version that a site uses cannot be removed until that site changes.

Why does the preset use uv?

uv installs the versions in your lock file quickly and the same way every time. With --frozen, a deploy fails when the lock file is out of date.

Can I change the start command?

Yes. The preset is a starting point. Edit the start command on the Deploy pane if your app module is named differently.

Where do my secrets go?

In the site's environment variables. Keep .env files out of git, so they never reach the repository.

Can Python apps share a server with WordPress?

Yes. Each site has its own domain, runtime and certificate, so they can run side by side.

Python apps on a server you own

Connect a server, install Python, and push your app from Git.

Other stacks: WordPress, PHP, Laravel, Node.js, Docker

Black Friday & Cyber Monday

Before you go: lifetime plans are on sale

Pay once for a lifetime plan, or get 30% off the first year of any yearly plan.

Only 100 lifetime plans per plan. When they are gone, they are gone.

See the campaign

Amazing November

See the campaign →