This package provides a Python API to generate asciicasts from Python code.
pip install asciicast
The asciicast
module provides a Asciicast
class that can be used to record
asciicasts from Python code.
Example:
from asciicast.cast import Cast
cast = Cast(typing_delay=0.03)
cast.echo("# How to use asciicast?")
cast.wait(0.5)
cast.type("cat -n examples/demo1.py")
cast.wait(0.2)
cast.run()