Skip to main content

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

Metadata

Release files for lyri 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lyri 1.2.1
File Size Uploaded
lyri-1.2.1.tar.gz 14.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lyri 1.2.1
File Interpreter ABI Platform
lyri-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 28.3 kB

Release files / lyri-1.2.1.tar.gz

Download URL lyri-1.2.1.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cfa67f2bc7036fc27218f0b7cb10f0cccda5c360fb78641f2d5259e83a2a5549
BLAKE2b-256 checksum
How to use checksums
80b36c58ab1bff1a393eb7172f839365d19bf72bf7fe7327a83951030f5be7f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.2

Release files / lyri-1.2.1-py3-none-any.whl

Download URL lyri-1.2.1-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf8bf423abcdecba677a6c278268e746dbd11d7a1a89451d7b254ce149344133
BLAKE2b-256 checksum
How to use checksums
5a5ee60b1ccc19e3c2f67196b6b4efdff46ee295386f9ab2779e484dd87c129b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.2

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page