Metadata-Version: 1.1
Name: click-lock
Version: 0.6
Summary: Adds locks and timeouts to click entrypoints
Home-page: https://github.com/baverman/click-lock/
Author: Anton Bobrov
Author-email: baverman@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Description: click-lock
        ==========
        
        Adds locks and timeouts to `Click <http://click.pocoo.org/>`_ entrypoints.
        
        There is only one decorator ``click_lock.lock`` which can be applied
        to click commands and groups:
        
        .. code:: python
        
            # example.py
            import time
            import click
            import click_lock
        
            @click.command()
            @click_lock.lock
            def cmd():
                time.sleep(10)
        
            cmd()
        
        Now you have some additional options::
        
            Usage: example.py [OPTIONS]
        
            Options:
              --lock fname          Path to lock file
              --timeout seconds     Limit script execution time
              --trace / --no-trace  Log traceback in case of timeout  [default: True]
              --help                Show this message and exit.
        
        For example, lock script execution::
        
            python example.py --lock /tmp/example.lck
        
        Limit script execution time::
        
            python example.py --timeout 1
        
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX
Classifier: Operating System :: MacOS
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Internet
Classifier: Topic :: System :: Distributed Computing
Classifier: Topic :: System :: Systems Administration
