Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.02 KB

README.md

File metadata and controls

41 lines (25 loc) · 1.02 KB

Asciicast: generate asciicasts from Python code

image

image

Documentation Status

This package provides a Python API to generate asciicasts from Python code.

Installation

    pip install asciicast

Demo

asciicast

Usage

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()