Skip to main content

lastfm-python

A small Last.Fm search client written in python able to executed in terminal; Functions as a way for me to practice Python as beginner

Due to my previous git repo, https://github.com/lule345/lastfm-python/, somehow getting bugged by VS code not handling git correctly, I had to remake the repo and so this is why this is here. You can still find the original repo with the link before.

Demonstration video can be found at: https://youtu.be/qNmmetEVYJQ

Usage:

  1. pipx install PIP-lastfm-python-lule345
  2. lastfmPython
  3. Configure the local config.json file to include API key (see: https://www.last.fm/api/account/create; you will require a last.fm account)
  4. The JSON file will look like: {"api_key": "YOUR_API_KEY_HERE"}; Upon getting your API key from last.fm, insert your key in the field there, save, and continue to step 5.
  5. lastfmPython --h

Options/Features:

options:
  -h, --help                                show this help message and exit
  --user, -u [user]                         queries for a given user's info
  --userRecentTracks [user]                 queries for a user's recent tracks
  --userTopTracks [user]                    queries for a user's top tracks, time defaults to overall
  --track, -t [name] [artist]               queries for a given track name and artist; use underscore for spaces
  --toptracks                               queries for the top tracks on lastfm
  --topartists                              queries for the top artists on lastfm
  --album, -a [name] [artist]               queries for a given album name and artist; use underscore for spaces
  --artist [artist]                         queries for a given artist name; use underscore for spaces
  -v, --verbose                             prints API key, HTTP info

screenshot demo of lastfm.py

Metadata

Release files for PIP-lastfm-python-lule345 1.0.13

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

Source distribution (sdist)

Source distribution for PIP-lastfm-python-lule345 1.0.13
File Size Uploaded
pip_lastfm_python_lule345-1.0.13.tar.gz 16.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PIP-lastfm-python-lule345 1.0.13
File Interpreter ABI Platform
pip_lastfm_python_lule345-1.0.13-py3-none-any.whl Python 3 none any Details

Total release size: 34.5 kB

Release files / pip_lastfm_python_lule345-1.0.13.tar.gz

Download URL pip_lastfm_python_lule345-1.0.13.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b4d8a8352c16650dca3bcaf015045bdcf298b4edf5605ec3120c06b384993844
BLAKE2b-256 checksum
How to use checksums
614b38dfd7092716fd54e2db20b4328fa31b593f8ea8e4f246c2a40ae89374e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / pip_lastfm_python_lule345-1.0.13-py3-none-any.whl

Download URL pip_lastfm_python_lule345-1.0.13-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a72927f1905e208ca5f3042345ad0bcaf90f6e5c57e7e28e42f7a526e813bb8b
BLAKE2b-256 checksum
How to use checksums
7d7ca5987999cd03f77f00a8ad1c8c270de91715bf935ded88d7aa5ac8e3d6dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

1.0.13 This release

2 release files

1.0.12

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.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