Skip to content

Python Quick Start on Varity

Varity Team Core Contributors Updated June 2026

Deploy an existing Python web app to Varity in one command. Varity detects your framework (FastAPI, Django, or Flask), provisions any backend services your app needs, and deploys it. You do not change your code.

  • Python 3.11+ (for your app and the CLI)
  • A FastAPI, Django, or Flask project
  1. Install the CLI

    Terminal window
    pipx install varitykit
  2. Open your project

    Terminal window
    cd my-api
  3. Confirm it runs locally (optional)

    Terminal window
    uvicorn main:app --reload
  4. Deploy to Varity

    Terminal window
    varitykit app deploy

    Varity detects your framework, builds your app, and deploys it as a dynamic runtime.

  5. Your app is live

    The terminal shows your live URL. Python web apps run as a dynamic runtime, so they’re served on their own subdomain:

    https://<app-name>.varity.app/

You do not import an SDK or change your code. When Varity deploys a Python app, it configures the backend automatically:

  • Databases and caches: if Varity detects a database client in your dependencies (for example psycopg, SQLAlchemy, pymongo, redis, or mysqlclient), it provisions the matching service and injects the connection details into your app’s environment at runtime (DATABASE_URL, REDIS_URL, MONGODB_URI, MYSQL_URL).
  • Environment variables: any variables you set are injected into the deployed container. See Environment Variables.
  • Live URL: https://<app-name>.varity.app/, with HTTPS handled for you.

For the full list of detected frameworks and auto-wired services, see Supported Frameworks and Auto-wired Services.