Skip to main content

PMP

A lightweight, local music player for the terminal.

PMP is an open-source command-line music player built for people who want to listen to their own music without relying on streaming platforms, online accounts, or cloud-based music libraries.

It focuses on local playback, a simple terminal workflow, and keeping your music library under your control.

PMP is currently in alpha. It is usable, actively developed, and not yet tested across every intended platform.

Features

  • Local music library: Scan and organize music stored on your device.
  • Playlist organization: Organize music through local directories.
  • Search: Find songs and playlists in your library.
  • Playback queue: Manage the songs waiting to be played.
  • Playback controls: Navigate between tracks, seek within songs, and control playback volume.
  • Loop: Listen to a song in loop mode.
  • Session recovery: Resume a saved playback session.
  • Listening statistics: Track playback activity and listening habits.
  • Terminal miniplayer: Monitor the current track and playback progress.

PMP is designed for music you already have locally. It does not provide a streaming catalog, host music files, or replace music distribution services.

Playback modes

PMP separates music source selection from track ordering, allowing different playback behaviors to be combined.

Source selection

  • Playlist: Select tracks from the current collection.
  • Universal: Rotate between available playlists and songs stored in the root music directory.
  • Smart: Prioritize tracks with fewer plays and fewer previous selections, using listening statistics.

Track ordering

  • Sequential: Select tracks in sequence.
  • Random: Select tracks randomly.

These options can be combined independently to customize playback behavior.

Requirements

  • Python 3.10 or newer.
  • mpv, installed separately and available to PMP.
  • A local collection of supported audio files.

PMP uses mpv as its playback engine. Installing the Python package alone does not install the external player.

Daemon management currently relies on Linux /proc process metadata. Windows and macOS support has not yet been implemented or verified.

Installation

From PyPI

Install PMP using pip:

python -m pip install platypus-music

The PyPI package is named platypus-music, but the command and Python module are pmp.

Make sure mpv is installed separately before attempting playback.

Verify the installation:

pmp --help

From GitHub

To install a development version, clone the PMP repository and install the local project:

git clone https://github.com/Dev-ev-v/pmp.git
cd pmp
python -m pip install .

Development versions may contain unfinished features or bugs. Use them accordingly.

Getting started

After installing PMP and mpv, run:

pmp --help

This displays the commands and options available in your installed version.

Play music

pmp play

If no music directory is configured, PMP displays the path to its configuration file. Set music_dir there to the directory containing your music before starting playback.

If a music directory is already configured, PMP plays a song from your library according to your configuration.

To play a specific song or playlist:

pmp play "My song"

Stop playback

pmp stop

Stops playback and ends the current session.

Open the miniplayer

pmp watch

Opens a miniplayer for easier playback and queue control.

View listening statistics

pmp stats

Displays listening time, play counts, song selections, and play equivalents.

Use --title to sort the statistics alphabetically by song title, or --short to limit each section to its first ten entries:

pmp stats --title
pmp stats --short

Reset the session

pmp reset

Use this command to reset the current session if playback gets stuck or behaves unexpectedly. It preserves the user's configuration and statistics.

Supported audio

PMP is intended for local audio playback. The current implementation recognizes these file extensions:

  • MP3 (.mp3)
  • M4A (.m4a)
  • FLAC (.flac)
  • Ogg (.ogg)
  • WAV (.wav)

Actual playback compatibility also depends on the codecs and formats supported by the installed mpv build.

Video playback is not currently part of PMP's scope.

Privacy and philosophy

PMP is built around a simple idea: your local music library should remain yours.

The project aims to provide a lightweight way to play music without requiring a streaming account or depending on a centralized music catalog.

PMP is intended for local playback, not music hosting or distribution. Users are responsible for ensuring that their use of audio files complies with applicable laws and licenses.

Roadmap

  • Replace file paths with stable song identifiers, such as unique IDs.
  • Implement and verify support for Windows and macOS.
  • Add support for video files.
  • Add support for basic audio effects.
  • Improve error handling when MPV is missing or fails to start.

Contributing

Contributions, bug reports, and suggestions are welcome.

Metadata

Release files for platypus-music 0.2.0.post0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for platypus-music 0.2.0.post0
File Size Uploaded Provenance Actions
platypus_music-0.2.0.post0.tar.gz 45.1 kB Without provenance Details for platypus_music-0.2.0.post0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for platypus-music 0.2.0.post0
File Interpreter ABI Platform Actions
platypus_music-0.2.0.post0-py3-none-any.whl Python 3 none any Details for platypus_music-0.2.0.post0-py3-none-any.whl

Total release size: 93.2 kB

Release files / platypus_music-0.2.0.post0.tar.gz

Download URL platypus_music-0.2.0.post0.tar.gz
Size 45.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7f26dd5062266b90709ddb03b88f6583c2027832e7a03c1eac50746de812e3e5
BLAKE2b-256 checksum
How to use checksums
ae233ad09e438fd100a13d04a6797e9acb3ebf8e56c6cb9813324f010a7a37bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / platypus_music-0.2.0.post0-py3-none-any.whl

Download URL platypus_music-0.2.0.post0-py3-none-any.whl
Size 48.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
362d8e2cd800ca8c872927667b294a9681a3fec39301eba6722802681c6cf923
BLAKE2b-256 checksum
How to use checksums
aa20decc64d87719f81c32fb379c06a03cd47d33ffc23414868e03aa9a7a1038
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for platypus-music 0.2.0.post0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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