A pure python client for lrclib
Project description
lrclib-python
An extremely basic wrapper for the lrclib api, a lightweight alternative to lrclibapi
Quickstart
First thing you have to do before anything is initiate the client
client = LrclibClient()
Basic usage:
# Get by id
s = client.get(3657360)
# Get by song signature (title, artist, album, duration)
s = client.get("Never Gonna Give You Up", "Rick Astley", duration = 213)
print(s.song_id) # song's id on lrclib
print(s.status) # can be one of three: "Synced", "Plain", "Instrumental"
print(s.synced_lyrics) # get the synced lyrics
print(s.plain_lyrics) # get the plain lyrics
# get a list of matching songs (title/query, artist, album)
results = client.search("Blur", "Stellar")
print(results[0]) # print the first result
# this can be used in the same way as s was in explaining the .get() method
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
lrclib_python-0.3.tar.gz
(5.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lrclib_python-0.3.tar.gz.
File metadata
- Download URL: lrclib_python-0.3.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ae475bcacf3d141edaba7ef395c2e58fa07b5ee1e099149117bc2834c907136
|
|
| MD5 |
537b58d534b1c85e3e51f945aed7cebe
|
|
| BLAKE2b-256 |
59f1ded6d40455ff47a3e95ec69f5c29d4d56953b97b626f00ec921fe0a5aebe
|
File details
Details for the file lrclib_python-0.3-py3-none-any.whl.
File metadata
- Download URL: lrclib_python-0.3-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b444e865fd9632f713e83ca18d511a65ef8e081564bc09e0fe41e9a8ed365b9
|
|
| MD5 |
2a4bdcd1fe3e112836e385d52a929bb6
|
|
| BLAKE2b-256 |
c9499414dca25bbf6dd96fac190af4af88a6cdc689b484c4fa5bffffec2024d7
|