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

Uploaded Source

Built Distributions

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

Uploaded Python 3

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

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for python-pidfile-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d590498f7b6f686a14636f436b2849ff3a1b867fd7c26ea8adf9a9d11e745ada
MD5 b5fa552c31affc9e24c298439a4a3e15
BLAKE2b-256 0042841ea9670c16601661a29bc5f1fc314578aa5b506442c8659355334895ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_pidfile-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d3721607409eb4df6f3d0f77db79f66f23a155b09cf832d7ba7bfdc1457990b4
MD5 4983c8ef527964bb5bd011fa8cfd918f
BLAKE2b-256 40a85feb4a45fca7e761ad7c55ce0e287383bd8ec798b7b7578295bfe1458084

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_pidfile-1.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 0547d400990b09d20207d43f344b11d67a63659d73be821faea6e2199b6a61c4
MD5 3835c7c3ed19104a4c1a6ae9e18fe59e
BLAKE2b-256 d53b0bf7b17bcd22aca32a097123800b824edd5fa3b5a31e1d934a4e35b495a1

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