Skip to main content

Bad Apple!! Terminal Player 🍎

PyPI version Python Version License: MIT

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!
  • Audio Master Clock Synchronization: Playback framerate and scrubbing are locked to the audio hardware master clock with automatic frame-drop compensation for drift-free A-V synchronization.
  • OS-Isolated Driver Architecture: Decoupled platform drivers (platforms/windows, platforms/macos, platforms/linux) managing terminal ANSI/VT100 environments, non-blocking raw inputs, and hardware audio engines.
  • Cross-Platform Audio Engine: Backed by pygame.mixer (with 4096 CoreAudio buffer on macOS) and native OS fallbacks on Windows (winmm.dll MCI), macOS (afplay / ffplay), and Linux (ffplay / mpv / mpg123 / mplayer / pw-play / paplay).
  • 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

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

# 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:
    1. Open Terminal → Settings (Cmd + ,) → Profiles → Text.
    2. Click Change... under Font.
    3. Expand the font window downward if needed, and set the Line Spacing slider to 0.80.
    4. Alternatively, press M to switch to Braille mode (which is naturally immune to line spacing), or use modern terminals like iTerm2, Ghostty, or Kitty.

Metadata

Release files for bad-apple-in-terminal 2.0.1

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

Source distribution (sdist)

Source distribution for bad-apple-in-terminal 2.0.1
File Size Uploaded Provenance Actions
bad_apple_in_terminal-2.0.1.tar.gz 23.8 kB Without provenance Details for bad_apple_in_terminal-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bad-apple-in-terminal 2.0.1
File Interpreter ABI Platform Actions
bad_apple_in_terminal-2.0.1-py3-none-any.whl Python 3 none any Details for bad_apple_in_terminal-2.0.1-py3-none-any.whl

Total release size: 57.5 kB

Release files / bad_apple_in_terminal-2.0.1.tar.gz

Download URL bad_apple_in_terminal-2.0.1.tar.gz
Size 23.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fe3f33324b93c1acf885e8e9bd49492f8e7804e9d915cebb57a7d0fc5e727cbb
BLAKE2b-256 checksum
How to use checksums
4f41f00cd2b9741e309d680425f4da8ed18cc219be8852dc7f29f8b001f73abc
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-2.0.1-py3-none-any.whl

Download URL bad_apple_in_terminal-2.0.1-py3-none-any.whl
Size 33.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
066f787da2130e1e2f91effc9f7c092931b2e9d8bb40948693b7599e0bf9e54c
BLAKE2b-256 checksum
How to use checksums
e0f1823389cd24eebad3490ca05048bfe7bbc8b33c756cfc3dc2af6d4673f2fa
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 2.0.1

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.

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