Skip to main content

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

Project description

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

Note: The actual player must be installed on the system (i.e. sudo apt-get install moc).

Install

% pip install mocp

Use

% ipython
...

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 Distribution

mocp-0.3.0.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file mocp-0.3.0.tar.gz.

File metadata

  • Download URL: mocp-0.3.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mocp-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5633af086b543fd41d40441d7586fb8c1b636bb19ae9b398ca8751ebe1971073
MD5 c4191c180b4e9eb9b1a10d41eeeb3c7f
BLAKE2b-256 c65691f10fbd037e02e199506074a48e8b9d3585c1c56cfc86fd7aea593386ee

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