setlist-fm-client
setlist-fm-client is a python client for the setlist.fm REST API.
Installation
pip
pip install setlist-fm-client
poetry
poetry add setlist-fm-client
Help
See the documentation for more details.
Authentication
In order to authenticate to the setlist.fm REST API, you must apply for an API key (link for logged-in users only) - if you're not registered user yet, then register first (it's free).
Once you have your key, you can use it in the setlist-fm-client by setting the SETLIST_FM_API_KEY environment
variable or by passing api_key="xxx" as a kwarg to any function (see docs).
Simple Example
setlist-fm-client is extremely easy to use. By setting serialize=True, you get a pydantic model returned to you instead of
a httpx.Response object.
Below are examples of what the code looks like for both the sync and async apis.
sync
import setlist_fm_client
setlists = setlist_fm_client.get_artist_setlists(
"0bfba3d3-6a04-4779-bb0a-df07df5b0558", api_key="xxx", serialize=True
)
print(setlists)
async
import asyncio
import setlist_fm_client
async def main():
setlists = await setlist_fm_client.get_artist_setlists(
"0bfba3d3-6a04-4779-bb0a-df07df5b0558", api_key="xxx", serialize=True
)
print(setlists)
asyncio.run(main())
This will give you an ArtistSetListResponse object.
Buy me a coffee
If you find this project useful, consider buying me a coffee!
Metadata
Release files for setlist-fm-client 0.4.0
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 |
|---|---|---|---|---|
| setlist-fm-client-0.4.0.tar.gz | 9.6 kB | Without provenance | Details for setlist-fm-client-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| setlist_fm_client-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for setlist_fm_client-0.4.0-py3-none-any.whl |
Total release size: 20.5 kB
Release files / setlist-fm-client-0.4.0.tar.gz
| Download URL | setlist-fm-client-0.4.0.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d312d6528bab6bed5b6e484b6fc63851780caa45554c3291c7c1fa99185f09b
|
|
BLAKE2b-256 checksum How to use checksums |
aaac06c046c293c487e9e899ad30858f4a1ae2f5e211517cba08e41279bf804f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.13 Linux/5.15.0-1014-azure
|
Release files / setlist_fm_client-0.4.0-py3-none-any.whl
| Download URL | setlist_fm_client-0.4.0-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2515581055618b6cca67a5584f9f7e4d6ca8a0a3a8d864ab19e0fdd0a09cdafa
|
|
BLAKE2b-256 checksum How to use checksums |
01deb2ac14129275b1c7b5d842bb9cff50f89c4a657cd134bf243a0fa8f21f7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.13 Linux/5.15.0-1014-azure
|
Security for setlist-fm-client 0.4.0
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.