Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Run your WSGI applications as a true unix daemon.
Python Shell
Branch: develop

Merge pull request #46 from orthographic-pedant/spell_check/application

Fixed typographical error, changed aplication to application in README.
latest commit b027071eac
@daltonmatos authored


WSGId = WSGI Daemon


Wsgid is a mongrel2 ( adapter for WSGI applications. With wsgid you will be able to run your WSGI app as a true unix daemon.


To install just clone this repo and run: (pip package coming soon)

sudo python install

Use example

Before youcan use wsgid, you will need to initialize your wsgid app folder. This folder is where you app will live. To do so, just run

wsgid init --app-path=/path/to/my/wsgid-app-folder

From now on, all command you type must have --app-path=/path/to/my/wsgid-app-folder parameter.

What this command does is create some well known folders, eg: pid/, pid/master, pid/worker, app, logs.

All of you application code will be places inside the ${WSGID_APP_FOLDER}/app folder. So to deploy a django app, just copy your project folder to ${WSGID_APP_FOLDER}/app.

To start an application just call wsgid like this.

wsgid --app-path=/path/to/the/app --recv=tcp:// --send=tcp://

This will load the app located at /path/to/the/app and be ready to process requests. wsgid automatically detects what kind of application it will load.

You don't have to type all this every time. You can use the init command to create a config file, like this:

wsgid config --app-path=/path/to/the/app --recv=tcp:// --send=tcp://

This will create a wsgid.json file inside your wsgid app folder. So the next time you start you app you8 can type just:

wsgid --app-path=/path/to/the/app
If wsgid is not able do detect the application WSGI framework you can use the --wsgi-app option.
wsgid --app-path=/path/to/the/app --recv=tcp:// --send=tcp:// --wsgi-app=my.package.application

--wsgi-app is the full qualified name of the WSGI application object, this way wsgid can find the app's entry point, as defined by pep-333.

See more at:

Plugable Appication Loaders

wsgid has a plugable Application Loader subsystem, this way you can write your own AppLoader. To do this just write an class that extends the wsgid.core.Plugin class and implements the IAppLoader interface. See the PyRoutesLoader (wsgid/loaders/ for an actual example. To make wsgid use your loader just pass na aditional option: --loader-dir. This must point to the path where yout loader is located. More about this, read the docs on the site:


wsgid is Licensed under New BSD, see LICENSE for details.

Know more

Know more about the wsgid project at the official website: and at the docs:

2010-2011 | Dalton Barreto

Something went wrong with that request. Please try again.