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.2.tar.gz (11.3 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.2-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cli_music_player_cthulhu-0.3.2.tar.gz
  • Upload date:
  • Size: 11.3 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.2.tar.gz
Algorithm Hash digest
SHA256 2f87ee8988caf1dccf4cd73a5d1abcd82128346010da3950b681d2374b366c13
MD5 ff34ab507b79bdba16afa4498a629c31
BLAKE2b-256 2e19659a75e1a470e8a0f3d5930f6c1e37c565d7bc574ed7068b2c308ba1cb3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cli_music_player_cthulhu-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 08a2955a108fa323bf571269ab2fbc6232ec698fed35054d7589c90b9ffdb91a
MD5 4df5d6ecdef500e70c873cf61cfa87f8
BLAKE2b-256 023e3c1c6417af794ad0af7d906513e01c7bdd6487cd73a241cc5b6920fb9eae

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