A command-line TUI music player for Plex
Project description
Plexbar
Plexbar is a keyboard-driven terminal music player for Plex. It gives you a simple Textual TUI for browsing and playing your Plex music library without opening a web browser.
Features
- First-run Plex connection setup
- Browse by Artists, Albums, Tracks, and Playlists
- Search your Plex music library
- Queue tracks, albums, artists, and playlists
- Play, pause/resume, stop, and skip with keyboard shortcuts
- Local playback through
mpv
Requirements
- Python 3.12+
uvmpvinstalled and available onPATH- A Plex server with at least one music library
- A Plex token
Installation
Install Plexbar as a standalone command with uv:
uv tool install plexbar
Run Plexbar:
plexbar
Installation for development
Clone the repository and sync dependencies with uv:
git clone git@github.com:feoh/plexbar.git
cd plexbar
uv sync
Run Plexbar from the project checkout:
uv run plexbar
First-run setup
If ~/.config/plexbar/config.toml does not exist, Plexbar opens a setup screen
and prompts for:
- Plex base URL, for example
http://puppy:32400orhttp://127.0.0.1:32400 - Plex token
- Default music library
The config file is written to:
~/.config/plexbar/config.toml
Plexbar writes this file with user-only permissions where supported. Do not commit or share your Plex token.
Finding your Plex token
One common method:
- Open Plex Web and sign in.
- Open browser developer tools.
- Go to the Network tab.
- Refresh Plex Web or browse to a media item.
- Search requests for
X-Plex-Token. - Copy the token value only.
Usage
The top-level browser contains:
- Artists
- Albums
- Tracks
- Playlists
Press Enter to drill down into artists, albums, and playlists. Press Enter
on a track to enqueue it.
Keybindings
| Key | Action |
|---|---|
/ |
Search Plex music |
Enter |
Select/drill down, or enqueue focused track |
p |
Play focused track/album/artist/playlist immediately and replace queue |
a |
Append focused track/album/artist/playlist to queue |
Space |
Pause/resume |
n |
Next track |
s |
Stop playback |
q |
Quit |
Local validation
uv run ruff check .
uv run ruff format --check .
uv run pytest
uv run mypy src/plexbar tests
Current limitations
Plexbar currently launches mpv as a subprocess for each track. Future versions
may switch to mpv IPC for richer playback state and automatic end-of-track
advancement.
Project details
Release history Release notifications | RSS feed
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 plexbar-0.1.3.tar.gz.
File metadata
- Download URL: plexbar-0.1.3.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8abb7249886dfcc239e60db8f348144dcfcd653d5acbf38753f0a23f5f3bc22b
|
|
| MD5 |
b5ddaf2e80a0541f0441ab7738d50ae2
|
|
| BLAKE2b-256 |
e4d3e1e2119f1bcbba4657f1b737a027c6d628b8a87a8d03b72598df3f7a9527
|
Provenance
The following attestation bundles were made for plexbar-0.1.3.tar.gz:
Publisher:
publish.yml on feoh/plexbar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plexbar-0.1.3.tar.gz -
Subject digest:
8abb7249886dfcc239e60db8f348144dcfcd653d5acbf38753f0a23f5f3bc22b - Sigstore transparency entry: 1768359817
- Sigstore integration time:
-
Permalink:
feoh/plexbar@1d2e3b45ffd8a7b74ec732795051ead889368e09 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/feoh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1d2e3b45ffd8a7b74ec732795051ead889368e09 -
Trigger Event:
release
-
Statement type:
File details
Details for the file plexbar-0.1.3-py3-none-any.whl.
File metadata
- Download URL: plexbar-0.1.3-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d73750e19efe00173c34e5a537afae9a2b26111b93d87646ca7e800c04afd395
|
|
| MD5 |
84a57da00bf4bd4c97b2f3db5a6f06cc
|
|
| BLAKE2b-256 |
b1becd7163dabfaa355bfc3661c35a3e261091fb23a838c6688e12c987841436
|
Provenance
The following attestation bundles were made for plexbar-0.1.3-py3-none-any.whl:
Publisher:
publish.yml on feoh/plexbar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plexbar-0.1.3-py3-none-any.whl -
Subject digest:
d73750e19efe00173c34e5a537afae9a2b26111b93d87646ca7e800c04afd395 - Sigstore transparency entry: 1768359989
- Sigstore integration time:
-
Permalink:
feoh/plexbar@1d2e3b45ffd8a7b74ec732795051ead889368e09 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/feoh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1d2e3b45ffd8a7b74ec732795051ead889368e09 -
Trigger Event:
release
-
Statement type: