Metadata-Version: 2.1
Name: python-pidfile
Version: 3.0.0
Summary: PIDFile context processor. Supported py2 and py3
Home-page: https://github.com/mosquito/python-pidfile
Author: Dmitry Orlov <me@mosquito.su>, Costantino Grana <None>, Lorenzo Baraldi <None>, Michele Cancilla <None>
Author-email: me@mosquito.su
License: MIT
Description: Python PIDFile
        ==============
        
        .. image:: https://travis-ci.org/CostantinoGrana/python-pidfile.svg?branch=master
           :target: https://travis-ci.org/CostantinoGrana/python-pidfile
           :alt: Build Status
        
        .. image:: https://img.shields.io/pypi/v/python-pidfile.svg
           :target: https://pypi.python.org/pypi/python-pidfile/
           :alt: Latest Version
        
        .. image:: https://img.shields.io/pypi/wheel/python-pidfile.svg
           :target: https://pypi.python.org/pypi/python-pidfile/
           :alt: round wheels
        
        .. image:: https://img.shields.io/pypi/pyversions/python-pidfile.svg
           :target: https://pypi.python.org/pypi/python-pidfile/
           :alt: Python versions
        
        .. image:: https://img.shields.io/pypi/l/python-pidfile.svg
           :target: https://pypi.python.org/pypi/python-pidfile/
           :alt: License
        
        .. image:: https://coveralls.io/repos/github/CostantinoGrana/python-pidfile/badge.svg?branch=master
           :target: https://coveralls.io/github/CostantinoGrana/python-pidfile?branch=master
           :alt: Coverage Status
        
        
        Python context manager for managing pid files. Example usage:
        
        .. code-block:: python
        
            import pidfile
            import time
        
            print('Starting process')
            try:
                with pidfile.PIDFile():
                    print('Process started')
                    time.sleep(30)
            except pidfile.AlreadyRunningError:
                print('Already running.')
        
            print('Exiting')
        
        The context manager will take care of verifying the existence of a pid file,
        check its pid to see if it's alive, check the command line (which should be `<something>/<python name>`), and
        if all the conditions are met, rise a `pidfile.AlreadyRunningError` exception.
        
        `PIDFile()` defaults to `pidfile` for the file name, but it's possible to specify another, e.g. `PIDFile('foobar.pid')`.
        
Platform: unix
Classifier: Development Status :: 5 - Production/Stable
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: License :: OSI Approved :: MIT License
Provides-Extra: develop
