CLI utility to automate asciinema
Project description
asciinema-automation is a Python package which provides a small CLI utility to automate asciinema recordings. The only dependencies are asciinema and Pexpect.
Recording is made easier by:
making the live recording for you, to get the perfect take in one go (no more missed keys!),
while looking not too robotic by adding Gaussian delay between keystrokes.
One specificity of this package is that
it makes automated recording as reproducible and robust as possible. In particular, there is no need to add a manually set waiting time between commands to wait for previous outputs.
To that end, you can write the commands you wish to showcase in a text file, and using comment lines starting by #$
(see examples folder and example), you can specify the expected output of each command, and/or change the configuration of the automated recording on-the-fly.
Example
This example is generated reading with asciinema-automation a script that calls asciinema-automation which reads the hello_world.sh example in this repository 🙃
Numerous examples can also be found here.
Installation
You can use pip to install:
python3 -m pip install asciinema-automation
Or you can install it directly using this GitHub repository. In this case, you need to call git clone to recover the source code of this repository
git clone https://github.com/PierreMarchand20/asciinema_automation.git
and then call pip in your local folder of this repository to install this package and its dependencies
pip3 install .
History
This repository is inspired by asciiscript, which is not maintained any more. I first made a fork, but being not very familiar with go, I preferred to rewrite everything in python.
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 asciinema_automation-0.2.2.tar.gz
.
File metadata
- Download URL: asciinema_automation-0.2.2.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c6e7587bafe6c23881dbc48693f87df54ce2204794e555fd94725337ddf0279 |
|
MD5 | ab90405a9d6ef39edf250a2e47047369 |
|
BLAKE2b-256 | a98af36f8c1c7e6ae4979cc27c49887afc72fad33d9be4ac7fd4105b91b51977 |
File details
Details for the file asciinema_automation-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: asciinema_automation-0.2.2-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d4f7c776728e1a9edd7663ffa882c71ba07ce020455f851049be4c747fd4d83 |
|
MD5 | 2684297aa13b7609a242ff7f1307d43e |
|
BLAKE2b-256 | d09a107fe12c27140769b67cd5d27e300c1b5ef7dfabd50f9683b7262ab1932f |