# Is it possible to "script" asciinema?

**URL:** <https://discourse.asciinema.org/t/is-it-possible-to-script-asciinema/416>\
**Category:** Help\
**Created:** [August 26, 2020, 6:27pm UTC](https://discourse.asciinema.org/t/is-it-possible-to-script-asciinema/416 "2020-08-26T18:27:13Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![russoz](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/russoz/32/629_2.png) [@russoz](https://discourse.asciinema.org/u/russoz)\
**Post date:** [June 17, 2025, 11:36pm UTC](https://discourse.asciinema.org/t/is-it-possible-to-script-asciinema/416/17 "2025-06-17T23:36:47Z")

</div>

Hi @joelmccracken I have just announced “asciinwriter” ([Yet another tool to generate input - #3 by russoz](https://discourse.asciinema.org/t/yet-another-tool-to-generate-input/1009/3)) that serves exactly that purpose. I wanted to script the term demo of my project.

It consumes an input like:

```auto
  SEND(git clone --quiet --depth 1 https://github.com/ansible-collections/community.general.git)
 ENTER()
EXPECT($ )

  SEND(cd community.general)
 ENTER()
EXPECT($ )
  SEND(ls)
 ENTER()
EXPECT($ )

  SEND(andebox test -R -- integration --docker default --python 3.13 pipx_info)
 ENTER()
EXPECT($ )

```

In fact, since you mentioned `expect`, this one is based on `expect` (or more precisely `pexpect`, the Python implementation of if).

---

_[View the full topic](https://discourse.asciinema.org/t/is-it-possible-to-script-asciinema/416)._
