Rpnpy – a reverse-Polish notation calculator for Python

URL: github.com
1 comments

The aim is to emulate the operation of early Hewlett-Packard calculators, but generalized by allowing programming in Python, providing access to useful Python functions, and to allow anything to be on the stack.

- provides typical numeric calculator operations.

- can read commands from the command line, from standard input, or from files.

- has a simple terminal REPL interface and a text-based user interface (TUI) with clickable buttons for digits and common operations and a display of the stack and variables.

- provides for input/output using engineering notation, e.g., 12K.

- provides direct access to over 400 Python functions, pre-imported from the builtins, math, operator, functools, and decimal modules.

- is programmable. You can write your own Python functions, to be loaded from a start-up file.

- allows you to put Python data structures, and other objects and functions onto the stack and operate on them.

- uses readline to keep a command history within and between sessions.

- is compatible with Python 3.9 through 3.14.