Skip to main content

A lightweight terminal music player with a pulsing Cthulhu

Project description

CLI Music Player

A lightweight, terminal-based music player written in Python, using mpv as the playback engine.

Demo

Features

  • Terminal User Interface (TUI): Clean interface built with curses.
  • File Browser: Navigate directories to find your music.
  • Recursive Library Mode: Scan all subdirectories and play your entire collection at once.
  • Shuffle Mode: Randomized playback with a history-aware "Previous" function.
  • Audio Formats: Supports mp3, wav, flac, ogg, m4a, wma, aac, opus.
  • Playback Controls:
    • Play / Pause / Stop
    • Next / Previous Track
    • Volume Control (up to 200%)
    • Seek / Progress Bar
  • Now Playing View: Dedicated screen showing track info and progress.
  • Dependency Check: Automatically detects and attempts to install mpv if missing (Linux).

Requirements

  • Python 3
  • mpv (The script attempts to install it automatically on Linux, but you can install it manually via your package manager).

Installation

  1. Clone the repository:

    git clone https://github.com/thiagofmendonca/cli-music-player.git
    cd cli-music-player
    
  2. Make the script executable:

    chmod +x musicplayer.py
    
  3. (Optional) Install globally:

    sudo cp musicplayer.py /usr/local/bin/musicplayer
    

Usage

Run the script from your terminal:

./musicplayer.py
# OR if installed globally:
musicplayer

Controls

Key Action
Arrow Up/Down Navigate files
Enter Play file / Open directory
Space Play / Pause
n Next Track
p Previous Track (History-aware in Shuffle)
z Toggle Shuffle Mode
R (Shift+r) Load Recursive Library (all subfolders)
B (Shift+b) Return to Browser Mode
+ / - Volume Up / Down
Tab Toggle "Now Playing" View
s Stop
q Quit (or go back from Player View)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cli_music_player_cthulhu-0.3.3.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cli_music_player_cthulhu-0.3.3-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file cli_music_player_cthulhu-0.3.3.tar.gz.

File metadata

  • Download URL: cli_music_player_cthulhu-0.3.3.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for cli_music_player_cthulhu-0.3.3.tar.gz
Algorithm Hash digest
SHA256 78338980811aa0c0cdbb6ddc957319de2507d1255ef78453f31c3a88643becbc
MD5 4ff6c449270f4c32a34dadc9f80d0413
BLAKE2b-256 a00f4bd2478397a815a29ed862640a9f6669dca6298f221695fedabec8e3ba72

See more details on using hashes here.

File details

Details for the file cli_music_player_cthulhu-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for cli_music_player_cthulhu-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0e072dd574e016465a451a04a73c0c75ec0ed95892dad60d762fcf2d502b8b18
MD5 09596fda300ba8ca9e2df7fb9a69f2b6
BLAKE2b-256 f7ff50f8c5fe2a141fd7f37ba733622c95b7c428788a743ea4786c13ba7748c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page