A small standalone Plex terminal UI.
Project description
plex-tui
A standalone Python/Textual terminal UI for browsing Plex and launching playback
through mpv.
plex-tui is an early release. It supports Plex login, server selection, paged library browsing, search, list/grid views, stream preferences, terminal poster artwork, and playback progress reporting.
Screenshots
Grid view
List view
Requirements
- Python 3.11 or newer
mpvavailable onPATH- A Plex account/server
When installing with PyPI or from GitHub, install mpv with your platform
package manager:
# macOS
brew install mpv
# Debian / Ubuntu
sudo apt install mpv
# Fedora
sudo dnf install mpv
# Arch Linux / Manjaro
sudo pacman -S mpv
Installation
PyPI
pipx install plex-tui
plex-tui --smoke
plex-tui
This is the recommended cross-platform install path. It keeps Python
dependencies isolated, but you still need to install mpv separately.
If pipx is not installed, install it with your platform package manager first
or follow the pipx installation guide.
Homebrew
brew tap so1omon563/plex-tui
brew install plex-tui
plex-tui --smoke
The Homebrew formula installs mpv automatically. The first install can take
several minutes because native Python dependencies such as pillow are built
from source.
Arch Linux
paru -S plex-tui
plex-tui --smoke
The AUR package depends on mpv. Any AUR helper can be used; paru is only an
example.
GitHub
pipx install "git+https://github.com/so1omon563/plex-tui.git"
pipx install "git+https://github.com/so1omon563/plex-tui.git@v0.2.1"
Use this path for testing main before a tagged/PyPI release.
Useful CLI checks:
plex-tui --version
plex-tui --config-path
plex-tui --debug-log-path
plex-tui --diagnostics
plex-tui --smoke
For local development:
git clone https://github.com/so1omon563/plex-tui.git
cd plex-tui
python3 -m venv .venv
source .venv/bin/activate
make install-dev
make run
First Run & Configuration
On first run, plex-tui starts a Plex browser login and asks which server connection to save. If a browser cannot be opened, use the login URL shown in the terminal.
The login flow writes a config file with the selected server URL and token. Use
the Settings screen or plex-tui --config-path to find the active file.
You can also configure a server manually. macOS config path:
mkdir -p "$HOME/Library/Application Support/plex-tui"
$EDITOR "$HOME/Library/Application Support/plex-tui/config.toml"
Linux config path:
mkdir -p "$HOME/.config/plex-tui"
$EDITOR "$HOME/.config/plex-tui/config.toml"
Minimal config:
base_url = "http://127.0.0.1:32400"
token = "your-plex-token"
Environment variables also work:
export PLEX_TUI_BASE_URL="http://127.0.0.1:32400"
export PLEX_TUI_TOKEN="your-plex-token"
See config.example.toml for optional settings.
Playback
Playback is launched through mpv; plex-tui does not embed a video player.
While playback is active, Plex progress is updated in the background. Saved
audio/subtitle language preferences are applied when matching streams are
available, and the details pane shows the effective playback choices.
Key Bindings
| Key | Action |
|---|---|
q |
Quit |
r |
Reload Plex connection |
/ |
Search current library |
g |
Search all libraries |
? |
Show help |
tab / shift+tab |
Move focus |
l |
Focus libraries |
m |
Focus media |
v |
Toggle list/grid view |
pageup / pagedown |
Move one page in grid view |
, |
Show settings |
escape |
Clear search, go back, or close current view |
enter |
Open selected item |
p |
Play selected item with mpv |
a / s |
Choose audio / subtitle preference |
A / S |
Clear audio preference / cycle subtitle mode |
x |
Stop launched mpv |
Features
- Plex PIN login and server selection.
- Paged library browsing with automatic loading near the end of loaded items.
- Current-library search and bounded global search.
- List view plus configurable-density grid view with terminal poster artwork.
- External subtitle support and direct playback for embedded PGS/VOBSUB tracks.
- Audio and subtitle pickers with saved language preferences.
- Plex resume support and playback progress reporting.
- Settings screen for stream preferences, artwork modes, grid density, page
size, auto-load threshold, grid artwork prefetching, media view, and
mpvwindow size. - App diagnostics view for version, paths,
mpv, Plex connection, artwork, and browsing settings.
Artwork
Poster artwork renders as portable colored block art, so it works in ordinary
terminals without Kitty, iTerm2, or Sixel support. Native Kitty image output is
disabled inside the Textual app because direct Kitty graphics protocol placement
can destabilize the UI. If artwork_renderer is set to auto or kitty, the
app falls back to block art and summarizes the fallback in
plex-tui --diagnostics.
Grid view prefetches artwork for the visible page immediately and, by default,
prepares three pages ahead in the background. grid_prefetch_pages can be set
from 0 to 5; use 0 to fetch only the visible page on slower systems.
Compact, comfortable, and large density modes adjust card and poster sizing. The
artwork cache is bounded and stored in the app cache directory shown in
Settings.
Diagnostics
Playback diagnostics are written to debug.log in the app config directory.
Tokens are redacted from logged mpv arguments.
The Settings diagnostics section can show the debug log path, recent log lines,
and an app diagnostics summary for support reports.
Useful paths:
plex-tui --config-path
plex-tui --debug-log-path
Enable browsing performance timings before launch:
PLEX_TUI_PERF_LOG=1 plex-tui
To collect environment information for issue reports:
plex-tui --diagnostics
Verbose grid artwork internals are quieter by default. Include them only when debugging poster loading:
PLEX_TUI_PERF_LOG=1 PLEX_TUI_ARTWORK_LOG=1 plex-tui
Development
Common commands:
make smoke # app construction and helper sanity check
make test # pytest suite
make compile # compile src and tests
make check-package # build and validate package metadata
make check # smoke, tests, compile, package validation
Packaging and release docs:
PACKAGING.md: PyPI/pipx, Homebrew, AUR, and standalone packaging options.RELEASE.md: release validation and tagging checklist.ROADMAP.md: planned follow-up work.
Project details
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 plex_tui-0.3.6.tar.gz.
File metadata
- Download URL: plex_tui-0.3.6.tar.gz
- Upload date:
- Size: 912.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab646b4742a4624dbef0e6ba990c5228cd86fc9458d901f69c22b7b527e49072
|
|
| MD5 |
ba26abf43d00cfd474d34d48a7b5518f
|
|
| BLAKE2b-256 |
4d74577d29fce59754bea5fc6829e926d044f0b041990ce213ecb6f28a6a5999
|
Provenance
The following attestation bundles were made for plex_tui-0.3.6.tar.gz:
Publisher:
publish-pypi.yml on so1omon563/plex-tui
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plex_tui-0.3.6.tar.gz -
Subject digest:
ab646b4742a4624dbef0e6ba990c5228cd86fc9458d901f69c22b7b527e49072 - Sigstore transparency entry: 1805049570
- Sigstore integration time:
-
Permalink:
so1omon563/plex-tui@b6a19ccfa3f9b0ca6f403de9f7fe2e320fee3d42 -
Branch / Tag:
refs/tags/v0.3.6 - Owner: https://github.com/so1omon563
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b6a19ccfa3f9b0ca6f403de9f7fe2e320fee3d42 -
Trigger Event:
release
-
Statement type:
File details
Details for the file plex_tui-0.3.6-py3-none-any.whl.
File metadata
- Download URL: plex_tui-0.3.6-py3-none-any.whl
- Upload date:
- Size: 45.8 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 |
32317bc7ea9c4edd43257d5eb748e4ee9c169cf309c96e5af6bc26d3ca0e9098
|
|
| MD5 |
c24be423af3971936dd34a3d97a2606b
|
|
| BLAKE2b-256 |
124748f14630b8bb2d5d9dee2498da8eae646d287940196228a66a3bb4fb4145
|
Provenance
The following attestation bundles were made for plex_tui-0.3.6-py3-none-any.whl:
Publisher:
publish-pypi.yml on so1omon563/plex-tui
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plex_tui-0.3.6-py3-none-any.whl -
Subject digest:
32317bc7ea9c4edd43257d5eb748e4ee9c169cf309c96e5af6bc26d3ca0e9098 - Sigstore transparency entry: 1805049586
- Sigstore integration time:
-
Permalink:
so1omon563/plex-tui@b6a19ccfa3f9b0ca6f403de9f7fe2e320fee3d42 -
Branch / Tag:
refs/tags/v0.3.6 - Owner: https://github.com/so1omon563
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b6a19ccfa3f9b0ca6f403de9f7fe2e320fee3d42 -
Trigger Event:
release
-
Statement type: