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

a simple last.fm wrapper powering infrared
built for speed. async. clean.

  • user, artist, album, track, and chart endpoints

how to

import asyncio
from infrafm import LastFMClient



async def main():
    lfm = LastFMClient("your_lastfm_api_key")
    track = await lfm.user.get_now_playing("infrared")

    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-2.2.0.tar.gz (12.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-2.2.0-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: infrared_fm-2.2.0.tar.gz
  • Upload date:
  • Size: 12.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-2.2.0.tar.gz
Algorithm Hash digest
SHA256 854cc155b92e402a201c3136ef75be1ceadfe174a42ea1b8caef404f866cee60
MD5 0ea1ba900e759ab5016a0b6026cddb30
BLAKE2b-256 cb26bcb890649730653190bbf6fff414dc3582643398ac3c2a447ffc97722119

See more details on using hashes here.

File details

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

File metadata

  • Download URL: infrared_fm-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.9 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-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5090bea26bfc8288fb00adc92e5a28655b11737a41943fcbd60b4f9e2ad8b50b
MD5 f24c0dd4ef2f7918066a2c45ea6cb1b1
BLAKE2b-256 a507c4a1113ff486f508a989747b7f2b9f6bf63462710be05c8a8a41a8310571

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