Skip to main content

Provides a python interface to interact with Roon

Project description

python-roon

python library to interface with the Roon API (www.roonlabs.com)

Full documentation will follow asap See the tests folder for some more code examples.

Some example code:

from roon import RoonApi  
appinfo = {
        "extension_id": "python_roon_test",
        "display_name": "Python library for Roon",
        "display_version": "1.0.0",
        "publisher": "marcelveldt",
        "email": "mygreat@emailaddress.com"
    }

token = open('mytokenfile').read()
roonapi = RoonApi(appinfo, token)

# get all zones (as dict)
print(roonapi.zones)

# get all outputs (as dict)
print(roonapi.outputs)

# receive state updates in your callback
roonapi.register_state_callback(my_state_callback)


# save the token for next time
with open('mytokenfile', 'w') as f:
    f.write(roonapi.token)


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

roonapi-0.0.15.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

roonapi-0.0.15-py2.py3-none-any.whl (12.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file roonapi-0.0.15.tar.gz.

File metadata

  • Download URL: roonapi-0.0.15.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

File hashes

Hashes for roonapi-0.0.15.tar.gz
Algorithm Hash digest
SHA256 15231c664b3aa54bed40c67b5e250e701fb763d6ccf8c2562ea62142c6055899
MD5 2488a6528b3b52e7710a9f3f1e7628f0
BLAKE2b-256 6be57b83d2d9c52d7fd86e22fb92c9eaec791624bb251b548e49975b5fa4b1ad

See more details on using hashes here.

File details

Details for the file roonapi-0.0.15-py2.py3-none-any.whl.

File metadata

  • Download URL: roonapi-0.0.15-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

File hashes

Hashes for roonapi-0.0.15-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b9dd0d9b22a9ef137b808e77c1ab7c4443db44d5f766fdb8f9d1b0f2e44d71f5
MD5 7c615b3ee63142ae643af892645701db
BLAKE2b-256 646fdc9cc277b78cdea9049c78d76b40eb9f5ca2db46890b5dbcbd5d13b85228

See more details on using hashes here.

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