Skip to main content

A lightweight terminal music player with mpv engine and auto-setup

Project description

CLI Music Player (Cthulhu Edition)

A powerful, lightweight terminal-based music player written in Python. It combines a robust local file browser with online streaming capabilities (YouTube, SoundCloud) and a unique visual style featuring a pulsing Cthulhu and synced lyrics.

Demo

Features

  • Hybrid Playback:
    • Local: Plays MP3, FLAC, OGG, WAV, M4A, and more.
    • Online: Search and stream directly from YouTube and SoundCloud.
  • Robust Engine: Uses mpv as the core backend for best-in-class format support and stability.
  • Visuals:
    • Pulsing Cthulhu animation.
    • Synced Lyrics: Automatic fetching from LRCLib with fallback to Letras.mus.br and Lyrics.ovh.
  • Smart Interface:
    • Recursive Library: Scan entire folder trees.
    • Search Mode: Press / to find online tracks instantly.
    • Persistence: Save your default music directory.
  • Cross-Platform:
    • Linux: Works with system mpv.
    • Windows: Automatically downloads a portable mpv if missing.

Installation

Via PIP (Recommended)

pip install cli-music-player-cthulhu

Requirements

  • Python 3.8+
  • Linux: You must install mpv (e.g., sudo pacman -S mpv or sudo apt install mpv).
  • Windows: No extra steps! The player downloads a standalone mpv on first run if needed.

Usage

Run the player:

musicplayer
# OR open a specific folder:
musicplayer /path/to/music

Controls

Key Action
Arrow Up/Down Navigate files / Scroll Lyrics
Enter Play file / Open directory / Select Search Result
Space Play / Pause
/ Search Online (YouTube default, use sc: for SoundCloud)
l Toggle Lyrics / Cthulhu View
D (Shift+d) Set current directory as Default (Persistent)
n Next Track
p Previous Track (History-aware)
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)

Advanced Search

  • YouTube: Just type your query (e.g., Coldplay Yellow).
  • SoundCloud: Prefix with sc: (e.g., sc:Synthwave mix).

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.6.1.tar.gz (12.7 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.6.1-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cli_music_player_cthulhu-0.6.1.tar.gz
  • Upload date:
  • Size: 12.7 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.6.1.tar.gz
Algorithm Hash digest
SHA256 b525738b0b7a491ef971d578dbad51164f82baf93d53f17a95dbfba6012139f5
MD5 42bf3f845f6c5f066263342c674e199e
BLAKE2b-256 321cd4ae1881db518504acdec367740dc1453e9ea081493cf17f9da7b6d2a75e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cli_music_player_cthulhu-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 84a8f73b9f1b9e4457c3deba8ce8c0cd8e4ad46c63b237d39b9ebc23ae19c4a8
MD5 bae0c2af3efd34f14e7d9c0dbe900c59
BLAKE2b-256 e066d8a3f073c9791ea88acf2a63eafde83b1b2f86086c643c51d55d48cfc94c

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