Skip to main content

Buildout recipe downloading, compiling and configuring uWSGI.

Project description

shaunsephton.recipe.uwsgi

Buildout recipe downloading, compiling and configuring uWSGI.

Creates a bin/ uWSGI executable and parts XML configuration file with which you can easily launch Buildout sandboxed uWSGI processes.

Usage

Add a part to your buildout.cfg like so:

[buildout]
parts=uwsgi

[uwsgi]
recipe=shaunsephton.recipe.uwsgi

Running the buildout will download and compile uWSGI and add an executable with the same name as your part in the bin/ directory. In this case bin/uwsgi. It will also create a uwsgi.xml configuration file in a parts directory with the same name as your part. In this case bin/uwsgi/uwsgi.xml.

This allows you to start a uWSGI process configured by the generated XML file, i.e.:

$ ./bin/uwsgi --xml parts/uwsgi/uwsgi.xml

The generated XML configuration includes pythonpath directives referencing the various Python eggs installed by Buildout allowing uWSGI to utilize them.

You can specify any and all additional uWSGI configuration options as additional options of the Buildout part. For instance to specify a socket and module and to enable the master process add socket, module and master options to the buildout part, i.e.:

[buildout]
parts=uwsgi

[uwsgi]
recipe=shaunsephton.recipe.uwsgi
socket=127.0.0.1:7001
module=my_uwsgi_package.wsgi
master=True

You can also provided a set of eggs explicitly using the eggs option, i.e.:

[buildout]
parts=uwsgi

[uwsgi]
recipe=shaunsephton.recipe.uwsgi
eggs=my_uwsgi_package

Authors

Created By

  1. Shaun Sephton

Contributors

  1. mooball

Changelog

0.0.9 (2011-09-21)

  1. Dynamic option resolution.

  2. Moved conf to parts.

  3. Regenerate XML on update to catch updated eggs.

Project details


Download files

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

Source Distribution

shaunsephton.recipe.uwsgi-0.0.9.tar.gz (4.5 kB view details)

Uploaded Source

Built Distributions

shaunsephton.recipe.uwsgi-0.0.9-py2.7.egg (8.2 kB view details)

Uploaded Source

shaunsephton.recipe.uwsgi-0.0.9-py2.6.egg (8.3 kB view details)

Uploaded Source

File details

Details for the file shaunsephton.recipe.uwsgi-0.0.9.tar.gz.

File metadata

File hashes

Hashes for shaunsephton.recipe.uwsgi-0.0.9.tar.gz
Algorithm Hash digest
SHA256 3377bda1e90ec865d3e58402474deae74fde4b85c0c1fb96a9ba91d393a7a717
MD5 933284b532bb7e68423d023714ac123f
BLAKE2b-256 7334e6aa0640c4d445748aa1252fe0471dfee071126333b86fcd2601f4815bb2

See more details on using hashes here.

File details

Details for the file shaunsephton.recipe.uwsgi-0.0.9-py2.7.egg.

File metadata

File hashes

Hashes for shaunsephton.recipe.uwsgi-0.0.9-py2.7.egg
Algorithm Hash digest
SHA256 5c96856b0974cf6c57f566563e42153eb8becdc9241f328d9f6419955fd41222
MD5 36451c8f5c33f42e2cbfbf53f0011972
BLAKE2b-256 9aaad2995b446420153df725ce24ddfdebeab9904f80e61a8eb295ea491f22a4

See more details on using hashes here.

File details

Details for the file shaunsephton.recipe.uwsgi-0.0.9-py2.6.egg.

File metadata

File hashes

Hashes for shaunsephton.recipe.uwsgi-0.0.9-py2.6.egg
Algorithm Hash digest
SHA256 0e7e96fdc22f5af021c30b61a87d52f637083ffb05582cabce25431c464a6fb8
MD5 e32e8b4798b43ff8bfdcc30b68c0decf
BLAKE2b-256 4cb699a832b44c30a5ba708c33cf936f7a625641eb4cec596b314b748906818d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page