Skip to main content

A Python library to control the MOC (music on console) audio player

Project description

Install

Install the actual MOC player/server

% sudo apt-get install -y moc

or

% brew install moc

Install with pip

% pip3 install mocp

Usage

In [1]: import moc

In [2]: moc.find_and_play('~/music-dir/blah*')

In [3]: moc.go('12:15')         # jump to particular point in current track

In [4]: moc.go('1h23m12s')      # jump to particular point in current track

In [5]: moc.go(500)             # jump to particular point in current track

In [6]: moc.info_string()
Out[6]: '08:21 (501) of 95:35 into /home/user/music-dir/blah-thing/file.mp3'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

mocp-0.4.6-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file mocp-0.4.6-py3-none-any.whl.

File metadata

  • Download URL: mocp-0.4.6-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for mocp-0.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5b831e996e7734b9861687d2480a65aa3f07ea6ac03a7f8877560dfb87648286
MD5 07ec00c81104b9950cdc98c18d800313
BLAKE2b-256 e5c33c9f66c2cb09d8d41a99522920d5319a5d888724ed14d5ca10727abf4fc5

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