Skip to main content

Last.FM wrapper by Infrared LLC.

Project description

infrared banner


maybe we scrobble.
maybe we don’t.

what is this

infrared.fm

the last.fm wrapper powering infrared
built for speed. async. clean.

  • user, artist, album, track, and chart endpoints
  • powers dynamic embed views: nowplaying, charts, stats
  • no extra weight, just flex

how to

import asyncio
from infrafm import LastFMClient

lfm = LastFMClient("your_lastfm_api_key")

async def main():
    track = await lfm.user.get_now_playing("opexwtf")

    if track:
        print(f"🎧 {track.name}{track.artist}")
    else:
        print("No track playing.")

    await lfm.close()

asyncio.run(main())

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

infrared_fm-1.6.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

infrared_fm-1.6.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file infrared_fm-1.6.0.tar.gz.

File metadata

  • Download URL: infrared_fm-1.6.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for infrared_fm-1.6.0.tar.gz
Algorithm Hash digest
SHA256 75afdc754b2987c1fcf0f30006489349b43b6ec06c415dd0006c1185169d11c3
MD5 e00a806b3b497d84c5eb6da43bd4ede5
BLAKE2b-256 53df872d989f6387d80c762c9ef434d5d4c1d3d73ab609a9ae1f8f3f62935098

See more details on using hashes here.

File details

Details for the file infrared_fm-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: infrared_fm-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for infrared_fm-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 737ea325adf4081adec3f018fe66ecae28db32350c4d49666a562caef157dfe4
MD5 49f25bc1549fbc62189985e548c3939f
BLAKE2b-256 71d47ef8c5c634b9417f6cc4f84106e1e268f074db21692b8fa69f6d434aae13

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