Skip to main content

MadhavMusicCLI 🎵

A Termux-first terminal music player — stream YouTube, manage playlists, view lyrics, all inside your terminal.

PyPI Python 3.9+ License: MIT

✨ Features

Feature Details
🎵 YouTube Streaming Search & stream via yt-dlpno API key needed
📱 Termux/Android Touch-friendly, compact layout, auto-detects termux-media-player
💾 Local Music Scans MP3, FLAC, OGG, WAV, M4A, OPUS from your device
📋 Queue & Playlists Build queues, manage listening order
🎤 Lyrics Synced lyrics via syncedlyrics
📜 History Persistent listening history
🎨 4 Themes Default · Dracula · Nord · Gruvbox
⌨️ Keyboard-first Full keyboard & touch navigation
🔌 Plugin System Add providers via Python entry-points

🚀 Installation

Termux (Android) — Recommended

# 1. Install Python + audio tools
pkg install python mpv

# 2. (Optional) Install Termux:API app from F-Droid for termux-media-player support

# 3. Install MadhavMusicCLI
pip install madhavmusiccli

# 4. Launch!
music

Linux / macOS / Windows

pip install madhavmusiccli
music

Note: On desktop, install pygame for audio:

pip install madhavmusiccli pygame

🎮 Usage

music                          # launch with auto-detected music folder
music --library ~/Music        # specify music directory
music --theme dracula          # start with Dracula theme
music --version                # show version

⌨️ Key Bindings

Key Action
Ctrl+Q Quit
Ctrl+P Play / Pause
Ctrl+N Next track
Ctrl+B Previous track
Ctrl+S Search YouTube
Ctrl+L Lyrics panel
Ctrl+H History panel
Ctrl+T Cycle theme
Space Play / Pause
← → Seek ±5 seconds
↑ ↓ Navigate list
Enter Play selected
F1 Help

🔌 Audio Backends (Auto-detected)

MadhavMusicCLI automatically picks the best backend:

Priority Backend Platform
1 termux-media-player Termux/Android (Termux:API)
2 mpv All platforms (pkg install mpv)
3 pygame Desktop (Linux/macOS/Windows)
4 ffplay All platforms (ffmpeg)

🔌 Plugin System

Add custom music providers via pyproject.toml entry-points:

[project.entry-points."madhavmusiccli.providers"]
myprovider = "mypkg.provider:MyProvider"

Subclass MusicProvider from madhavmusiccli.plugins.base.

🛠️ Development

git clone <your-repo>
cd CLI_music
pip install -e ".[dev]"
pytest -q
music

📦 Upload to PyPI

See PYPI_UPLOAD.md for full instructions.

upload_pypi.bat --test   # TestPyPI first
upload_pypi.bat          # real PyPI

📄 License

MIT — see LICENSE

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

madhavmusiccli-0.1.3.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

madhavmusiccli-0.1.3-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

Details for the file madhavmusiccli-0.1.3.tar.gz.

File metadata

  • Download URL: madhavmusiccli-0.1.3.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.9

File hashes

Hashes for madhavmusiccli-0.1.3.tar.gz
Algorithm Hash digest
SHA256 526c4c16b58c87cfb4a11cec39eabd6e9d4945c25f04d6c063e5276099b83a76
MD5 98deac4ae5cb94e37e8a8de77c532aed
BLAKE2b-256 9d2f801fac89160736614878a051c44eda616e667f601525a6295551dd07afa3

See more details on using hashes here.

File details

Details for the file madhavmusiccli-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: madhavmusiccli-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 28.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.9

File hashes

Hashes for madhavmusiccli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 377b150559e2672b5fa63caf928e7ad17a53ef9e1225ffef819855cb77db4b12
MD5 8371cfc5a8af24c4ce83814a1175888d
BLAKE2b-256 ba49aba34ec5af2a906da766a5bfc232b1115536bc288a41358e797f73841a07

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