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 plug

How to install plug

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install plug
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1.3 Available View build log
0.1.2 Available View build log
0.1.1 Available View build log
0.1.0 Available View build log
Windows (64-bit)
0.1.3 Available View build log
0.1.2 Available View build log
0.1.1 Available View build log
0.1.0 Available View build log
Mac OS X (10.5+)
0.1.3 Available View build log
0.1.2 Available View build log
0.1.1 Available View build log
0.1.0 Available View build log
Linux (32-bit)
0.1.3 Available View build log
0.1.2 Available View build log
0.1.1 Available View build log
0.1.0 Available View build log
Linux (64-bit)
0.1.3 Available View build log
0.1.2 Available View build log
0.1.1 Available View build log
0.1.0 Available View build log
 
License
BSD
Imports
Lastest release
version 0.1.3 on Jul 26th, 2011

Plug

Plug is a tool to automate packaging and installation of Python daemons including Python dependencies in the package. It grew out of my use of Supervisor and the problems of managing large numbers of processe.

Installing

Use pip!

pip install plug

Creating a Plug

To create a plug you create a config file with minimal information then run

plug create {package_name}

The config file looks something like:

[server1] command=bin/python -m SimpleHTTPServer 8001 user=plug_user

You will be left with a plug:

{package_name}.server1.plug

Installing a Plug

Once you put this on your system you can run

plug install {package_name}.server1.plug

This will create a new virtualenv in /srv/plug ready to be setup as a daemon. To have runit start the process you run:

plug setup {package_name}.server1.plug

Optionally with the argument --number to setup multiple daemons from that package. The number causes multiple links to be created in /etc/sv and /etc/srv.

Uninstalling a Plug

To uninstall the plug use the uninstall command

plug uninstall {package_name}.server1.plug

This will also remove the links for runit.

Other Commands

Other commands included are list and status which will list all plugs installed and the runit status of each daemon instance.

Subscribe to package updates

Last updated Jul 26th, 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.