Skip to main content

A curses front-end for various audio players

Project description

Description

cplay is a minimalist music player with a textual user interface written in Python. It aims to provide a power-user-friendly interface with simple filelist and playlist control.

Instead of building an elaborate database of your music library, cplay allows you to quickly browse the filesystem and enqueue directories. Cue-files and other playlists are supported.

The original cplay is no longer maintained. This fork aims to maintaining the original code as well as keeping it up to date with recent developments (e.g. python3) and adding new features.

screenshot of cplay with file browser

Requirements

For playback, install one or more of the following players:

Other optional components:

  • pyalsaaudio (optional) For Alsa mixer support

  • pulseaudio-utils, specifically the pactl command (optional) For PulseAudio mixer support

  • mutagen (optional) For metadata support (IDv3 etc.)

Installation

$ pip install cplay-ng

In Debian/Ubuntu, the following installs a selection of players and optional components:

$ sudo apt-get install mpv gst123 mpg321 vorbis-tools pulseaudio-utils

Usage

$ cplay-ng [ file | dir | playlist ] ...

For a full list of command line options, see cplay-ng --help. When in doubt about runtime controls, press ‘h’ for a friendly help page.

Apart from cplay-ng, this distribution also includes the program cnq-ng to remote-control a running cplay-ng.

Configuration

If you would like to change the default player or the options passed to the players just edit the BACKENDS list at the end of the cplay script.

Miscellaneous

A playlist can contain URLs, but the playlist itself will have to be local. For mpeg streaming, splay is recommended.

It is also possible to pipe a playlist to cplay-ng, as stdin will be reopened on startup unless it is attached to a tty.

The shell command gets the full path of either all tagged items or the current item as positional arguments.

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

cplay-ng-3.0.0.tar.gz (32.3 kB view details)

Uploaded Source

Built Distribution

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

cplay_ng-3.0.0-py3-none-any.whl (58.9 kB view details)

Uploaded Python 3

File details

Details for the file cplay-ng-3.0.0.tar.gz.

File metadata

  • Download URL: cplay-ng-3.0.0.tar.gz
  • Upload date:
  • Size: 32.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for cplay-ng-3.0.0.tar.gz
Algorithm Hash digest
SHA256 ed0a07ba4f7f9cee90bab7a17ab34bb461a67a87838eb8e3e9de7b7071feda03
MD5 b027f2cab2e5df961a6979c094a6b232
BLAKE2b-256 7706f3fcf81f90a12e48ad72a3d7f44c61e932aa8916baf44388c5f73318cfa7

See more details on using hashes here.

File details

Details for the file cplay_ng-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: cplay_ng-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 58.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for cplay_ng-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 059c9ad4dd15a1af156dc1f9388ee2fa1a07c20a2bc505855ed62bccb8a295cb
MD5 cdc26193742ff282b46b31bb6a1b61b5
BLAKE2b-256 73e7390fd959d9e49a872de4dbe2d4f4fc9134d16e4510141c17f9b851990dcb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page