Skip to main content

HTTP music dashboard to control playback via playerctl and display lyrics.

Project description

Lyri

GitHub license GitHub last commit PyPI version Code style: black

HTTP music dashboard to control playback via playerctl and display lyrics.

Description

Provides a Sanic web application and helper class to manage playback via playerctl.

The web application is hosted using Sanic, which provides endpoints to query player information from playerctl via PyGObject bindings. Lyrics are fetched using syncedlyrics.

Player information is pushed to the client over a WebSocket.

No external JavaScript libraries are requried.

Example

Demonstration of lyri

Installation

PyPI

  1. Install project: pip install lyri
  2. Run: lyri

Source

Alternatively, after cloning the repository with: git clone https://github.com/Zedeldi/lyri.git

Build

  1. Install project: pip install .
  2. Run: lyri or sanic lyri.server -H <host> -p <port>

Development

  1. Install dependencies: pip install -r requirements.txt
  2. Run: python -m lyri or sanic lyri.server --dev -H <host> -p <port>

Libraries

Credits

License

lyri is licensed under the MIT Licence for everyone to use, modify and share freely.

This project is distributed in the hope that it will be useful, but without any warranty.

Donate

If you found this project useful, please consider donating. Any amount is greatly appreciated! Thank you :smiley:

PayPal

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

lyri-1.2.1.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lyri-1.2.1-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file lyri-1.2.1.tar.gz.

File metadata

  • Download URL: lyri-1.2.1.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for lyri-1.2.1.tar.gz
Algorithm Hash digest
SHA256 cfa67f2bc7036fc27218f0b7cb10f0cccda5c360fb78641f2d5259e83a2a5549
MD5 b2f6f12977cbf77389e1614c81929314
BLAKE2b-256 80b36c58ab1bff1a393eb7172f839365d19bf72bf7fe7327a83951030f5be7f0

See more details on using hashes here.

File details

Details for the file lyri-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: lyri-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for lyri-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bf8bf423abcdecba677a6c278268e746dbd11d7a1a89451d7b254ce149344133
MD5 3618350c1344034e50731dae7fde21c5
BLAKE2b-256 5a5ee60b1ccc19e3c2f67196b6b4efdff46ee295386f9ab2779e484dd87c129b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page