Metadata-Version: 2.0
Name: mocp
Version: 0.4.4
Summary: A Python library to control the MOC (music on console) audio player
Home-page: https://github.com/kenjyco/mocp
Author: Ken
Author-email: kenjyco@gmail.com
License: MIT
Download-URL: https://github.com/kenjyco/mocp/tarball/v0.4.4
Keywords: moc,mocp,console audio,mp3 player
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Multimedia :: Sound/Audio :: Players
Classifier: Intended Audience :: Developers
Requires-Dist: input-helper
Requires-Dist: bg-helper

Install
-------

Install the actual `MOC player/server <https://moc.daper.net/>`__

::

    % sudo apt-get install -y moc

    or

    % brew install moc

Install with ``pip``

::

    % pip3 install mocp

Usage
-----

.. code:: python

    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'


