No project description provided
Project description
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.size
is 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.Tracks
is now optional and may returnNone
. - Same applies for all image fields.
v0.1.0
: Initial release
- The field
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
Built Distribution
File details
Details for the file last_fm_api_client-0.2.5.tar.gz
.
File metadata
- Download URL: last_fm_api_client-0.2.5.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.0 CPython/3.9.13 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55f45a3708e939e74eee19d5d572424b0b310ab8c8e2c447616e4f6c06f773ae |
|
MD5 | 55d0a38ff85f0e185add7d59a9e24ed1 |
|
BLAKE2b-256 | c89a484e926ff3838dfa536db9e1f950136e6e57e75dc243ceca20b7ee04f32b |
File details
Details for the file last_fm_api_client-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: last_fm_api_client-0.2.5-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.0 CPython/3.9.13 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5e37245b41a4ad7c769481e87032724093b0372610e00567932df6cc74c93f7 |
|
MD5 | c8914e56dfc48519a47c772934816a86 |
|
BLAKE2b-256 | 5b822c72571cb39d318b585df58b2471bd4a2b4ded2e439d7f7e0f5751f15b7f |