Skip to main content

python

A Python project has to have a wsgi.py and requirements.txt under its root directory for ConnectDev to correctly identify it as a Python project.

By default, ConnectDev runs Python projects with WSGI. It will load the module wsgi.py and call the global variable application in it as a WSGI function. Therefore, please ensure that wsgi.py contains a global variable/function/class named application that complies with the WSGI specification.

You can following our Python boilerplates to reference and start your project.

Configure Python Version

ConnectDev only supports CPython. You can place .python-version under the root directory of your project to specify the Python version you want to use.

Install Dependencies (requirements.txt)

ConnectDev will install the packages specified in requirements.txt with pip