mocp


Namemocp JSON
Version 0.4.10 PyPI version JSON
download
home_pagehttps://github.com/kenjyco/mocp
SummaryA Python library to control the MOC (music on console) audio player
upload_time2023-07-10 04:48:23
maintainer
docs_urlNone
authorKen
requires_python
licenseMIT
keywords moc mocp cli command-line console audio mp3 player kenjyco
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Install
-------

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

::

   % sudo apt-get install -y moc

   or

   % brew install moc

Then install this package with ``pip``

::

   % pip3 install mocp

Optional Installs
-----------------

redis-helper and yt-helper
~~~~~~~~~~~~~~~~~~~~~~~~~~

If redis-helper and yt-helper are installed, the FILES collection will
be updated with the basename of the the current playing file whenever
``moc.info_string()`` is called

Install with ``pip``

::

   % pip3 install "yt-helper[redis-helper]"

   or

   % pip3 install "mocp[extras]"

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'

Getting the C source
--------------------

   MOC is written is written in C and hosted in an SVN repo (not Git).
   See ``man git-svn``

::

   $ git svn clone svn://svn.daper.net/moc/trunk moc



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kenjyco/mocp",
    "name": "mocp",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "moc,mocp,cli,command-line,console audio,mp3 player,kenjyco",
    "author": "Ken",
    "author_email": "kenjyco@gmail.com",
    "download_url": "https://github.com/kenjyco/mocp/tarball/v0.4.10",
    "platform": null,
    "description": "Install\n-------\n\nInstall the actual `MOC player/server <https://moc.daper.net/>`__\n\n::\n\n   % sudo apt-get install -y moc\n\n   or\n\n   % brew install moc\n\nThen install this package with ``pip``\n\n::\n\n   % pip3 install mocp\n\nOptional Installs\n-----------------\n\nredis-helper and yt-helper\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nIf redis-helper and yt-helper are installed, the FILES collection will\nbe updated with the basename of the the current playing file whenever\n``moc.info_string()`` is called\n\nInstall with ``pip``\n\n::\n\n   % pip3 install \"yt-helper[redis-helper]\"\n\n   or\n\n   % pip3 install \"mocp[extras]\"\n\nUsage\n-----\n\n.. code:: python\n\n   In [1]: import moc\n\n   In [2]: moc.find_and_play('~/music-dir/blah*')\n\n   In [3]: moc.go('12:15')         # jump to particular point in current track\n\n   In [4]: moc.go('1h23m12s')      # jump to particular point in current track\n\n   In [5]: moc.go(500)             # jump to particular point in current track\n\n   In [6]: moc.info_string()\n   Out[6]: '08:21 (501) of 95:35 into /home/user/music-dir/blah-thing/file.mp3'\n\nGetting the C source\n--------------------\n\n   MOC is written is written in C and hosted in an SVN repo (not Git).\n   See ``man git-svn``\n\n::\n\n   $ git svn clone svn://svn.daper.net/moc/trunk moc\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python library to control the MOC (music on console) audio player",
    "version": "0.4.10",
    "project_urls": {
        "Download": "https://github.com/kenjyco/mocp/tarball/v0.4.10",
        "Homepage": "https://github.com/kenjyco/mocp"
    },
    "split_keywords": [
        "moc",
        "mocp",
        "cli",
        "command-line",
        "console audio",
        "mp3 player",
        "kenjyco"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d4e4fb576606f4ca5497ab924c9841ffa1a57b56444294770e027f2e7d441fa1",
                "md5": "fd1002d8f57953ad136fbbf095269f08",
                "sha256": "555f22ab6bc679df8f205541bb199589cab8658f8c8fb47ba569bda3a8e4aeef"
            },
            "downloads": -1,
            "filename": "mocp-0.4.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fd1002d8f57953ad136fbbf095269f08",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5348,
            "upload_time": "2023-07-10T04:48:23",
            "upload_time_iso_8601": "2023-07-10T04:48:23.978920Z",
            "url": "https://files.pythonhosted.org/packages/d4/e4/fb576606f4ca5497ab924c9841ffa1a57b56444294770e027f2e7d441fa1/mocp-0.4.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-10 04:48:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kenjyco",
    "github_project": "mocp",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "mocp"
}
        
Ken
Elapsed time: 0.13772s