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-1.0.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distributions

python_pidfile-1.0.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

python_pidfile-1.0.3-py2-none-any.whl (4.5 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for python-pidfile-1.0.3.tar.gz
Algorithm Hash digest
SHA256 9b163c3bf8dbf7f30e86b95276f4198d5ff669250cf734bd73babea593068816
MD5 43809fdb64c886cf0f4d9407008b8e59
BLAKE2b-256 ede8c47d2e9b0dd662db483dbf7ce809b6b87f2870d96ca501f6bfbff202e188

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_pidfile-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 29e8363273f845949df29c0f5252d4c3839755ed2453df561ee2334224f66ca2
MD5 4e9a03ebb1d23045436aa84fa6a9b4aa
BLAKE2b-256 ba5b9826c1415b5136c756991f0f72c6e815dd0e946412bca10575eeba0b6d94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_pidfile-1.0.3-py2-none-any.whl
Algorithm Hash digest
SHA256 2b5402ec7f922c34f126e8409eeaec43294e6df246677af3d564748cceabe5a3
MD5 71c50958306ddfb60993bc2740b2af46
BLAKE2b-256 6d536ad451dfad077496994cfe67966216dda09a4717cbfdfb4f55f748251871

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