Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

This recipe for zc.buildout creates a script that can be used as an entry point for WSGI servers.

Project description

cykooz.recipe.wsgi

This recipe for buildout creates a script that can be used as an entry point for WSGI servers (mod_wsgi, uwsgi and other).

Usage

This is a minimal buildout.cfg file which creates a WSGI script mod_wsgi can use:

[buildout]
parts = wsgi

[wsgi]
recipe = cykooz.recipe.wsgi
eggs = myapplication
app_fabric = myapplication.wsgi:get_app
environ =
    CHAMELEON_CACHE=true
    CHAMELEON_STRICT=true
initialization =
    import logging
    logging.info('Run myapplication')

This will create a small python script in the bin directory called wsgi which mod_wsgi can load. You can also use the optional extra-paths option to specify extra paths that are added to the python system path.

You may also use the script-name option to specify the name of the generated script file, if wsgi is unsuitable. Or you may use the target option to specify a full path of the generated script file.

Changes

1.0.0 (2017-03-02)

  • First release.

Project details


Release history Release notifications

This version

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cykooz.recipe.wsgi, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size cykooz.recipe.wsgi-1.0.0.tar.gz (11.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page