Getting Started

Install TachyPy

pip install tachypy

The base install includes GLFW for display/input, PyOpenGL, Pillow text support, pyserial for serial trigger workflows, and TachyAudio for audio playback. Pygame support has been removed; GLFW is the supported display/input backend. TachyAudio is currently published as a beta release; TachyPy requires tachyaudio>=0.2.0b2, which includes the Windows wheel fix. If your pip resolver refuses pre-releases, pass --pre explicitly.

For development:

git clone https://github.com/Charestlab/tachypy.git
cd tachypy
pip install -e .

Optional extras

pip install -e ".[test]"        # pytest, coverage, lint tooling
pip install -e ".[wooting]"     # Wooting analog-keyboard integration
# Pillow, FreeType, HarfBuzz, GLFW, and audio are included in the base install

See Wooting Analog Keyboards for the Wooting analog-keyboard integration.

Minimal loop

from tachypy import Screen, ResponseHandler

screen = Screen(fullscreen=False, width=1280, height=720)
responses = ResponseHandler(screen=screen)

running = True
while running:
    screen.fill((128, 128, 128))
    screen.flip()
    responses.get_events()
    if responses.should_quit() or responses.was_key_pressed("esc"):
        running = False

screen.close()