$npx skillfedfor your agent

pylast

A Python interface to Last.fm and Libre.fm

Worth itPyPI Python ModulesReleased Jun 2026182.7K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pylast-7.1.0-py3-none-any.whl
v7.1.0 · released 2026-06-30 · Python >=3.10 · 1 runtime deps: httpx2

Yes. pylast is a well-maintained, production-stable library with low install friction, no known vulnerabilities, and a permissive license. Install it if you need to interact with Last.fm or Libre.fm APIs; skip it if you only need local music metadata or don't require scrobbling or online music service integration.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a Last.fm API key and secret obtained from https://www.last.fm/api/account/create; authentication also requires a Last.fm account.
  • Low friction install with a single runtime dependency (httpx2).
  • Active maintenance with a release 45 days ago and recent commits; supports current Python versions (3.10–3.15) on CPython and PyPy.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

last release 2026-06-30 (45 days) · last repo commit 2026-08-01 · 769 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 182,688 downloads/mo, #10,088 on PyPI

Verify before relying

pip install pylast

import pylast

network = pylast.LastFMNetwork(
    api_key="your_api_key",
    api_secret="your_api_secret",
    username="username",
    password_hash=pylast.md5("password")
)
track = network.get_track("Artist", "Track")
track.love()
  • Whether httpx2 is a typo or intentional dependency name (httpx is the standard HTTP client library).
  • Performance characteristics and rate-limiting behavior when making many concurrent API calls.
  • Whether internal caching is suitable for production workloads or primarily for development.
Same gist for agents: .md · .json

What it is and what it does

pylast is a Python wrapper around the Last.fm web API and compatible services like Libre.fm. It abstracts the HTTP layer and provides an object-oriented interface to query music metadata, manage user accounts, and submit scrobbles (track plays). The library handles authentication via API keys or session tokens, supports proxy configuration, and includes optional internal caching for repeated queries.

The package is production-stable (Development Status 5) and actively maintained, with support for modern Python versions. It depends only on httpx2 for HTTP operations, making installation straightforward. Use it when you need programmatic access to Last.fm data—querying artist or track information, managing user libraries, or building music-tracking applications.

Use it for

  • Build a music recommendation tool that queries Last.fm for artist and track metadata to suggest similar music.
  • Create a scrobbler application that submits user listening history to Last.fm or Libre.fm automatically.
  • Analyze personal music listening patterns by fetching user play counts and tag data from Last.fm.
  • Integrate Last.fm data into a music player or library management application to enrich metadata.
  • Sync music listening history across multiple platforms by reading from and writing to Last.fm.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

pylast is a well-maintained, production-stable library with low install friction, no known vulnerabilities, and a permissive license. Install it if you need to interact with Last.fm or Libre.fm APIs; skip it if you only need local music metadata or don't require scrobbling or online music service integration.

Install

pylast on PyPI

Before you install

Low friction install with a single runtime dependency (httpx2). Active maintenance with a release 45 days ago and recent commits; supports current Python versions (3.10–3.15) on CPython and PyPy.

Requires a Last.fm API key and secret obtained from https://www.last.fm/api/account/create; authentication also requires a Last.fm account.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

pip install pylast

import pylast

network = pylast.LastFMNetwork(
    api_key="your_api_key",
    api_secret="your_api_secret",
    username="username",
    password_hash=pylast.md5("password")
)
track = network.get_track("Artist", "Track")
track.love()

Verify before relying

  • Whether httpx2 is a typo or intentional dependency name (httpx is the standard HTTP client library).
  • Performance characteristics and rate-limiting behavior when making many concurrent API calls.
  • Whether internal caching is suitable for production workloads or primarily for development.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
httpx2
MaintenanceActively maintained 45 days since the last release
Last repo commit
First released
Downloads182,688 / month, #10,088 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: InternetTopic :: Multimedia :: Sound/AudioTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Evidence: pylast-7.1.0-py3-none-any.whl

Tags

Capabilities
last.fm python api clientmusic scrobbling librarylast.fm data accesslibre.fm api wrappermusic listening history trackingscrobble submission pythonmusic metadata retrieval
Topics
music-apiscrobblinglast-fm
PyPI keywords
Last.fmmusicscrobblescrobbling

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “last.fm python api client”

  • pylastpylast provides a Python interface to Last.fm and API-compatible…
  • twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
  • codewords-clientA Python client library for the Codewords API with built-in FastAPI…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also librosa · music-assistant-client · music21 · ytmusicapi · syncedlyrics · spotipy · pydub · aubio · phaxio · wiim