Skip to main content

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

Project description

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

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

pip_lastfm_python_lule345-1.0.12.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.12-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for pip_lastfm_python_lule345-1.0.12.tar.gz
Algorithm Hash digest
SHA256 80bb3609034ccf07381cd307cd48d3be09d9fa1365ed0d25dc3f7203e8c93fd4
MD5 72e47739f8152ef91f1095c0ddca6f1f
BLAKE2b-256 82d68ca8a84f26ef0d1e96f6f8122af4b8649334d5ee343b565e738ffe20ce86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pip_lastfm_python_lule345-1.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 42bd29f1b04e2f89b15f83db86605398ae8469a0c9988890019616e46704034f
MD5 8d5a0d49886a4b7945f3f14c77688f91
BLAKE2b-256 ba32f85ff3c29d273d0e7bb685e0572f327006950661ed35dc8cc739c3e154be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page