- Languages
- Python
Python
Lade officially supports deploying Python applications.
Supported Versions
The following Python versions are supported and receive security updates:
- 3.13
- 3.12
- 3.11
- 3.10
- 3.9
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.9
You can also specify the Python version in your Pipfile
file:
[requires]
python_version = "3.9"
Alternatively, you can specify the Python version in your runtime.txt
file:
python-3.9
Python Web Process
Lade will use the following priority order to determine the web process:
Procfile
specifying the web process type- The
Flask
object specified in one of your Python files - 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.