Deiman
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.
Metadata
Release files for deiman 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deiman-0.1.5.tar.gz | 3.6 kB | Without provenance | Details for deiman-0.1.5.tar.gz |
Release files / deiman-0.1.5.tar.gz
| Download URL | deiman-0.1.5.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6d347bbff39348d7d7a73023a52d0df95bb7109de78e2d836845d28793a8dba
|
|
BLAKE2b-256 checksum How to use checksums |
d09f374bf303935387ecfb3404c28822950d8860af1addd827b48159c7efff8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for deiman 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.