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-0.9.0.tar.gz (7.1 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-0.9.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for infrared_fm-0.9.0.tar.gz
Algorithm Hash digest
SHA256 ed5fe1e980d75ba031d5361d18c9d8c227b23c29037467c375f07c271de814e0
MD5 1256af5e8ef00c3d8cfe2b05917fced5
BLAKE2b-256 1ca3dfdbca25398c488e1aa8106bc6f04de219123f952557321d9350b74a7387

See more details on using hashes here.

File details

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

File metadata

  • Download URL: infrared_fm-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 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-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 775be76bfe562b05a23623773de010e64e0f3f7bcc4b717dba5afc1812608cdb
MD5 fed31393b5f91a0affa99b724365de88
BLAKE2b-256 6d85558d95087cf80f5734c1b93e04bd934bf1ec0f02ed0e0de828cefd7f83c0

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