Skip to main content

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 mpv on Windows if missing.

Requirements

  • Python 3.10+
  • mpv (System media player)
    • Windows: The app will automatically prompt to install mpv via winget if it detects it is missing!
    • macOS: brew install mpv
    • Linux: sudo apt install mpv

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 playback
  • pause - Pause playback
  • stop - Stop the current track
  • next / n - Skip to the next track
  • previous / prev / b - Go back to the previous track
  • seek <seconds> - Seek forward or backward (e.g., seek +30 or seek -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

ytmusic_tuieee-0.1.2.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

ytmusic_tuieee-0.1.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file ytmusic_tuieee-0.1.2.tar.gz.

File metadata

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

File hashes

Hashes for ytmusic_tuieee-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7b931796b25c5bd760bfde9e27a0d8e74268d421975f4cb455b4c80eb4e7ec65
MD5 5488bd13fbf4ee9b789a600ae416db9d
BLAKE2b-256 4bd47e16d580dc85e3d42f29e832bc5bbcbcde120e213f23da37509ba1d9b46e

See more details on using hashes here.

File details

Details for the file ytmusic_tuieee-0.1.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for ytmusic_tuieee-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 16c48fa2b273c986b2e82fddf488b0af0b6a6b3b66f0a56f460771f5e29f1687
MD5 74f986bb867dc36f5ef2b140266382e1
BLAKE2b-256 e0bc250ec66e367a3866e677a98c65bcc6f1e60311b8d42a611a7af228794759

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page