https://github.com/mtreinish/pycmus
A python cmus remote library
https://github.com/mtreinish/pycmus
cmus python python3
Last synced: over 1 year ago
JSON representation
A python cmus remote library
- Host: GitHub
- URL: https://github.com/mtreinish/pycmus
- Owner: mtreinish
- License: gpl-3.0
- Created: 2016-06-14T01:40:34.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T00:24:28.000Z (over 6 years ago)
- Last Synced: 2025-04-09T18:12:52.554Z (over 1 year ago)
- Topics: cmus, python, python3
- Language: Python
- Size: 47.9 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
======
pycmus
======
A python library for sending commands to the cmus music player:
https://cmus.github.io/
It uses the same socket interface as the cmus-remote command.
Complete documentation is here: http://pycmus.readthedocs.io/en/latest/
Usage
=====
Using pycmus is pretty straightforward you just need to init a PyCmus object
and then issue commands to it. For example::
from pycmus import remote
cmus = remote.PyCmus()
print(cmus.status())
will connect to a running cmus instance (with the socket file in the default
location) and print the player status.
For a complete API documentation see: :ref:`pycmus_api`.