Skip to main content

Python API for the MCWS interface of JRiver Media Center

Project description

pyMCWS

A python API wrapper for MCWS, the web interface of the excellent JRiver Media Center. Th aim is to replicate the MCWS functionality as close as possible in a pythonian, easy to us manner. Additionally, common use-cases can be implemented in recipes.

Usage

use your package manager of choice to install pymcws:

pipenv install pymcws

First order of action is to import pymcws. You can just import the package and use it as a one-stop-shop-all:

import pymcws as mcws

using this method, all functions and recipes are imported and available via the mcws object. You can then initialize a server and start using commands:

office = mcws.get_media_server("AccessKey", "readonly", "supersecretpassword")
mcws.play_album(office, "Ludovico Einaudi", "I Giorni")
mcws.playback_playpause(office)
zones = mcws.playback_zones(office)
for zone in zones:
    print(zone.index, zone.id, zone.name, zone.guid, zone.is_dlna)
mcws.playback_playpause(office, zones[0])

v0.0.2

* api.py now has a method to get a server directly from pymcws object. This allows basic usage by only importing pymcws.   

v0.0.1

* Initial release and proof of concept
* Resolve media network access keys
* issue playback commands
* search and play files to different zones on server
* first play_recipies that facilitate playback of files

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

pymcws-0.0.2.tar.gz (5.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page