pipevcr


Namepipevcr JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/laktak/pipevcr
SummaryRecord and play back pipes.
upload_time2023-06-30 21:10:16
maintainer
docs_urlNone
authorChristian Zangl
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# 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
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/laktak/pipevcr",
    "name": "pipevcr",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Christian Zangl",
    "author_email": "laktak@cdak.net",
    "download_url": "https://files.pythonhosted.org/packages/19/12/b5f66661b1c722d5fb465df478087d2e89a154314eae150070d7a1c1e936/pipevcr-0.1.1.tar.gz",
    "platform": null,
    "description": "\n# pipevcr\n\nRecord and play back pipes. Similar to what `script` does with the terminal but for pipes.\n\nThis can be used for debugging or testing where timing matters.\n\n## Installation\n\n```\npip3 install --user pipevcr\n\n# or if you have pipx\npipx install pipevcr\n```\n\n## Usage\n\n```\nusage: pipevcr [-h] [-r] [-s SPEED] [-m MAX_PAUSE] FILE\n\npipevcr - the linux pipe recorder\n\npositional arguments:\n  FILE                  data file\n\noptions:\n  -h, --help            show this help message and exit\n  -r, --record          record pipe\n  -s SPEED, --speed SPEED\n                        playback speed, <1 to slow down, >1 to speed up\n  -m MAX_PAUSE, --max-pause MAX_PAUSE\n                        max pause time between outputs in seconds\n```\n\n## Record\n\nYou record a pipe with `-r`, e.g.:\n\n```\n(echo wait 1; sleep 1; echo wait 2; sleep 2; echo end) | pipevcr -r test.vcr\n```\n\n## Playback\n\nAnd play it back with:\n\n```\npipevcr test.vcr\n```\n\n## Faster\n\nTo speed it up (2=double):\n\n```\npipevcr -s 2 test.vcr\n```\n\n## Slower\n\nTo slow it down (.5=half):\n\n```\npipevcr -s .5 test.vcr\n```\n\nYou can also set the maximum pause time separately:\n\n```\npipevcr -m 1 test.vcr\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Record and play back pipes.",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/laktak/pipevcr"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1912b5f66661b1c722d5fb465df478087d2e89a154314eae150070d7a1c1e936",
                "md5": "b912aa533b75be5a870ce9fd72ddbe01",
                "sha256": "eb40ec29d3cabd2f72fdf54083447aa622589a38975399bb7e48287d236ea60f"
            },
            "downloads": -1,
            "filename": "pipevcr-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b912aa533b75be5a870ce9fd72ddbe01",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3285,
            "upload_time": "2023-06-30T21:10:16",
            "upload_time_iso_8601": "2023-06-30T21:10:16.582735Z",
            "url": "https://files.pythonhosted.org/packages/19/12/b5f66661b1c722d5fb465df478087d2e89a154314eae150070d7a1c1e936/pipevcr-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-30 21:10:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "laktak",
    "github_project": "pipevcr",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pipevcr"
}
        
Elapsed time: 2.20609s