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, otherwise everything gets jumbled and you can't track data effectively)

  • 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.1.tar.gz (939.3 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.1-py3-none-any.whl (87.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zetamac_tui-1.0.1.tar.gz
  • Upload date:
  • Size: 939.3 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.1.tar.gz
Algorithm Hash digest
SHA256 4d4603e027469b53151372de2e900046e15a6374ab8ff1c43c01f8d5f3cd4814
MD5 7c93beae8945afee29184773ec63009d
BLAKE2b-256 8b822781c7399d18b64db4342cba593cd3da51b39673b89b0a27bf37105aaf8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zetamac_tui-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 87.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 035fbda62111fc7936ec22f7a9adaf964a827fc937f102028eb475fd4de42ffe
MD5 a83e09d0146c1d57a4bc7d72ecea1e47
BLAKE2b-256 52a8c0a085a2abbf76b7f31dc95a64fbdd2c0d90d2ae8bf0ceae11b893df277d

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.3

2 files

1.0.2

2 files

This release

1.0.1 This release

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