Skip to content
Prices and choosing4 min read

Free Python hosting: options and limits

Short answer

The best-known free options for Python: PythonAnywhere (one web app on a subdomain, no custom domain, outbound internet limited to specific sites), Render (the app spins down after 15 minutes without traffic), Railway (a small monthly credit and idle apps sleep), and self-managed free VMs from Oracle and Google. They're fine for learning and tests; an app that must always be up needs a paid plan.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. The free options, per their official pages
  2. What each limit means in practice
  3. Quick steps: a Flask app on a free platform
  4. When free is enough
  5. When you need a paid plan
  6. On ArabyHost

A Python web app, whether Flask, Django or FastAPI, isn’t like an HTML site: it needs a process that stays in memory and answers requests, which is why free hosting for it is tighter than for static sites. The options below are real, but each has a limit you should know before building on it.

The free options, per their official pages

Service What’s free Key limits
PythonAnywhere (Beginner) One web app at username.pythonanywhere.com No custom domain, a 100-second CPU allowance, 512MB disk, outbound internet to specific sites only, no SSH or scheduled tasks, and a one-month app expiry per their help page
Render (Free) A Python web service Spins down after 15 minutes without traffic and takes about a minute to wake, 750 hours a month per workspace, free Postgres expires after 30 days
Railway (Free) $1 a month of usage credit Up to 0.5 GB memory per service, one project, services sleep after 5 to 10 minutes without outbound traffic
Google Cloud Free Tier One e2-micro VM Specific US regions only; you manage it entirely
Oracle Cloud Always Free Small virtual machines You manage them; idle instances may be reclaimed after 7 days of low usage

This information comes from each service’s public pages in November 2026 and may change. Prices and credits are in US dollars as shown on those pages.

What each limit means in practice

Sleeping apps

On Render and Railway a free app stops when there’s no traffic and starts again on the next request. The first visitor waits, and a webhook expecting a quick reply may fail. That’s fine for an app you show in a job interview, not for a system customers use.

Restricted outbound internet

On free PythonAnywhere your app can reach only a specific list of sites over HTTP(S). If it calls a payment API, an AI model or any API outside that list, it won’t work.

Temporary databases

Render’s free Postgres expires after 30 days, then gets a short grace period before deletion. Don’t keep data there you want to keep.

A server you run yourself

Oracle’s and Google’s free VMs are full Linux servers. You install Python, Gunicorn and Nginx, set up the firewall, update the system and issue SSL. It’s good learning, but ongoing work; compare in shared hosting vs VPS.

Quick steps: a Flask app on a free platform

  1. Put the code in a GitHub repository with a requirements.txt:
flask
gunicorn
  1. Make sure the app reads its port from the environment when run directly:
import os
from flask import Flask
app = Flask(__name__)

@app.get("/")
def home():
    return "ok"

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=int(os.environ.get("PORT", 5000)))
  1. On the platform pick the repository, set the build command to pip install -r requirements.txt and the start command to gunicorn app:app.
  2. Open the URL the platform gives you, and check the logs if you see an error.

When free is enough

  • You’re learning Flask or Django and want a link to share.
  • A graduation project or portfolio showing what you can build.
  • Testing an idea before deciding to invest in it.

When you need a paid plan

  • The app must answer instantly at any time, without waking up first.
  • You need a custom domain with SSL.
  • The app calls external APIs the free plan doesn’t allow.
  • You have a Telegram bot or a worker that must run continuously.
  • You need a permanent database and backups.

To compare with paid app platforms, see Render and Railway alternatives.

On ArabyHost

The AI/Developer plans are paid and run Python 3.9 to 3.12 apps through CloudLinux’s Python Selector and Phusion Passenger, with SSH jailed in CageFS for installing packages in a virtualenv, Git for deploys, a custom domain with free SSL, and a permanent MySQL or MariaDB database with daily backups. Steps in the Flask deploy guide and the Django deploy guide.

The limits, plainly: no root, no Docker, no GPU, and per-account resource limits. Prices are in your currency and renew at your sign-up price; details on the pricing page.

FAQ

Why can't my free PythonAnywhere app reach an external API?

Because the free account allows outbound HTTP(S) only to specific sites, per their pricing page. If the API you need isn't on the list, the connection won't work on the free plan.

Can I run Django with a database for free?

For testing, yes. Render, for example, offers a free Postgres database but it expires 30 days after creation, and SQLite works on some platforms but its file can be lost on redeploy where the disk isn't persistent.

Is a free Oracle or Google VM good for a Python app?

For someone who can administer Linux, since you install Python, the web server, firewall and updates yourself. Google's free VM is in US regions only, and Oracle may reclaim idle instances.

How does free Python hosting differ from a paid developer plan?

A paid plan keeps the app running without sleeping, supports a custom domain with SSL, and gives you SSH and any package, plus backups and support.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.