Skip to main content

pynagram3

Pynagram is a simple anagram word game: you get seven jumbled letters and five minutes to find as many words as you can. Find at least one seven-letter word and your score carries over to the next round.

Pynagram was originally written by Umang Varma (2009-2011, https://launchpad.net/pynagram) for Python 2 and PyQt4. This fork ports it to Python 3 and Qt 6 (PyQt6) and packages it so that it can be installed on any modern Linux distribution.

Installation

Pynagram is a regular Python package. It needs Python 3.10 or newer; PyQt6 is pulled in automatically.

pipx installs applications in their own isolated environment and puts the pynagram command on your PATH:

# Debian / Ubuntu
sudo apt install pipx
# Fedora
sudo dnf install pipx
# Arch
sudo pacman -S python-pipx

pipx ensurepath          # once, then open a new terminal
pipx install pynagram3   # from PyPI
# or straight from GitHub:
pipx install git+https://github.com/mirix/pynagram3

uv tool install pynagram3 works the same way if you use uv.

Add it to your application menu

pip cannot install desktop menu entries, so Pynagram can do it for you (current user only, under ~/.local/share):

pynagram --install-desktop     # adds launcher + icons
pynagram --uninstall-desktop   # removes them again

Inside a virtual environment

python3 -m venv ~/.venvs/pynagram
~/.venvs/pynagram/bin/pip install pynagram3
~/.venvs/pynagram/bin/pynagram

(Modern distributions refuse a plain pip install --user with an externally-managed-environment error; use pipx or a venv as above.)

Arch Linux

A PKGBUILD that uses the system python-pyqt6 is in packaging/arch. Build it with makepkg -si.

Troubleshooting

On X11 desktops Qt 6 needs libxcb-cursor. If Pynagram fails with "Could not load the Qt platform plugin xcb", install it:

sudo apt install libxcb-cursor0     # Debian / Ubuntu
sudo dnf install xcb-util-cursor    # Fedora
sudo pacman -S xcb-util-cursor      # Arch

How to play

Key Action
letters pick a letter
Enter submit the word
Backspace put the last letter back
Esc put all letters back
Space shuffle the letters
Ctrl+N new game
Ctrl+L give up and show the solution
Ctrl+O choose a word list
Ctrl+Q quit

Scores: 3/5/8/14/20 points for 3/4/5/6/7-letter words, a 30-point bonus for the first seven-letter word and another 30 for finding every word.

Word lists

The game ships with an English word list derived from SCOWL. Use Game → Word Lists to add your own: plain-text files with one word per line (any language; words are lower-cased and anything that is not purely letters is ignored). You can also drag files, or text from an editor, onto the list. A word list must contain at least one seven-letter word.

Settings live in ~/.config/pynagram/config.json. A configuration from the old ~/.pynagram/config.txt is imported automatically.

Development

git clone https://github.com/mirix/pynagram3 && cd pynagram3
python3 -m venv .venv && . .venv/bin/activate
pip install -e . pytest
python -m pynagram      # run from the checkout
pytest                  # run the tests
python -m build         # sdist + wheel in dist/  (pip install build)

Releasing to PyPI: bump __version__ in pynagram/__init__.py, tag the commit vX.Y.Z and push the tag; the GitHub workflow builds and uploads it (configure the project as a trusted publisher on PyPI first).

Changes since the PyQt5 port

  • Ported from PyQt5 to PyQt6; installable with pip/pipx (pyproject.toml), with a pynagram command and python -m pynagram.
  • Word list and icons are bundled inside the package; the built-in list is found regardless of where the package is installed.
  • Fixed adding word lists from the GUI (the file dialog result was misread) and drag & drop of files/text onto the word list.
  • Fixed word ordering in the solution grid (shortest first, alphabetical, as in the original 1.0).
  • Keyboard input uses the typed character, so non-English word lists work.
  • Unreadable or unusable word lists are reported instead of crashing; the game falls back to the built-in list.
  • Configuration follows the XDG standard (~/.config/pynagram).
  • Desktop launcher and icons via pynagram --install-desktop; proper icon on Wayland.

License

GPL-3.0-or-later; see COPYING. The word list is derived from SCOWL, copyright Kevin Atkinson and others; see pynagram/data/wordlist/README.

Metadata

Release files for pynagram3 3.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pynagram3 3.1.0
File Size Uploaded Provenance Actions
pynagram3-3.1.0.tar.gz 119.1 kB With provenance Details for pynagram3-3.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pynagram3 3.1.0
File Interpreter ABI Platform Actions
pynagram3-3.1.0-py3-none-any.whl Python 3 none any Details for pynagram3-3.1.0-py3-none-any.whl

Total release size: 239.7 kB

Release files / pynagram3-3.1.0.tar.gz

Download URL pynagram3-3.1.0.tar.gz
Size 119.1 kB
Tags Source
SHA-256 checksum
How to use checksums
919d8af4e95c610393aad1f9d8592f3e2a07cd0fcff0d7faec73de98ac1099d3
BLAKE2b-256 checksum
How to use checksums
808daa1732923e4efa79f21a71cded9a70e00413f18d64924013598ba1bd06d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / pynagram3-3.1.0-py3-none-any.whl

Download URL pynagram3-3.1.0-py3-none-any.whl
Size 120.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e93c518e411f9171b3f18be7971dd75d9509e3d8e82fd112b0d7a59d0ebe681
BLAKE2b-256 checksum
How to use checksums
f95dd7fd7fdeceefcaf72bab0720fffb1a4e8daf4ef335f74f992135bd50d742
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for pynagram3 3.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pynagram3-3.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.1.0 This release

2 release files Full provenance

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