Skip to main content

Build Status

onthefly

onthefly allows you to emulate typing the contents of an input file by wildly pressing the asdfjkl; keys on your keyboard.

Great for live coding presentations.

Demo

Features

  • Unicode support (you need ibus installed and running)
  • Works with any text editor (in fact, with any program)

Installation

Install and update using pip:

> sudo python -m pip install onthefly

Usage

Identify your keyboard's device path with the command line tool evtest:

> sudo evtest

ID  Device               Name                                 ...
------------------------------------------------------------- ...
0   /dev/input/event0    Lid Switch                           ...
1   /dev/input/event1    Power Button                         ...
2   /dev/input/event2    Sleep Button                         ...
3   /dev/input/event3    Power Button                         ...
4   /dev/input/event4    AT Translated Set 2 keyboard         ...
5   /dev/input/event5    Video Bus                            ...
6   /dev/input/event6    Logitech M215 2nd Gen                ...
7   /dev/input/event7    Logitech K330                        ...
8   /dev/input/event8    SynPS/2 Synaptics TouchPad           ...
.
.
.

From this output, we see that my keyboard (a Logitech K330) has the device path /dev/input/event7.

Pass your keyboard's device path as an argument to the --keyboard option when invoking onthefly for the first time.

> onthefly --keyboard="/dev/input/event7" /path/to/file

Note that onthefly prompts for the root password in order to have access to the keyboard events.

The keyboard's device path is remembered so you do not have to re-enter it in future invocations:

> onthefly /path/to/file

Type the F9 key to quit the program at any moment. Use the Backspace key to erase characters without going out of sync with the input file.

License

  • Free software: MIT license

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Metadata

Release files for onthefly 1.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for onthefly 1.1.8
File Size Uploaded
onthefly-1.1.8.tar.gz 13.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for onthefly 1.1.8
File Interpreter ABI Platform
onthefly-1.1.8-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 21.1 kB

Release files / onthefly-1.1.8.tar.gz

Download URL onthefly-1.1.8.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3ec1a260da01177871bbb5240107ad521f366c5f7ba5531544f8cb9e569873a2
BLAKE2b-256 checksum
How to use checksums
83bee55c58d0bc523261e3b920b0ffe0e04f211499e674f2873b07da482541be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / onthefly-1.1.8-py2.py3-none-any.whl

Download URL onthefly-1.1.8-py2.py3-none-any.whl
Size 7.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5c97a52bdfec8d64713b6ae10f29d373872e27f7ed2d11a88ac64681b172b1d4
BLAKE2b-256 checksum
How to use checksums
46fae1eb80bb0f32a194133d88cd7376ecb53123fb79aca3986ad8a0e1e3685c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

1.1.8 This release

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

3 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page