Deploy Python Applications

Deploy your Python applications — Django, Flask, FastAPI — on the Clever Cloud sovereign cloud. Automatic deployment from Git, auto-scaling, managed databases.
  1. 01

    01 All Python frameworks, zero server configuration

    Clever Cloud automatically detects your Python project via requirements.txt or pyproject.toml, installs dependencies, and starts the application with Gunicorn (WSGI) or Uvicorn (ASGI) depending on your stack.

    Natively supported frameworks:
    • Django — automatic detection, migrations configurable via post-deployment hook
    • Flask — WSGI/ASGI, minimal configuration, deployment in under 5 minutes
    • FastAPI — native ASGI via Uvicorn, ideal for high-performance APIs
    • Celery — workers deployable as separate instances, connected to the same database
    • Scrapy, Pandas, scikit-learn, PyTorch — compatible for data and ML pipelines
    Python versions configurable via environment variable.
  2. 02

    02 Auto Scaling

    Whether you run an e-commerce or a business-oriented application, you don’t always need the same resources. From campaigns to seasons… We offer both manual and auto-scaling.

  3. 03

    03 Python, the AI language — host your entire stack

    Python is the reference language for artificial intelligence projects: APIs consuming LLMs, data processing pipelines, inference services, interfaces between models and business applications. Clever Cloud hosts this entire stack in a sovereign environment.

    A FastAPI application exposing a machine learning model can be deployed in minutes on Clever Cloud, connected to a managed PostgreSQL database and Cellar object storage — S3-compatible, hosted in France, outside the reach of the Cloud Act.
  4. 04

    04 Sovereign hosting, GDPR compliant

    Clever Cloud hosts on its own servers in France and in partner datacenters worldwide — always in zones not subject to extraterritorial laws. Your data is never exposed to the Cloud Act or FISA legislation.

    • ISO/IEC 27001:2022 and HDS certified
    • GDPR compliant — no opaque subcontracting
    • UGAP listed for public procurement
    • SecNumCloud zone available (via Cloud Temple)
  5. 05

    05 Simple Pricing

    You only pay when your apps are running. You can pause when you want, buy credits when you can and use them in either auto-scaling or manual scaling.

  6. 06

    06 Allocate time for the product

    Updating Rust versions, tweaking the configuration files or mitigating DDoS attacks takes time. Clever Cloud handles this for you according to your scaling settings.

Clever Cloud supports the majority of frameworks:

  • Django
  • FastAPI
  • Flask
  • Pyramid
  • Bottle
  • Tornado
  • Sanic
  • Quart
  • Starlette
  • CherryPy
Our pricing depends on the size and the number of instances your application needs. Compare it with your current pricing or on our calculator in the pricing page.

Frequently asked questions – Deploy Python apps

How do I deploy a Django application on Clever Cloud?

Create a Python application from the Clever Cloud console or via the CLI, then link your Git repository and configure the deployment branch. Clever Cloud detects Django automatically via requirements.txt or pyproject.toml, installs dependencies, and starts the application with Gunicorn. Set the CC_PYTHON_MODULE environment variable to point to your WSGI module (for example, myproject.wsgi:application). Database migrations can be triggered automatically using the CC_PRE_RUN hook. Static files are served separately — configure STATIC_ROOT and collect them via the same hook. The full guide is available at clever.cloud/developers/guides/python-django-sample.

Is Flask supported on Clever Cloud?

Yes. Flask works natively. Clever Cloud supports both WSGI (Gunicorn) and ASGI servers. A requirements.txt file containing flask and gunicorn is enough for the deployment to be configured automatically.

Are FastAPI and ASGI applications supported?

Yes. FastAPI via Uvicorn is natively supported. Clever Cloud is particularly well suited to high-performance Python APIs and services exposing machine learning models, with auto-scaling on traffic spikes.

Can I host a Python application that consumes LLMs?

Yes. Clever Cloud hosts Python applications connected to LLMs via API (OpenAI, Anthropic, Mistral, Qwen, etc.) in a sovereign environment.

Is my Python data hosted in France?

Yes. Clever Cloud hosts its data in France, under European jurisdiction, outside the scope of the Cloud Act. If you need to host abroad, this is also possible across many partner zones, always in regions protected from extraterritorial laws. The platform is ISO/IEC 27001:2022 and HDS certified, and GDPR compliant.

NEWS

Our blog

Blog

What makes Clever Cloud unique

Most cloud platforms ask you to pick a lane. Serverless with hard limits on memory, execution time, and payload size. Containers locked to a single hyperscaler with databases resold from third parties. Or raw infrastructure where you manage everything yourself.
Company

OpenTofu: the open-source Terraform fork — natively supported on Clever Cloud

In August 2023, HashiCorp changed Terraform’s license. A few weeks later, OpenTofu was born under the Linux Foundation. Here’s what it means — and how to use it with the Clever Cloud provider.
Engineering

When choose a PaaS for a public sector project

Public services are engaged in an ongoing digital transformation, driven by increasing user expectations, service continuity requirements, and growing security needs.
Company Engineering Features