pipevcr
Record and play back pipes. Similar to what script does with the terminal but for pipes.
This can be used for debugging or testing where timing matters.
Installation
pip3 install --user pipevcr
# or if you have pipx
pipx install pipevcr
Usage
usage: pipevcr [-h] [-r] [-s SPEED] [-m MAX_PAUSE] FILE
pipevcr - the linux pipe recorder
positional arguments:
FILE data file
options:
-h, --help show this help message and exit
-r, --record record pipe
-s SPEED, --speed SPEED
playback speed, <1 to slow down, >1 to speed up
-m MAX_PAUSE, --max-pause MAX_PAUSE
max pause time between outputs in seconds
Record
You record a pipe with -r, e.g.:
(echo wait 1; sleep 1; echo wait 2; sleep 2; echo end) | pipevcr -r test.vcr
Playback
And play it back with:
pipevcr test.vcr
Faster
To speed it up (2=double):
pipevcr -s 2 test.vcr
Slower
To slow it down (.5=half):
pipevcr -s .5 test.vcr
You can also set the maximum pause time separately:
pipevcr -m 1 test.vcr
Metadata
Release files for pipevcr 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pipevcr-0.1.2.tar.gz | 3.4 kB | Without provenance | Details for pipevcr-0.1.2.tar.gz |
Release files / pipevcr-0.1.2.tar.gz
| Download URL | pipevcr-0.1.2.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
164ca5ac86d3f822f5ea54a31179344212c3b8e3b3980a5ac064be5561b36cbd
|
|
BLAKE2b-256 checksum How to use checksums |
99b696b3fb0832d7deb092b8e320549b042aed9752d57e057a7aa6f549d7dd73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.3
|
Security for pipevcr 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.