Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Deiman is a Python utility class for daemonizing a process. It provides start and stop methods, as well as a method for retrieving running status information. Linux/Unix-only.

Project Description

Deiman is a Python utility class for daemonizing a process. It has start and stop methods, as well as a method for retrieving running status information.

Linux/Unix-only.

Uses the Unix double fork method to fork your process to the background.

Installation

From PyPI

pip install deiman

Or

easy_install deiman

From GitHub

pip install -e git+git://github.com/kura/deiman.git#egg=deiman

From source

Download the latest tarball from PyPI or GitHub. Unpack and run:

python setup.py install

Usage

To use Deiman, you simply need to import the main Deiman class, passing a path to where you want the pid to be stored and call the start and stop methods as required:

from deiman import Deiman


d = Deiman("/tmp/a.pid")
d.start()

while True:
    print "This print will be hidden because I am daemonized"

Examples

See the examples directory for usage examples on GitHub.

Release History

Release History

This version
History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
deiman-0.1.5.tar.gz (3.6 kB) Copy SHA256 Checksum SHA256 Source Jul 23, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting