Skip to main content

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.

from mopidy_async_client import MopidyClient


async def main():
    async with MopidyClient() as mopidy:
        mopidy.listener.bind('track_playback_started', print_track_info)
        await mopidy.playback.play()

Installation

pip install mopidy-async-client

References

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

mopidy-async-client-0.2.1.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

mopidy_async_client-0.2.1-py3-none-any.whl (10.0 kB view hashes)

Uploaded Python 3

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