Skip to main content

A Linux CLI demo replay tool, written in Python 3

Project description

typeytypey

This is a Linux CLI demo replay tool, written in Python 3. As I've gone to meetups around the place, I've always wondered why presenters rarely make mistakes. I mean, how can they be so polished in their presentations, especially with "live" demos?

I'll let you in on a secret, they're not.

Often presenters will use demo replay tools, and I've written a prrof of concept showing you how it can be done.

Even though this thing is fine for my personal use, I welcome patches, bug reports etc to make this thing useful to others. Feel free to drop me a line at michael@the-davies.net if you want to help.

Development Installation

You should run this in a venv. Do something like this:

$ python3 -m venv ~/venv
$ . ~/venv/bin/activate
$ pip install -U pip
$ pip install .

Installing a Release

That's what pypi is for!

$ python3 -m venv ~/venv
$ . ~/venv/bin/activate
$ pip install -U pip
$ pip install typeytypey

Usage

# Show us the options:
$ typeytypey --help

Usage: typeytypey [--help|--version|--make-example] <replay-file>

Supported commands in a replay file are:
  #          This is a comment
  prompt     Set the shell prompt
  cmd        Command to print
  out        Start of output to display
  endout     End of output to display
  wait       <seconds> before proceeding
  clear      Clear the screen
  return     Print an empty prompt
  start      Display start message and delay <seconds>
  end        Suppress input and wait <seconds>

# Check out what version we're running
$ typeytypey --version
typeytypey version typeytypey 0.1.0
Copyright (C) 2019 Michael Davies <michael@the-davies.net>

# Generate a sample replay file
$ typeytypey --make-example
Writing "/tmp/typeytypey.replay" as an example replay file

# Run the replay file we just created
$ typeytypey /tmp/typeytypey.replay

And that's about it. Enjoy!

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

typeytypey-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

typeytypey-0.1.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file typeytypey-0.1.0.tar.gz.

File metadata

  • Download URL: typeytypey-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for typeytypey-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bdf9db906091bbcafc26a544045b021214c69e95d1c9e2f8f364df70b8e0553f
MD5 80dd9617a8b86d8acd78c6639a4bbb4f
BLAKE2b-256 0569a69921ea6aceb9279691acd37303d7e352865468381d2718240dc465f76b

See more details on using hashes here.

File details

Details for the file typeytypey-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: typeytypey-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for typeytypey-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c8ab2e0d334193d7e4b0d10f28f6c1d5eecbf1720f805593dfb009569b3f1d5
MD5 ec07d38f4c85a168ecc91d667140b12c
BLAKE2b-256 637d491a3259e5f8e8d5f0ee0ccf0268c18206cdbaa13a55e6cb6d419a3d7a4f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page