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.1.tar.gz (12.1 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.1-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

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

Hashes for ytmusic_tuieee-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5bd1bab86b6c5c9fc2457f2c7ed0e88a3df3981dfae726ddaccb6a7e61a125c9
MD5 83b5fb589386bae6c5df2acabc02eb73
BLAKE2b-256 f6a9d82a34d8c5bbe9b04dce1e029ac13aea5355677b117c75dae341d3b6ae1c

See more details on using hashes here.

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

Hashes for ytmusic_tuieee-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 69b02726576afccf4b2064b34943c9d5d65e5fdcfb1af5f9d922590ec7875bcf
MD5 10ad9d63604ae65f48a7dfa545295b31
BLAKE2b-256 207f34d013b7c71f05d626a2aa4905b73d53463096b21026450836bb28cdb360

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.2

2 files

This release

0.1.1 This release

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