mydonut
A configurable, animated, interactive ASCII donut for your terminal. Themes, animations, character sets, live keyboard controls, and a twinkling star background, all rendered with NumPy.
Install
# Recommended: isolated install, `mydonut` lands on your PATH
pipx install mydonut
# or plain pip
pip install mydonut
# Arch Linux (AUR)
yay -S mydonut
Run it:
mydonut
mydonut --theme rainbow --color-by angle --cycle 0.2 --stars
mydonut --theme ocean --animation wobble,pulse --charset blocks
mydonut --list # every theme, animation and charset
Controls
| Key | Action | Key | Action |
|---|---|---|---|
↑ ↓ |
speed | c / C |
theme |
← → |
size | a / A |
animation |
t / T |
thickness | s / S |
characters |
o / O |
hole size | b / B |
color mode |
l |
light spin | u |
color cycling |
space |
pause | h |
toggle help bar |
r |
reset | q |
quit |
Options
| Flag | Meaning |
|---|---|
--theme |
mono fire sunset ocean forest neon ice matrix strawberry gold rainbow |
--color-by |
light depth angle tube |
--animation |
comma-separated: static spin tumble flip roll wobble sway pulse morph orbit bounce |
--charset |
classic smooth blocks dots minimal binary hash |
--speed --size |
multipliers |
--thickness --hole |
tube radius / ring radius |
--light-azimuth --light-elevation --light-spin |
light direction and orbit |
--cycle |
palette cycles per second |
--stars |
star background |
--quality |
low medium high |
--fps |
target frame rate |
--no-hud |
start with the help bar hidden |
Set NO_COLOR=1 to default to the monochrome theme.
How it works
- A torus is sampled as ~28k surface points, each with a normal vector.
- Points and normals are rotated by a matrix built from the current animation.
- Perspective projection maps them onto the character grid.
- A depth buffer keeps the nearest point per cell.
- Brightness (normal · light direction) picks the character and colour.
Inspired by Andy Sloane's classic donut.c.
Development
git clone https://github.com/Pravir-005/mydonut
cd mydonut
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest
License
MIT
Metadata
Release files for mydonut 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mydonut-0.1.0.tar.gz | 14.4 kB | With provenance | Details for mydonut-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mydonut-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mydonut-0.1.0-py3-none-any.whl |
Total release size: 27.5 kB
Release files / mydonut-0.1.0.tar.gz
| Download URL | mydonut-0.1.0.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5084dbb7dad0ef347b58bb5ac51d585b43dba1f4f31fb98746250fc2ab465f0d
|
|
BLAKE2b-256 checksum How to use checksums |
4161bd78f9ff92dac84497ed184a60d20bd208253d644ac75e840f480c82fdd3
|
| 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 22, 2026.
Transparency logRelease files / mydonut-0.1.0-py3-none-any.whl
| Download URL | mydonut-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fea9e140f95d151ac78bd993f0e3f4e7c7ce6952fc4171ebe090d9a45b67a9e4
|
|
BLAKE2b-256 checksum How to use checksums |
c4cb7de28fa8b8dccfa1646cb172c78fa02c8c1a338ad81ac306002f7e2ac74a
|
| 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 22, 2026.
Transparency logSecurity for mydonut 0.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.
Attestation for mydonut-0.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 22, 2026.
Transparency logA 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.