{ "info": { "author": "Microsoft Corporation", "author_email": "ptvshelp@microsoft.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 6 - Mature", "License :: OSI Approved :: Apache Software License", "Operating System :: Microsoft :: Windows", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI", "Topic :: Internet :: WWW/HTTP :: WSGI :: Server" ], "description": "WFastCGI\n========\n\nwfastcgi.py provides a bridge between `IIS `__ and Python\nusing WSGI and FastCGI, similar to what ``mod_python`` provides for Apache HTTP\nServer.\n\nIt can be used with any Python web application or framework that supports WSGI,\nand provides an efficient way to handle requests and process pools through IIS.\n\nInstallation\n============\n\nDownloading Package\n-------------------\n\nTo install via the Python Package Index (PyPI), type:\n\n.. code:: shell\n\n pip install wfastcgi\n\nInstalling IIS and FastCGI\n--------------------------\n\nSee the `IIS Installation `__ page for\ninformation about installing IIS on your version of Windows.\n\nThe Application Development/CGI package is required for use with `wfastcgi`.\n\nEnabling wfastcgi\n-----------------\n\nOnce ``wfastcgi`` and IIS are installed, run ``wfastcgi-enable`` as an\nadministrator to enable ``wfastcgi`` in the IIS configuration. This will\nconfigure a CGI application that can then be specified as a \n`route handler <#route-handlers>`__.\n\n.. code:: shell\n\n wfastcgi-enable\n\nTo disable ``wfastcgi`` before uninstalling, run ``wfastcgi-disable``.\n\n.. code:: shell\n\n wfastcgi-disable\n pip uninstall wfastcgi\n\n**Note**: uninstalling ``wfastcgi`` does not automatically unregister the CGI\napplication.\n\n\nIf the first argument passed to ``wfastcgi-enable`` or ``wfastcgi-disable`` is\na valid file, the entire command line is used to register or unregister the CGI\nhandler.\n\nFor example, the following command will enable wfastcgi with IIS Express and a\nspecific host configuration:\n\n.. code:: shell\n\n wfastcgi-enable \"C:\\Program Files (x86)\\IIS Express\\appcmd.exe\"\n /apphostconfig:C:\\Path\\To\\applicationhost.config\n\nYou can disable wfastcgi in the same configuration file using\n``wfastcgi-disable`` with the same options:\n\n.. code:: shell\n\n wfastcgi-disable \"C:\\Program Files (x86)\\IIS Express\\appcmd.exe\"\n /apphostconfig:C:\\Path\\To\\applicationhost.config\n\n.. route-handlers\n\nRoute Handlers\n==============\n\nRouting requests to your Python application requires some site-local\nconfiguration. In your site's ``web.config`` file, you will need to add a\nhandler and some app settings:\n\n.. code:: xml\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\nThe value for ``scriptProcessor`` is displayed in the output of\n``wfastcgi-enable`` and may vary from machine to machine. The values for\n``path`` and ``verb`` may also be customized to further restrict the requests\nfor which this handler will be used.\n\nThe ``name`` value may be used in nested ``web.config`` files to exclude this\nhandler. For example, adding a ``web.config`` to your ``static/`` subdirectory\ncontaining ```` will prevent IIS from serving\nstatic files through your Python app.\n\nThe provided app settings are translated into environment variables and can be\naccessed from your Python application using ``os.getenv``. The following\nvariables are used by ``wfastcgi``.\n\nWSGI_HANDLER\n------------\n\nThis is a Python name that evaluates to the WSGI application object. It is a\nseries of dotted names that are optionally called with no parameters. When\nresolving the handler, the following steps are used:\n\n1. As many names as possible are loaded using ``import``. The last name is\n never imported.\n\n2. Once a module has been obtained, each remaining name is retrieved as an\n attribute. If ``()`` follows the name, it is called before getting the\n following name.\n\nErrors while resolving the name are returned as a simple 500 error page.\nDepending on your IIS configuration, you may only receive this page when\naccessing the site from the same machine.\n\nPYTHONPATH\n----------\n\nPython is already running when this setting is converted into an environment\nvariable, so ``wfastcgi`` performs extra processing to expand environment\nvariables in its value (including those added from app settings) and to expand\n``sys.path``.\n\nIf you are running an implementation of Python that uses a variable named\nsomething other than ``PYTHONPATH``, you should still specify this value as\n``PYTHONPATH``.\n\nWSGI_LOG\n--------\n\nThis is a full path to a writable file where logging information is written.\nThis logging is not highly efficient, and it is recommended that this setting\nonly be specified for debugging purposes.\n\nWSGI_RESTART_FILE_REGEX\n-----------------------\n\nThe regular expression used to identify when changed files belong to your\nwebsite. If a file belonging to your site changes, all active CGI processes\nwill be terminated so that the new files can be loaded.\n\nBy default, all ``*.py`` and ``*.config`` files are included. Specify an empty\nstring to disable auto-restart.\n\nAPPINSIGHTS_INSTRUMENTATIONKEY\n------------------------------\n\nProviding an instrumentation key with this value will enable request tracing\nwith `Application Insights `__\nfor your entire site. If you have not installed the ``applicationinsights``\npackage, a warning is written to ``WSGI_LOG`` (if enabled) but the site will\noperate normally.\n\nApplication Insights is a low-overhead monitoring system for tracking your\napplication's health and performance. When enabled, all errors in your site\nwill be reported through Application Insights.\n\nDJANGO_SETTINGS_MODULE\n----------------------\n\nA commonly used registry key when deploying sites built using Django. Typically\nDjango sites will set ``WSGI_HANDLER`` to\n``django.core.handlers.wsgi.WSGIHandler()`` and load app-specific settings\nthrough the module specified by this value.\n\nSites using frameworks other than Django do not need to specify this value.\n\nWSGI_PTVSD_SECRET\n-----------------\n\nProviding an arbitrary string here and including the\n`ptvsd `__ module in your environment will\nautomatically enable remote debugging of your web site. The string in this\napplication setting should be treated as a password, and needs to be provided\nwhen attaching to the running site.\n\nWSGI_PTVSD_ADDRESS\n------------------\n\nWhen ``WSGI_PTVSD_SECRET`` is specified, this value may also be specified to\noverride the default listening address for remote debugging. By default,\nyour site will listen on ``localhost:5678``, but in many cases you may need\nto change this to ``0.0.0.0:some-port`` in order to attach remotely.\n\nRemember that you will also need to forward the port through any firewalls\nyou might have configured.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://aka.ms/python", "keywords": "iis fastcgi wsgi windows server mod_python", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "wfastcgi", "package_url": "https://pypi.org/project/wfastcgi/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/wfastcgi/", "project_urls": { "Homepage": "http://aka.ms/python" }, "release_url": "https://pypi.org/project/wfastcgi/3.0.0/", "requires_dist": null, "requires_python": "", "summary": "An IIS-Python bridge based on WSGI and FastCGI.", "version": "3.0.0" }, "last_serial": 2692081, "releases": { "2.2": [ { "comment_text": "", "digests": { "md5": "74e37d07b5751f7a11391d0a0f19cde7", "sha256": "ac2a3a42d031be0fa4b972f065e56e61e977f0c6f00aa088570d550d29e964c0" }, "downloads": -1, "filename": "wfastcgi-2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "74e37d07b5751f7a11391d0a0f19cde7", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 17003, "upload_time": "2015-07-07T23:25:20", "url": "https://files.pythonhosted.org/packages/0d/72/c1e49136f4916db80345d529b98b52cc18da7a7b5031491b29424979d389/wfastcgi-2.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2054ebf91d1a3601892bd4bf7b32f4d8", "sha256": "f32cd6d71a14ce35df1a46b5a5c7c03dda578f942a094100af641f7c37a7e3d5" }, "downloads": -1, "filename": "wfastcgi-2.2.zip", "has_sig": false, "md5_digest": "2054ebf91d1a3601892bd4bf7b32f4d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20397, "upload_time": "2015-07-07T23:25:16", "url": "https://files.pythonhosted.org/packages/75/f7/d4f94b2f8ae7c1b22a7c347ff4eff4ebd4a05923ee0a6164a0bb160fd381/wfastcgi-2.2.zip" } ], "2.2.1": [ { "comment_text": "", "digests": { "md5": "53fc2a6d0b45680fc9910e9ea9bcb72f", "sha256": "d9b8d909dc3a3607f736cf47db98475437258ed9b19bef695c547c9398feba9b" }, "downloads": -1, "filename": "wfastcgi-2.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "53fc2a6d0b45680fc9910e9ea9bcb72f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17403, "upload_time": "2016-08-29T16:40:28", "url": "https://files.pythonhosted.org/packages/14/49/fbf5fb0d121c51bb4c2db18a46b2249b5f7753aca3bce52f2fc98de1f466/wfastcgi-2.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d0a9c19e6c95f5d2c315305cb7495a88", "sha256": "cc6949178d0d79cfd77f9dc08a7e22fff113db5e5da27068257ddd400a1c3f5a" }, "downloads": -1, "filename": "wfastcgi-2.2.1.tar.gz", "has_sig": false, "md5_digest": "d0a9c19e6c95f5d2c315305cb7495a88", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13917, "upload_time": "2016-08-29T16:40:31", "url": "https://files.pythonhosted.org/packages/2c/7c/3f4ed3e5af529e7c581cd035785ccef007b0f0d335672f068fe084b8d77d/wfastcgi-2.2.1.tar.gz" } ], "3.0.0": [ { "comment_text": "", "digests": { "md5": "289c81d809e87dc3e22cf81c5ba951fe", "sha256": "cbce266e7da411d40f98f28a73cb9a55157b274398bd5a8d2b25cfa10a4dd493" }, "downloads": -1, "filename": "wfastcgi-3.0.0.tar.gz", "has_sig": false, "md5_digest": "289c81d809e87dc3e22cf81c5ba951fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14663, "upload_time": "2017-03-08T17:02:39", "url": "https://files.pythonhosted.org/packages/fb/c7/c67ab1c936b6294c3692d891ff6d4df1b82254a98f00e2cb72083b1ad796/wfastcgi-3.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "289c81d809e87dc3e22cf81c5ba951fe", "sha256": "cbce266e7da411d40f98f28a73cb9a55157b274398bd5a8d2b25cfa10a4dd493" }, "downloads": -1, "filename": "wfastcgi-3.0.0.tar.gz", "has_sig": false, "md5_digest": "289c81d809e87dc3e22cf81c5ba951fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14663, "upload_time": "2017-03-08T17:02:39", "url": "https://files.pythonhosted.org/packages/fb/c7/c67ab1c936b6294c3692d891ff6d4df1b82254a98f00e2cb72083b1ad796/wfastcgi-3.0.0.tar.gz" } ] }