Metadata-Version: 1.1
Name: holdup
Version: 1.1.0
Summary: A tool to wait for services and execute command. Useful for Docker containers that depend on slow to start services (like almost everything).
Home-page: https://github.com/ionelmc/python-holdup
Author: Ionel Cristian Mărieș
Author-email: contact@ionelmc.ro
License: BSD
Description: ========
        Overview
        ========
        
        
        
        A tool to wait for services and execute command. Useful for Docker containers that depend on slow to start services
        (like almost everything).
        
        * Free software: BSD license
        
        Installation
        ============
        
        ::
        
            pip install holdup
        
        Documentation
        =============
        
        Usage: ``holdup [-h] [-t SECONDS] [-i SECONDS] [-n] service [service ...] [-- command [arg [arg ...]]]``
        
        Wait for services to be ready and optionally exec command.
        
        positional arguments:
          service               A service to wait for. Supported protocols: "tcp://host:port/", "unix:///path/to/domain.sock".
          command               An optional command to exec.
        
        optional arguments:
          -h, --help            Show this help message and exit.
          -t SECONDS, --timeout SECONDS
                                Time to wait for services to be ready. Default: 5.0
          -i SECONDS, --interval SECONDS
                                How often to check. Default: 0.2
          -n, --no-abort        Ignore failed services. This makes `holdup` return 0 exit code regardless of services actually responding.
        
        Development
        ===========
        
        To run the all tests run::
        
            tox
        
        Note, to combine the coverage data from all the tox environments run:
        
        .. list-table::
            :widths: 10 90
            :stub-columns: 1
        
            - - Windows
              - ::
        
                    set PYTEST_ADDOPTS=--cov-append
                    tox
        
            - - Other
              - ::
        
                    PYTEST_ADDOPTS=--cov-append tox
        
        
        Changelog
        =========
        
        
        1.1.0 (2016-05-06)
        ------------------
        
        * Removed debug print.
        * Added ``--interval`` option for how often to check. No more spinloops.
        
        1.0.0 (2016-04-22)
        ------------------
        
        * Improved tests.
        * Always log to stderr.
        
        0.1.0 (2016-04-21)
        ------------------
        
        * First release on PyPI.
        
Keywords: wait,port,service,docker,unix,domain,socket,tcpwaiter,holdup,hold-up
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: Unix
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Utilities
