Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install greins

How to install greins

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install greins
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2.0 Available View build log
Windows (64-bit)
0.2.0 Available View build log
Mac OS X (10.5+)
0.2.0 Available View build log
Linux (32-bit)
0.2.0 Available View build log
Linux (64-bit)
0.2.0 Available View build log
 
Author
License
MIT License
Imports
Lastest release
version 0.2.0 on Sep 20th, 2011

About

Greins is a Gunicorn application which makes it easy to configure and manage any number of WSGI apps in one server daemon. It aims to simplify the process of setting up any number of system-wide Gunicorn daemons.

Installation

Greins requires a working version of Gunicorn. It is recommended to read and understand the Gunicorn installation instructions before using Greins.

Install from sources:

$ python setup.py install

Install as an rpm:

$ make rpm

Whatever was here before was wrong. There is no place in PyPI for Greins. The most useful aspects of Greins are in the packaging, since it aims to facilitate deployment of Gunicorn and adds no particular functionality itself.

There's an init script in etc/init aims to be LSB-compliant and packaging for other distributions and systems is an ongoing effort.

Those wishing to deploy Greins for their own infrastructure are encouraged to contribute to the development.

Basic Usage

Greins installs one command line script invoked as greins.

greins

Options are the same as for Gunicorn with one exception: the single APP_MODULE argument is replaced by APP_DIR, a directory containing python source files as described in the following section.

Application Configuration

Applications should be configured by placing a python source file in the configuration directory. This file should populate a dictionary in the global scope called mounts which maps address prefixes (or 'mount points') to WSGI handler functions.

These files are evaluated just like a Gunicorn config file. Server hooks are valid in these configuration files and work as in Gunicorn. Other options, such as logging and worker configuration, are ignored and should be configured globally for the Greins application.

It should be possible to write an application for Gunicorn and then place the application's configuration inside the configuration directory for Greins to begin using it within Greins immediately.

LICENSE

Greins is released under the MIT License. See the LICENSE file for more details.

Subscribe to package updates

Last updated Sep 20th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.