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.1.tar.gz
(13.2 kB
view details)
Built Distributions
File details
Details for the file roonapi-0.0.1.tar.gz
.
File metadata
- Download URL: roonapi-0.0.1.tar.gz
- Upload date:
- Size: 13.2 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 | d42691cdd3f17928742bbcf3a840b3faa7d8d211ffbe2cf14f57b262b51733c8 |
|
MD5 | 6f0c2dc44e271bd1af7deadcf74e8990 |
|
BLAKE2b-256 | b3b01795a564e70af0a5c2f045be3381664f39fc0aaa59c3048a4a3b77a98eb5 |
File details
Details for the file roonapi-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: roonapi-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: 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 | a5544b854251997ba52dfe833a6ad651044f563d0aa32ff2ddecb9aa759eea61 |
|
MD5 | b206d75d5db97979dd8a4329794e97f7 |
|
BLAKE2b-256 | b82e1ace33e5104099b76b0c00581e1e2e976c86fb06508bfbc20362dad74e13 |
File details
Details for the file roonapi-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: roonapi-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.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 | 2d5308344304b77038a6eb00c34d92ca3d6de8b2212c5a6d7a4304a9d0dd7102 |
|
MD5 | 14d64807dd6a2a83605a202bf2b3b5a1 |
|
BLAKE2b-256 | 10871b91e77fd48ae3cee11d951faa2bd33ca70d13b2882ec65ab605ed150790 |