Bad Apple!! Terminal Player 🍎
Flicker-free, audio-synced Bad Apple!! player for your terminal.
Features
- 3 Rendering Modes:
ascii(Default): Classic nostalgic ASCII shading (.:-=+*#%@).braille: Ultra high-resolution rendering using Unicode Braille (2x4 matrix) characters.halfblock: 2x vertical resolution using half-block characters (▀,▄) for crystal-clear silhouettes.
- Zero-Setup & Featherlight Footprint: Installs in seconds without bloated dependencies! Automatically provisions media assets with MD5 checksum verification.
- Zero-CPU Binary Cache Engine (BAPB v1): Plays from a pre-rendered, zlib-compressed 1-bit binary cache (
bad_apple.bin, ~7.7 MB) for <0.5% CPU consumption and instantaneous (0.04 ms) seeking! - Cross-Platform Audio Engine: Backed by
pygame.mixerfor distortion-free pause/resume and zero-latency seeking, with fallback to native OS drivers on Windows (winmm.dllMCI), macOS (afplay), and Linux (ffplay/mpv/aplay). - Flicker-Free & Ghost-Free Rendering: Employs Alternate Screen Buffer (
\033[?1049h), scrollback buffer purging, and dynamic resizing for a pristine, clean display at 30 FPS. - Dynamic Sizing & Visual Scrubber: Automatically senses terminal dimensions, preserves the 4:3 aspect ratio, centers output, and displays an interactive progress bar.
Controls
| Key | Action |
|---|---|
| Space | Pause / Resume |
| M | Cycle render modes (ascii → braille → halfblock) |
| Right Arrow (→) | Seek forward 5 seconds |
| Left Arrow (←) | Seek backward 5 seconds |
| R | Restart playback |
| Q / Esc | Quit |
Installation & Quick Start
Option 1: Install via pip (Recommended)
pip install bad-apple-in-terminal
Run it directly from anywhere in your terminal:
bad-apple
# or
badapple
Option 2: Run from Source (Zero-Setup)
Just clone and run! Required dependencies and media files are automatically prepared on first launch:
git clone https://github.com/Ohualtex/bad-apple.git
cd bad-apple
python main.py
Options & Flags
# Start with a specific render mode (ascii, braille, halfblock)
bad-apple --mode ascii
# Pre-render compact binary cache for zero-CPU playback and instantaneous seek
bad-apple --build-cache
# Force real-time OpenCV decoding instead of binary cache
bad-apple --no-cache
# Disable audio
bad-apple --no-audio
# Set specific terminal width/height
bad-apple --width 100 --height 35
macOS Tips
- Gapless Half-Block Display:
The default macOS Terminal.app adds vertical font leading (line spacing) between lines. To achieve a seamless, OLED-smooth display:- Open Terminal → Settings (
Cmd + ,) → Profiles → Text. - Click Change... under Font.
- Expand the font window downward if needed, and set the Line Spacing slider to
0.80. - Alternatively, press
Mto switch to Braille mode (which is naturally immune to line spacing), or use modern terminals like iTerm2, Ghostty, or Kitty.
- Open Terminal → Settings (
Metadata
Release files for bad-apple-in-terminal 1.1.6
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 |
|---|---|---|---|---|
| bad_apple_in_terminal-1.1.6.tar.gz | 26.3 kB | Without provenance | Details for bad_apple_in_terminal-1.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bad_apple_in_terminal-1.1.6-py3-none-any.whl | Python 3 | none | any | Details for bad_apple_in_terminal-1.1.6-py3-none-any.whl |
Total release size: 56.4 kB
Release files / bad_apple_in_terminal-1.1.6.tar.gz
| Download URL | bad_apple_in_terminal-1.1.6.tar.gz |
|---|---|
| Size | 26.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16663cc5f915445253a896230596e2efab61078bd551f9f569bec8004d1d2d2b
|
|
BLAKE2b-256 checksum How to use checksums |
8e671d777b59da8bdc582f0cd965be3a5c4be6af1da65c90b38f2ce4ec8853f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / bad_apple_in_terminal-1.1.6-py3-none-any.whl
| Download URL | bad_apple_in_terminal-1.1.6-py3-none-any.whl |
|---|---|
| Size | 30.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25ac7484fd468c1c4c2b750b96f0f910cd7b3a7851c08bb23620f189c012e8f1
|
|
BLAKE2b-256 checksum How to use checksums |
baad85818cfbd36a65bfbf79579f18b548302f7c486c7bbbab398b4a2731197a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for bad-apple-in-terminal 1.1.6
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.