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.
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
mpvif 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
-
Clone the repository:
git clone https://github.com/thiagofmendonca/cli-music-player.git cd cli-music-player
-
Make the script executable:
chmod +x musicplayer.py
-
(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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cli_music_player_cthulhu-0.3.0.tar.gz.
File metadata
- Download URL: cli_music_player_cthulhu-0.3.0.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
662890ad763de49b0663bf695e69d8295266b149620d313d88e5e5ef0c5c7bfe
|
|
| MD5 |
ec34befde5b487922447cc5d1292993e
|
|
| BLAKE2b-256 |
55c369dcffb2bb1d5905402ea29c949a4fd77f0fd8946b2899dcb320d5a2bd8f
|
File details
Details for the file cli_music_player_cthulhu-0.3.0-py3-none-any.whl.
File metadata
- Download URL: cli_music_player_cthulhu-0.3.0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
446bba79c7de0fc9710a10a1ed788c841bd60ac92e1d4c01fd79378805d4923e
|
|
| MD5 |
c7b87f9f593a681cc440bf5542ee945d
|
|
| BLAKE2b-256 |
38a06e92a3d6ab1639506927f603ec30dad9243cb4be640b2f2ed268a15386e3
|