Library / SDK
peterbrittain/asciimatics avatar
peterbrittain/asciimatics

asciimatics: one release from 2023, five lint configs, and two dependency lists

A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations

4,307 stars270 forksPythonApache-2.0

At a glance

What is it?
A Python cross-platform console library whose newest tag is 1.15.0 from October 2023 while the master branch moved in July 2026. The packaging metadata, the dependency file the readme points at, and the platform list each disagree with something else in the same repository.
Who is it for?
Take it if you are writing a Python 3 text interface and want a single dependency set that behaves the same across console platforms, and pin a released version instead of tracking the branch, because the tag line stops at 1.15.0 while the code has moved on since.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 142 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • peterbrittain/asciimatics4,307 ★ · +4
Star history
Repository2026-09-232026-11-23
peterbrittain/asciimatics4.3k4.3k

4 Stars in the last 61 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Version 1.15.0 dates from October 2023 while master moved in July 2026

The newest published release in this repository's history is 1.15.0, on 2023-10-25. Before it came 1.14.0 on 2022-04-23 and 1.13.0 on 2021-04-05, so the release line moved at roughly yearly intervals and then stopped. The last push to `master` is dated 2026-07-04 and the repository is not archived, which means code and packaging have been changing for about two and a half years with no tag to point at.

That gap is structural rather than accidental. `pyproject.toml` declares `dynamic = ['version', 'readme']` and hands versioning to setuptools_scm, which derives the number from git metadata and writes it out to `asciimatics/version.py` at build time, with `local_scheme = "no-local-version"` so a checkout that is not on a tag gets no local suffix. Nothing in the working tree therefore carries a version string of its own. Reading the branch to find out what version you would get means reading a file the build overwrites, and the version badge in the readme points at PyPI rather than at anything in `master`.

pyproject.toml and setup.py both configure the same package

The root holds two build files that both configure one distribution. `pyproject.toml` is the real one: build backend `setuptools.build_meta`, requiring `setuptools` and `setuptools_scm`, the project metadata, the dependency list, and a formatting section for yapf.

`setup.py` sits beside it as a shim. It opens `README.rst`, drops every line above the one reading ASCIIMATICS so the badge block stays out of the package description, and calls setup with `packages=find_packages(exclude=['contrib', 'docs', 'tests*'])`. That exclude list names three things, and the tree has none of the first two: there is a `doc/` directory, not `docs/`. So one entry filters nothing, one points at a name this repository does not use, and only the third matches something present.

toml
[tool.yapf]
COLUMN_LIMIT = 110
SPLIT_ALL_TOP_LEVEL_COMMA_SEPARATED_VALUES = true

requirements.txt names two lines while pyproject.toml names four dependencies

The installation section says that if you do not use pip, or if pip fails, you can install the dependencies yourself from the packages named in `requirements.txt`. That file has two lines: an include of `requirements/base.txt`, and the word `Pillow`.

The authoritative set is the `dependencies` array in `pyproject.toml`: `pyfiglet >= 0.7.2`, `Pillow >= 2.7.0`, `wcwidth >= 0.5.0`, and `pywin32 >= 1.0` behind the marker `platform_system=='Windows'`. The tree holds a `requirements/` directory for the nested include to resolve into, so the full list for the manual route sits partly in that included file.

bash
$ pip install asciimatics

Windows users who are not on pip are named separately, since they have to install `pywin32` themselves.

PyPy2 in the test claim, a 3.8 floor in the metadata

One stretch of the readme contradicts the packaging metadata a few sections later. It states that the package supports Python version 3, that the last version to support Python 2 is v1.14, and then, in the next sentence, that it should be implementation agnostic and has been successfully tested on CPython and PyPy2. Those cannot all describe the same artifact, because v1.14 is the last Python 2 line and everything after it is Python 3 only.

The version floor is also stated twice without agreeing. `requires-python = ">= 3.8"` in `pyproject.toml`, while the classifier list names only `Python :: 3.9`, `Python :: 3.10` and `Python :: 3.11`. A 3.8 interpreter is therefore allowed by the constraint and unclassified by the metadata. The same classifier block declares `Development Status :: 5 - Production/Stable` and `Operating System :: OS Independent`, which sets up the next mismatch rather than resolving this one.

The keyword list is wider than either statement: `ascii`, `ansi`, `curses`, `ncurses`, `xterm`, `tty`, `mouse`, `keyboard` and `terminal` among the seventeen entries.

The proven-platform list stops at Ubuntu 14.04 and OSX 10.11

The readme enumerates where the package has been proven to work: CentOS 6 and 7, Raspbian on Debian wheezy, Ubuntu 14.04, Windows 7, 8 and 10, OSX 10.11, and Android Marshmallow by way of termux. Every entry on that list has been out of support for years, and the same paragraph invites readers to report other platforms so the list can be extended. Nothing in it has been refreshed, so it records the platforms of an earlier era rather than the ones current code is exercised on.

The claim is also narrower than the classifier suggests. What is claimed is low-level console access: coloured and styled text including 256 colour terminals and unicode characters even in CJK languages, cursor positioning, keyboard input without blocking or echoing, mouse input where the terminal permits, console resize detection, and screen scraping. One of those six is explicitly conditional on the terminal, and the metadata still carries `Operating System :: OS Independent`. The fallback position is weaker than independence: any platform with a working curses implementation should work, which is a statement about the platform's terminal layer rather than about the package.

Sample links point at the v1.15 tag, not the branch

