A drop-in replacement for tee with file buffering and output queue management.
Project description
Pipelines may wish to use tee
to cache intermediate steps as a failsafe in case of a downstream failure. This strategy is limited by the fact that the speed at which tee
writes to disk is bottlenecked by the speed at which the downstream pipeline reads from its stdout. Therefore tee
cannot finish writing to disk before its input has been completely output by the downstream pipeline. An option is to store all input from stdin in an in-memory buffer, but this can lead to out-of-memory failures. The steed
command overcomes this limitation by writing to the on-disk file continuously, while simultaneously reading from it to obtain a size-limited buffer queue that is output to stdout. This allows steed
to complete writing to disk before it has finished outputting to downstream commands, improving its utility as a cacheing mechanism.
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
Built Distribution
File details
Details for the file steed-0.1.1.tar.gz
.
File metadata
- Download URL: steed-0.1.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/7.0.1 keyring/24.3.0 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/1.0.0 requests/2.31.0 rfc3986/1.5.0 tqdm/4.66.1 urllib3/1.26.5 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84c32cc0df2fcdef4eb645fb07c41c404df2f9d2497fa6d36cdfc49692889bb1 |
|
MD5 | 845cc767e9b4366687523137279b5ef4 |
|
BLAKE2b-256 | 59eef678e546afee83f0b0e95866881fc1e7d699e21274a84f25a831fd60080b |
File details
Details for the file steed-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: steed-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/7.0.1 keyring/24.3.0 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/1.0.0 requests/2.31.0 rfc3986/1.5.0 tqdm/4.66.1 urllib3/1.26.5 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 255ceee3cf1ebecca42403418deb74c1431517cb32dbd43570d64ec985ce6c74 |
|
MD5 | ebbbdd988a4e2adcec777e7eaceaffe0 |
|
BLAKE2b-256 | 954c831e231c978c81fd7c294df9760faa2305294a41fc9f1410e4abcda14bf7 |