Skip to main content

PIDFile context processor. Supported py2 and py3

Project description

https://travis-ci.org/mosquito/python-pidfile.svg?branch=master Latest Version https://img.shields.io/pypi/wheel/python-pidfile.svg https://img.shields.io/pypi/pyversions/python-pidfile.svg https://img.shields.io/pypi/l/python-pidfile.svg

Python context manager for manage pid files:

from pidfile import PIDFile

if __name__ == "__main__":

    with PIDFile("/var/run/myprogram.pid"):
        print('Hello world')

Project details


Download files

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

Source Distribution

python-pidfile-2.0.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distributions

python_pidfile-2.0.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

python_pidfile-2.0.0-py2-none-any.whl (4.9 kB view details)

Uploaded Python 2

File details

Details for the file python-pidfile-2.0.0.tar.gz.

File metadata

File hashes

Hashes for python-pidfile-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d60d334ffa49a2a1442ca1f56685ddb4123a7492d53d8bf1d1e6f6e3b6fc4435
MD5 c0bebfb39e24998cea88ad307b3296ad
BLAKE2b-256 856173672c5190298d98ddfebb87d784633dd2e56d020db156b5fa9e5634ec00

See more details on using hashes here.

File details

Details for the file python_pidfile-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_pidfile-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 803083eaf8fa2dab4e581af688ae0bb7a235a777ecf2d873db56e2ccd025d034
MD5 b2226a1f422b25c854fca6296315d54b
BLAKE2b-256 562c4290353d7fecf7744a7606f8a248913e7c255acad8d7e34c3205a5222a42

See more details on using hashes here.

File details

Details for the file python_pidfile-2.0.0-py2-none-any.whl.

File metadata

File hashes

Hashes for python_pidfile-2.0.0-py2-none-any.whl
Algorithm Hash digest
SHA256 51a1d8c837638329d9675b7aaae08c5fc23b4ccd0e7b5a6f39e1ef9662edd6a6
MD5 48c270c6afc79a64bb268986326e0cb0
BLAKE2b-256 9723c73510388bdfbaab5455362bb86e8497e2cfbb888652d1107e700c060cdb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page