• Languages Angle Right by Iconscout from Unicons - https://iconscout.com/unicons
  • Python

Python

Lade officially supports deploying Python applications.

Supported Versions

The following Python versions are supported and receive security updates:

  • 3.12
  • 3.11
  • 3.10
  • 3.9
  • 3.8

Supported Package Managers

The following package managers are supported:

Python App Detection

Lade detects your app as a Python app if an environment.yml, Pipfile, requirements.txt, or setup.py file is present in the root directory.

Specifying a Python Version

You can specify the Python version in your environment.yml file:

dependencies:
  - python=3.8

You can also specify the Python version in your Pipfile file:

[requires]
python_version = "3.8"

Alternatively, you can specify the Python version in your runtime.txt file:

python-3.8

Python Web Process

Lade will use the following priority order to determine the web process:

  1. Procfile specifying the web process type
  2. The Flask object specified in one of your Python files
  3. The get_wsgi_application object specified in one of your Python files

For example, you can specify the get_wsgi_application object in your wsgi.py file:

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

Lade will automatically start your web application with the Gunicorn web server.