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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pip_lastfm_python_lule345-1.0.13.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pip_lastfm_python_lule345-1.0.13-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file pip_lastfm_python_lule345-1.0.13.tar.gz.

File metadata

File hashes

Hashes for pip_lastfm_python_lule345-1.0.13.tar.gz
Algorithm Hash digest
SHA256 b4d8a8352c16650dca3bcaf015045bdcf298b4edf5605ec3120c06b384993844
MD5 a19cb3d193cf6022bad4d7cb416311fe
BLAKE2b-256 614b38dfd7092716fd54e2db20b4328fa31b593f8ea8e4f246c2a40ae89374e8

See more details on using hashes here.

File details

Details for the file pip_lastfm_python_lule345-1.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for pip_lastfm_python_lule345-1.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 a72927f1905e208ca5f3042345ad0bcaf90f6e5c57e7e28e42f7a526e813bb8b
MD5 d1d1a604e18c3ac7bdb67ae6d8dc9778
BLAKE2b-256 7d7ca5987999cd03f77f00a8ad1c8c270de91715bf935ded88d7aa5ac8e3d6dd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.13 This release

2 files

1.0.12

2 files

1.0.11

2 files

1.0.10

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 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