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
Release history Release notifications | RSS feed
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.7.tar.gz
(15.1 kB
view details)
Built Distributions
roonapi-0.0.7-py2.7.egg
(26.8 kB
view details)
File details
Details for the file roonapi-0.0.7.tar.gz
.
File metadata
- Download URL: roonapi-0.0.7.tar.gz
- Upload date:
- Size: 15.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f4a254c845766c4be4c66a46c852cf575e012aefbdaf71e2087a8b08ad7c8ee |
|
MD5 | 4676b428417e7199420625ee3a0a6f94 |
|
BLAKE2b-256 | c1a6b1d8eab9bb51522968ef90a334b68f1b4b16066c53c6c330e1a32987a37c |
File details
Details for the file roonapi-0.0.7-py2.py3-none-any.whl
.
File metadata
- Download URL: roonapi-0.0.7-py2.py3-none-any.whl
- Upload date:
- Size: 11.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54c61a1e347d6e2c0a6ecdefc83e8d95a3dbbfc022c6662c264d659cc2e34cf8 |
|
MD5 | 96fe9126499ec4faa0d2b3414e420c09 |
|
BLAKE2b-256 | 23c45c2d85bb48847bbe10873a2e60f853d4fcedeceee2f5cae363fdd16802e8 |
File details
Details for the file roonapi-0.0.7-py2.7.egg
.
File metadata
- Download URL: roonapi-0.0.7-py2.7.egg
- Upload date:
- Size: 26.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aeccb1444a14365e19d42fa79c98b8069717764ec492753d839aee745807882 |
|
MD5 | 8bb60c6c0e8c2232c5f0b1ba3c4d05e2 |
|
BLAKE2b-256 | 9ccb8258bdebfdd4fbca314e9af9b0646a92056f380d1672e4fa3649791678c6 |