The examples section links into the samples directory at a pinned tag, with the tree URL ending in `tree/v1.15/samples`, while the default branch here is `master`. The code on offer is therefore the code as of the 2023 release, and it will not move when `master` does. The instruction is to download the files and run them directly with `python`, which means every asset a script loads has to be copied alongside it.

The visible listing shows why that matters. Next to the `.py` files sit binary inputs: `colour_globe.gif`, `globe.gif`, `grumpy_cat.jpg`, `pacman.png` and `fruit.ans`, plus a `mapscache/` directory. A sample copied out of that tree without its neighbours is the failure the instruction does not mention. Recordings of many of them are collected in the project wiki instead.

Screen.wrapper is the entry point in both documented examples

Both code samples enter through `Screen.wrapper(demo)`, and the callback is handed the screen it draws on. In the low-level version the callback picks a position with `randint(0, screen.width)` and `randint(0, screen.height)`, writes with `print_at` using `colour=` and `bg=` values drawn from `screen.colours`, waits on `screen.get_key()`, and repaints with `screen.refresh()`. Quitting means comparing the returned value against `ord('Q')` and `ord('q')`, so the low-level loop polls and compares key codes by hand, and the code is written to behave the same on Windows, OSX and Linux.

The higher-level version keeps that entry point and replaces what is inside it. Effects are constructed against the screen, `FigletText` arrives from the renderers, `Cycle` and `Stars` are the two effects used, and the result is handed to `screen.play([Scene(effects, 500)])`. Widgets sit at that same level: buttons, text boxes and radio buttons are named among the higher-level APIs, next to anti-aliased line drawing and image to ASCII conversion for JPEG and GIF.

python
from random import randint
from asciimatics.screen import Screen

def demo(screen):
    while True:
        screen.print_at('Hello world!',
                        randint(0, screen.width), randint(0, screen.height),
                        colour=randint(0, screen.colours - 1),
                        bg=randint(0, screen.colours - 1))
        ev = screen.get_key()
        if ev in (ord('Q'), ord('q')):
            return
        screen.refresh()

Screen.wrapper(demo)

Five tool configs sit beside pyproject.toml

The root of the repository carries five tool configurations that predate the pyproject file: `.coveragerc` for coverage, `.pylintrc` for pylint, `.stickler.yml` for Stickler CI, `.landscape.yml` for Landscape, and `mypy.ini` for type checking. The visible part of `pyproject.toml` holds a yapf section, while lint, type and coverage rules live in those separate files.

The documentation side is split the same way: a `.readthedocs.yaml` for the hosted docs, a `doc/` directory, and `CHANGES.rst`, `CONTRIBUTING.rst`, `MANIFEST.in` and `PULL_REQUEST_TEMPLATE.md` at the root. The readme points at `http://asciimatics.readthedocs.org/` for the full documentation, at a troubleshooting page when something breaks, and at the GitHub issue tracker and a Gitter lobby otherwise. Licensing is stated three times over: `license = 'Apache-2.0'` with `license-files = ['LICENSE']` in `pyproject.toml`, the same license named in the readme, and the `LICENSE` file itself in the tree.

Editorial conclusion

Take it if you are writing a Python 3 text interface and want a single dependency set that behaves the same across console platforms, and pin a released version instead of tracking the branch, because the tag line stops at 1.15.0 while the code has moved on since. Check three things before you commit: whether your input model matches the polling loop shown here, whether the platform you target is on the proven list or merely plausible from a working curses implementation, and whether the manual install route via `requirements.txt` gives you the same set as `pyproject.toml`. If you need a classifier for Python past 3.11, or if you are still on Python 2, the metadata and the readme contradict each other, and that is worth settling in your own fork.

Frequently asked questions

What does ASCII stand for in Python?

That is a question about text encoding rather than about this package. What it claims for text is terminal level output: coloured and styled text including 256 colour terminals and unicode characters even in CJK languages, plus cursor positioning and keyboard input that neither blocks nor echoes.

How do you install asciimatics on Windows without pip?

Windows users who are not using pip have to install `pywin32` themselves, which the install notes call out by name. The dependency set gates it behind a marker, `pywin32 >= 1.0; platform_system=='Windows'`, so `pip install asciimatics` installs it for pip users on Windows and skips it on other platforms.

Which Python versions does asciimatics support?

The constraint in `pyproject.toml` is `requires-python = ">= 3.8"`, while the classifiers name only 3.9, 3.10 and 3.11. The last version to support Python 2 was v1.14, published 2022-04-23, and the newest release, 1.15.0, came on 2023-10-25.

Is asciimatics still releasing new versions?

The newest release recorded for this repository is 1.15.0 from 2023-10-25, preceded by 1.14.0 in 2022 and 1.13.0 in 2021. The repository is not archived and the last push to `master` is 2026-07-04, with the version number generated at build time by setuptools_scm rather than written into the tree.

What does Screen.wrapper do in asciimatics?

It is the entry point in both documented examples. Your callback receives the screen and works on it: the low-level demo calls `print_at`, `get_key` and `refresh` on it, and the animation version builds a list of Effects and hands it to `screen.play([Scene(effects, 500)])` instead.

Official sources

  1. Issues
  2. License: Apache-2.0
  3. peterbrittain/asciimatics on GitHub
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/peterbrittain-asciimatics.svg)](https://hysenlabs.com/projects/peterbrittain-asciimatics)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/peterbrittain-asciimatics.svg)](https://hysenlabs.com/projects/peterbrittain-asciimatics)

Was this useful?