ytmusic-tuieee
A beautiful, lightweight, terminal-based YouTube music player. Provide a YouTube video or playlist URL, and stream the songs sequentially directly from your terminal!
It acts like a standalone music player without permanently downloading tracks to your disk. It delegates audio streaming and playback to mpv while resolving YouTube URLs using yt-dlp. The entire interface is built using Textual for a modern, responsive TUI (Terminal User Interface).
Features
- Full TUI: Live playback progress, queue visualization, and status logs.
- Background Audio: Completely headless audio playback powered by MPV.
- Smart Queueing: Add entire playlists and they'll stream sequentially.
- Cookies Support: Easily pass browser cookies for YouTube Premium/Private playlists.
- Auto-Installer: Automatically detects and installs
mpvon Windows if missing.
Requirements
- Python 3.10+
mpv(System media player)- Windows: The app will automatically prompt to install
mpvviawingetif it detects it is missing! - macOS:
brew install mpv - Linux:
sudo apt install mpv
- Windows: The app will automatically prompt to install
Installation
The recommended way to install ytmusic-tuieee globally is using pipx.
pipx install ytmusic-tuieee
(If you don't have pipx, you can install it first with pip install pipx)
Usage
Once installed, simply run the ytmusic command followed by any YouTube URL:
ytmusic "https://www.youtube.com/playlist?list=YOUR_PLAYLIST_ID"
Controls
Inside the TUI, you can type commands in the bottom input box to control playback:
play/p- Start, resume, or toggle playbackpause- Pause playbackstop- Stop the current tracknext/n- Skip to the next trackprevious/prev/b- Go back to the previous trackseek <seconds>- Seek forward or backward (e.g.,seek +30orseek -10)volume <0-100>- Set the playback volume (e.g.,volume 80)quit/q- Exit the player
Configuration (Cookies & Settings)
If you need to access private playlists or YouTube Premium features, ytmusic-tuieee supports extracting cookies directly from your local browser.
Create a configuration file at ~/.ytmusic/config.toml (e.g., C:\Users\YourName\.ytmusic\config.toml on Windows):
browser = "chrome"
volume = 80
autoplay = true
shuffle = false
Supported browsers for automatic cookie extraction: chrome, firefox, edge, brave, opera, safari.
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 ytmusic_tuieee-0.1.1.tar.gz.
File metadata
- Download URL: ytmusic_tuieee-0.1.1.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bd1bab86b6c5c9fc2457f2c7ed0e88a3df3981dfae726ddaccb6a7e61a125c9
|
|
| MD5 |
83b5fb589386bae6c5df2acabc02eb73
|
|
| BLAKE2b-256 |
f6a9d82a34d8c5bbe9b04dce1e029ac13aea5355677b117c75dae341d3b6ae1c
|
File details
Details for the file ytmusic_tuieee-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ytmusic_tuieee-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69b02726576afccf4b2064b34943c9d5d65e5fdcfb1af5f9d922590ec7875bcf
|
|
| MD5 |
10ad9d63604ae65f48a7dfa545295b31
|
|
| BLAKE2b-256 |
207f34d013b7c71f05d626a2aa4905b73d53463096b21026450836bb28cdb360
|