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.9.tar.gz (15.4 kB view details)

Uploaded Source

Built Distributions

roonapi-0.0.9-py2.py3-none-any.whl (12.3 kB view details)

Uploaded Python 2 Python 3

roonapi-0.0.9-py2.7.egg (27.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: roonapi-0.0.9.tar.gz
  • Upload date:
  • Size: 15.4 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.9.tar.gz
Algorithm Hash digest
SHA256 bfa4767ef7cd58dfa8a6816d4b445c6c52301a0b32fce0024cb2167d6ffb59ce
MD5 c6c5ef6e46865b8c266e0ba88529532d
BLAKE2b-256 6adb43e9df277953684cfcc01b7a2f685e0e65ba731a2026cb5df495b5aee709

See more details on using hashes here.

File details

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

File metadata

  • Download URL: roonapi-0.0.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.3 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.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ba26553f436a0e6843e8e363947bb153dcf00470d90966e62582bc8a1e95b068
MD5 a127f99b9d1be32083f398bfceaf1c33
BLAKE2b-256 ca06e12e6cb7b53c78019ed0b8c4179e8226bf04583830286cd09b346aab65bd

See more details on using hashes here.

File details

Details for the file roonapi-0.0.9-py2.7.egg.

File metadata

  • Download URL: roonapi-0.0.9-py2.7.egg
  • Upload date:
  • Size: 27.3 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.9-py2.7.egg
Algorithm Hash digest
SHA256 e415c53cfc558f8d8a9d4beefa9556ad906c3ce497f6eb72da8106cbb9a76b89
MD5 0f6e50adef922dc160bae1b96098c819
BLAKE2b-256 f3ca504395c822a20ac37817796dcb8af5659ea3c0dc4cd2e7cd8de69b656bea

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