{"id":44427110,"url":"https://github.com/spiritualized/lastfmcache","last_synced_at":"2026-02-12T10:36:21.868Z","repository":{"id":62575133,"uuid":"183423271","full_name":"spiritualized/lastfmcache","owner":"spiritualized","description":"Caching interface for last.fm, written in Python","archived":false,"fork":false,"pushed_at":"2023-12-11T02:12:33.000Z","size":51,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-21T06:13:42.399Z","etag":null,"topics":["cache","lastfm","lastfm-api","python","python-library"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spiritualized.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-25T11:46:04.000Z","updated_at":"2024-11-21T10:26:54.000Z","dependencies_parsed_at":"2022-11-03T20:44:58.167Z","dependency_job_id":null,"html_url":"https://github.com/spiritualized/lastfmcache","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/spiritualized/lastfmcache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spiritualized%2Flastfmcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spiritualized%2Flastfmcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spiritualized%2Flastfmcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spiritualized%2Flastfmcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spiritualized","download_url":"https://codeload.github.com/spiritualized/lastfmcache/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spiritualized%2Flastfmcache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29363214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache","lastfm","lastfm-api","python","python-library"],"created_at":"2026-02-12T10:36:20.110Z","updated_at":"2026-02-12T10:36:21.864Z","avatar_url":"https://github.com/spiritualized.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lastfmcache\nlastfmcache is a caching interface library for last.fm, written in Python. It meshes data retrieved from the API (via [pylast]([http://github.com/pylast])) with data retreived directly from the website.\n\nRetrieved data is optionally cached in a local file, using sqlite.\n\nThis library bypasses several long-term unfixed issues with the last.fm API, including:\n- Missing artist artwork\n- Release date not populated\n- Release tags not populated\n- Certain release tags not populated on the API, others not populated on the website\n- Track listing not available\n\n## Usage\n```\nfrom lastfmcache import LastfmCache\n\nlastfm_api_key = \"\"\nlastfm_shared_secret = \"\"\n\nlastfm = LastfmCache(lastfm_api_key, lastfm_shared_secret)\nlastfm.enable_file_cache()  # optional\n\nartist = lastfm.get_artist(\"Pink Floyd\")\nrelease = lastfm.get_release(\"Pink Floyd\", \"Dark Side of the Moon\")\n\ntop_releases = lastfm.get_top_user_releases(\"username\")\n\n```\n\n### Artist class:\n```\nartist.artist_name: str\nartist.listener_count: int\nartist.play_count: int\nartist.biography: str\nartist.cover_image: str\nartist.tags: OrderedDict[str, int]      # tag -\u003e weight\n```\n### Release class:\n```\nrelease_name: str\nartist_name: str\nrelease_date: datetime\nlistener_count: int\nplay_count: int\ncover_image: str\nhas_cover_image: bool\ntags = OrderedDict[str, int]            # tag -\u003e weight\ntracks = OrderedDict[int, Track]        # track number -\u003e track\n```\n\n### Track class\n```\ntrack_number: int\ntrack_name: str\nartist_name: str\nlistener_count: int\n```\n\n### Top release class\n```\nindex: int          # ranking of the release\nscrobbles: int\nartist: str\ntitle: str\n```\n\n## Installation\n\n`pip install lastfmcache`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspiritualized%2Flastfmcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspiritualized%2Flastfmcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspiritualized%2Flastfmcache/lists"}