Skip to main content

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] [-f] [-t 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

-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:

Windows

set PYTEST_ADDOPTS=--cov-append
tox

Other

PYTEST_ADDOPTS=--cov-append tox

Changelog

0.1.0 (2016-04-21)

  • First release on PyPI.

Metadata

Release files for holdup 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for holdup 0.1.1
File Size Uploaded
holdup-0.1.1.tar.gz 14.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for holdup 0.1.1
File Interpreter ABI Platform
holdup-0.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 20.4 kB

Release files / holdup-0.1.1.tar.gz

Download URL holdup-0.1.1.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
da417ea85bad96c5f2aa4c80c66c62fcd6b24569d970c97068f6bd60cef3e231
BLAKE2b-256 checksum
How to use checksums
97119d39c2d5a7db137a4e7feacff19f985e91ec56743851cdf2a38fbd39d1a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / holdup-0.1.1-py2.py3-none-any.whl

Download URL holdup-0.1.1-py2.py3-none-any.whl
Size 6.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
82703ba1ced21cf70ad13c9bbd36e0e857c55ad4a2abbc8d78992b9c40ac3b6c
BLAKE2b-256 checksum
How to use checksums
4ec610fabffe75f598170c0ca6c8b468fe5f97df896dba0618c4e12ca56f9b78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

5.1.1

2 release files

5.1.0

2 release files

5.0.0

2 release files

4.0.0

2 release files

3.0.0

2 release files

2.0.0

2 release files

1.8.1

2 release files

1.8.0

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page