Skip to main content

TYPATRO — a slot-machine typing roguelike for your terminal

Project description

TYPATRO

A slot-machine typing roguelike for your terminal. Type fast, build Chips x Mult, beat Blinds, collect Jokers, and climb Antes — all wrapped in a casino-felt TUI with slot-reel animations.

Features

  • Slot machine feel — reel-spin title intro, odometer score tally that rolls as you type, digit-spin result reveals
  • Balatro-inspired game panel — left sidebar with your current Blind, live Round Score (Chips x Mult), and held Jokers
  • Chips x Mult scoring — +1 chip per correct character, +10 per word, mult scales with accuracy and error-free streaks
  • Blinds — Small, Big, and Boss Blinds with score targets; bosses impose debuffs (hidden mistakes, minimum speed, no backspace, forced accuracy)
  • Jokers — beat a blind, pick 1 of 3; up to 5 held jokers modify your scoring
  • Ante loop — Small -> Big -> Boss, then the next ante with higher targets; run state persists between sessions
  • Classic mode — a plain typing test when you just want to practice

Install

pip install typatro

For local development (recommended):

cd Typatro
uv sync
source .venv/bin/activate
typatro          # or: python -m typatro

If typatro fails with No module named 'typatro', recreate the venv:

rm -rf .venv && uv sync && source .venv/bin/activate

Requires Python 3.9+. Homebrew Python blocks global pip install; a venv avoids that and keeps typatro on your PATH while activated. A Nerd Font improves the icons but isn't required.

Play

Activate the venv first (source .venv/bin/activate), then:

typatro            # run mode (default)
typatro --classic  # plain typing test

How a run works

  1. The sidebar shows your current Blind and its score target
  2. Type the paragraph — the Round Score odometer rolls up with every keystroke
  3. Hit the target before the test ends to beat the blind
  4. Pick a Joker and advance; bosses add debuffs and bigger targets
  5. Lose a blind? Retry it. Want a fresh start? Settings -> Danger Zone -> Reset Run

Controls

Key Action
Type Start the test
Tab Reset test
Esc New paragraph
Ctrl+S Settings
Ctrl+T Themes
Ctrl+L Languages

Click Run/Classic in the strip above the typing area to switch modes.

Development

uv sync --all-groups
uv run python -m pytest tests/

Release (TestPyPI)

Build and upload a test release:

uv sync --all-groups
uv run python -m build
uv run twine upload --repository testpypi dist/*

Install from TestPyPI:

python3 -m venv /tmp/typatro-test
source /tmp/typatro-test/bin/activate
python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ typatro
typatro --help

Use --extra-index-url https://pypi.org/simple/ so dependencies resolve from the main PyPI index.

Credits & license

GPL-3.0. TYPATRO by Swayyum.

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

typatro-1.0.5.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typatro-1.0.5-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

Details for the file typatro-1.0.5.tar.gz.

File metadata

  • Download URL: typatro-1.0.5.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for typatro-1.0.5.tar.gz
Algorithm Hash digest
SHA256 4a12f3d26eebacd8c649c25b24f397210e77708ff3bece39b2c2b27aedd71fff
MD5 199e3e63760de36240b18f3e4b979139
BLAKE2b-256 50721beb75c4a5fa704cc766e7c14444e6189793d40da8f02021f0fe317abd40

See more details on using hashes here.

Provenance

The following attestation bundles were made for typatro-1.0.5.tar.gz:

Publisher: publish-pypi.yml on Swayyum/Typatro

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file typatro-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: typatro-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for typatro-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 160f5424f8d88a0fe790f0abdbb1b7c338c1dc646414173cec2293b0ca83e67d
MD5 500e447f8dafd6db2131ce94e5a197fa
BLAKE2b-256 39bca4e18f3abfedbf5a5bb0186a81c970c966c33af135f1253c4780e6c957fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for typatro-1.0.5-py3-none-any.whl:

Publisher: publish-pypi.yml on Swayyum/Typatro

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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