Last.FM API Client
A partially complete Python wrapper for the Last.FM API that implements the functions that I need for my Album of the day website.
The wrapper uses pydantic models to parse responses which allows better type validation.
Implemented API methods
The following Last.FM API methods are implemented:
album.getInfo- get information about an albumartist.getInfo- get information about an artisttag.getInfo- get information about a taguser.getRecentTracks- retrieve scrobbles
Changelog:
-
v.0.2.5: Minor code quality changes. The module will also work with Pydantic versions that are notv2.x.x. -
v0.2.4: Improved deserialization for multiple fields and cases where the album only has one tag. This change throws things around a little bit - you do not no longer have to check that items are singular or a list, the module will handle that for you.Breaking changes _ List fields will now always return a list. _ Multiple fields are now optional and may return
None. -
v0.2.3: Fixed a bug that crashed the deserialization if an album only had one tag, which made Last.FM return a dictionary rather than a list containing the tag. -
v0.2.2: Fixed a bug related to the loading of album images.Breaking changes
- The field
Image.sizeis now optional and may returnNone.
- The field
-
v0.2.1: Fixed empty album text being converted to None. -
v0.2.0: Better handling of unset/empty Last.FM values.Breaking changes:
- The field
Album.Tracksis now optional and may returnNone. - Same applies for all image fields.
v0.1.0: Initial release
- The field
Metadata
Release files for last-fm-api-client 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| last_fm_api_client-0.2.5.tar.gz | 7.3 kB | Without provenance | Details for last_fm_api_client-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| last_fm_api_client-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for last_fm_api_client-0.2.5-py3-none-any.whl |
Total release size: 15.7 kB
Release files / last_fm_api_client-0.2.5.tar.gz
| Download URL | last_fm_api_client-0.2.5.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55f45a3708e939e74eee19d5d572424b0b310ab8c8e2c447616e4f6c06f773ae
|
|
BLAKE2b-256 checksum How to use checksums |
c89a484e926ff3838dfa536db9e1f950136e6e57e75dc243ceca20b7ee04f32b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.9.13 Windows/10
|
Release files / last_fm_api_client-0.2.5-py3-none-any.whl
| Download URL | last_fm_api_client-0.2.5-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5e37245b41a4ad7c769481e87032724093b0372610e00567932df6cc74c93f7
|
|
BLAKE2b-256 checksum How to use checksums |
5b822c72571cb39d318b585df58b2471bd4a2b4ded2e439d7f7e0f5751f15b7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.9.13 Windows/10
|
Security for last-fm-api-client 0.2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.