31

I work in a Windows environment and would prefer to deploy code to IIS. At the same time I would like to code in Python.

Having read that IIS can run fastCGI application, I went to the IIS site where it describes in detail how to get PHP up and running but not much about anything else.

Does anyone have experience getting a Python framework running under IIS using something other that plain old CGI?

If so can you explain to direct me to some instructions on setting this up?

Kevin Panko
  • 8,356
  • 19
  • 50
  • 61
minty
  • 22,235
  • 40
  • 89
  • 106

3 Answers3

24

There shouldn't be any need to use FastCGI. There exists a ISAPI extension for WSGI.

Georg Schölly
  • 124,188
  • 49
  • 220
  • 267
John Millikin
  • 197,344
  • 39
  • 212
  • 226
  • 16
    This answer is from 6 years ago. The project in the provided link has been last updated in 2010. Is there anything new on the Python-under-IIS front? – Uri London Sep 07 '14 at 07:54
  • Same question. It's crazy when a great project just gets ... dropped. Come on MS! Python is increasing in popularity. – J. Gwinner Dec 02 '21 at 17:51
15

Microsoft itself develops wfastcgi (source code) to host Python code on IIS.

Georg Schölly
  • 124,188
  • 49
  • 220
  • 267
NTL
  • 997
  • 7
  • 15
  • 1
    Microsoft seems to take the same approach for Azure amd Python: https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-classic-python-django-web-app/ – Georg Schölly May 31 '16 at 21:04
  • It's somewhat disengenous, if you go to the wfastcgi web page, and click on "Homepage" it shows you Azure. The implication is forget Windows, and go to Azure hosting. That doesn't answer the question Microsoft ... – J. Gwinner Jun 19 '22 at 19:15
4

We can use iiswsgi framework to setup WSGI over IIS since it is compatible with IIS web server's FastCGI protocol.It's bundled with distutils for building, distribution and installing packages with the help of Microsoft Web Deploy and Web Platform Installer.

For more info refer the following link:

Serving Python WSGI applications natively from IIS

Aravind
  • 362
  • 5
  • 11