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.1.0.tar.gz (9.5 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.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for cli_music_player_cthulhu-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4674443718d860dea4cdc111cc860ffca930260f891bf268cd4405cad9c908de
MD5 6af59fcafcbff3be28e4937c276876db
BLAKE2b-256 6de02871d0a5dd60c8a820aa6427e9f97426a557b4535fbea4fbfeb76a3fcd87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cli_music_player_cthulhu-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da62f3865ee1c6a9bf36055bcc5574be2d2a185a183c431e36fae311a8226353
MD5 9337e24149bcf3503284580d84d5399a
BLAKE2b-256 104c10f721bde8d3475d3569275e17a8be269388158e0e3912b72a138fead235

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