Async Mopidy Client via JSON/RPC Websocket interface
Project description
Mopidy-Async-Client
Fork of Mopidy-json-client, but from scratch and async
Async Mopidy Client via JSON/RPC Websocket interface
Usage
mopidy-async-client provides a main class MopidyClient
, which manages the connection and methods to the Mopidy Server.
Use the bind_event
function to subscribe to mopidy events.
from mopidy_async_client import MopidyClient
async def main():
async with MopidyClient() as mopidy:
mopidy.bind_event('track_playback_started', print_track_info)
await mopidy.playback.play()
Installation
pip install mopidy-async-client
References
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
mopidy-async-client-0.2.tar.gz
(10.2 kB
view hashes)
Built Distribution
Close
Hashes for mopidy_async_client-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebc3640f4c17ee491acc6885c1eb2d912058aa87c9db495b4a82cbaef8d7f188 |
|
MD5 | 410c3b3f7334e611f2b00cd4b004f1f7 |
|
BLAKE2b-256 | 88beca54828b5be221e005de656f91d48b39c646884afc8380912aefee5b49e4 |