Skip to main content

zetamac-tui

TUI zetamac clone (identical core interface) plus SQLite tracking, replay, and flash anzan (also mental arithmetic), built with Textual.

Python Textual License

Screenshots

Settings Play View runs

Features

  • All features from arithmetic.zetamac.com with an identical interface and functionality (as shown above), like addition, subtraction, division.

  • Local SQLite run history with per-problem timings (only runs with default setting though)

  • A pretty interface for selecting runs with summaries for each

  • Able to replay any run, or replay all the hardest questions (questions which took the longest time)

  • Per-run analytics to identify weak spots

  • Fully keyboard-driven terminal UI (what Textual does).

  • An additional flash anzan gamemode, although that doesn't have the logging the core does

  • Written in python, so can descend into a python or sqlite shell for directly interacting with the state. For dev, and can be normally used with helper functions defined.

Installation / Quick Start

Requires Python 3.10+.

Install from PyPI (recommended) - pipx

pipx install "zetamac-tui[opt]"

Using pip

pip install "zetamac-tui[opt]"

Install from github

git clone https://github.com/yaofanfish/zetamac-tui.git
cd zetamac-tui
pipx install -e ".[opt]"

Usage

zetamac-tui

The interface is generally straightforward, and as mentioned before, the core is identical to the web zetamac. Configure settings, start a round, review past runs, or replay difficult questions directly from the menu.

Data Storage

( On windows, replace ~ with %USERPROFILE%\AppData\Local\zetamac-tui, so settings would be C:\Users\DemoUser\AppData\Local\zetamac-tui.local\state\zetamac-tui\settings.json It is linux first, so the paths are a bit awkward. )

  • Settings: ~/.local/state/zetamac-tui/settings.json
  • Run history: ~/.local/share/zetamac-tui/runs.db
  • Python rc file: ~/.config/zetamac-tui/pyrc.py

Contributing

Issues and pull requests are welcome.

git clone https://github.com/yaofanfish/zetamac-tui.git
cd zetamac-tui
pip install -e ".[dev,opt]"

License

GPL-3.0

Acknowledgments

Inspired by Zetamac by Zach Wissner-Gross.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zetamac_tui-1.0.2.tar.gz (940.4 kB view details)

Uploaded Source

Built Distribution

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

zetamac_tui-1.0.2-py3-none-any.whl (88.5 kB view details)

Uploaded Python 3

File details

Details for the file zetamac_tui-1.0.2.tar.gz.

File metadata

  • Download URL: zetamac_tui-1.0.2.tar.gz
  • Upload date:
  • Size: 940.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for zetamac_tui-1.0.2.tar.gz
Algorithm Hash digest
SHA256 990386df45407fdd969f0e143bef655e2a370cb47a6d46a9a3f9f72a89a231e7
MD5 d00145774c8a66fb902335086f046afb
BLAKE2b-256 10feb9ec3ae193808ff3a0f7758949f50ce5bfeea1d42d9ecac48f638d32458b

See more details on using hashes here.

File details

Details for the file zetamac_tui-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: zetamac_tui-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 88.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for zetamac_tui-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f06f144963277d40def3df1cf4d73fa95522514b0f1c7c2e3298ea8c546b9631
MD5 47ba7e70308a4637ac4f92713312d5d1
BLAKE2b-256 b110c9256cbf812f777a929decf9b717567b0cf6d4ba13d1b8d1bbee27172e6f

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.3

2 files

This release

1.0.2 This release

2 files

1.0.1

2 files

1.0.0

2 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