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.2.0.tar.gz (12.1 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.2.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cli_music_player_cthulhu-0.2.0.tar.gz
  • Upload date:
  • Size: 12.1 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.2.0.tar.gz
Algorithm Hash digest
SHA256 ec3dd959a7f8fe147539390fe2cc5fc0f695f73a9a821f5246cda66b176e85e8
MD5 871983df7c5a39b1f13ebd831a2cbf2a
BLAKE2b-256 922ed221c728ec2aff52e6d1796a41e75baf5f75be4e9279f850ff89aefd1f4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cli_music_player_cthulhu-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99e960ba5e6fac563e4e5e5344ecc414bf27ba62019609f82d3f3a2519203a4a
MD5 0d27dda72936ca28761eb70007b32286
BLAKE2b-256 29f426aafdf78327b31a824ec74ae452096aa1898620404251070bf8807712a5

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