{"id":13988842,"url":"https://github.com/kokarare1212/librespot-python","last_synced_at":"2025-07-22T09:31:34.470Z","repository":{"id":37749609,"uuid":"341722374","full_name":"kokarare1212/librespot-python","owner":"kokarare1212","description":"Open Source Spotify Client","archived":false,"fork":false,"pushed_at":"2025-06-13T05:18:59.000Z","size":956,"stargazers_count":262,"open_issues_count":14,"forks_count":57,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-13T06:29:32.775Z","etag":null,"topics":["hacktoberfest","librespot","librespot-python","music-streaming","python","roadmap"],"latest_commit_sha":null,"homepage":"http://librespot-python.rtfd.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kokarare1212.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"docs/supported.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"kokarare1212"}},"created_at":"2021-02-23T23:44:55.000Z","updated_at":"2025-06-13T05:19:03.000Z","dependencies_parsed_at":"2023-02-09T21:45:51.989Z","dependency_job_id":"6b0d227d-f632-4c19-8c9d-2e6d8e32d6b3","html_url":"https://github.com/kokarare1212/librespot-python","commit_stats":{"total_commits":300,"total_committers":12,"mean_commits":25.0,"dds":0.55,"last_synced_commit":"82a011eefbd928021782deac4569ecdc6a44fc97"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/kokarare1212/librespot-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokarare1212%2Flibrespot-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokarare1212%2Flibrespot-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokarare1212%2Flibrespot-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokarare1212%2Flibrespot-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kokarare1212","download_url":"https://codeload.github.com/kokarare1212/librespot-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokarare1212%2Flibrespot-python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266465090,"owners_count":23933064,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["hacktoberfest","librespot","librespot-python","music-streaming","python","roadmap"],"created_at":"2024-08-09T13:01:23.557Z","updated_at":"2025-07-22T09:31:34.452Z","avatar_url":"https://github.com/kokarare1212.png","language":"Python","readme":"![License](https://img.shields.io/github/license/kokarare1212/librespot-python.svg)\n![Stars](https://img.shields.io/github/stars/kokarare1212/librespot-python.svg)\n![Forks](https://img.shields.io/github/forks/kokarare1212/librespot-python.svg)\n[![DeepSource](https://deepsource.io/gh/kokarare1212/librespot-python.svg/?label=active+issues\u0026show_trend=true)](https://deepsource.io/gh/kokarare1212/librespot-python/?ref=repository-badge)\n\n![Counter](https://count.getloli.com/get/@librespot-python?theme=moebooru)\n\n# Librespot-Python\n\nOpen Source Spotify Client\n\n## Support Project\nIf you find our project useful and want to support its development, please consider making a donation. Your contribution will help us maintain and improve the project, ensuring that it remains free and accessible to everyone.\u003cbr\u003e\u003cbr\u003e\n[![GitHub Sponsor](https://img.shields.io/github/sponsors/kokarare1212?label=GitHub%20Sponsor\u0026logo=GitHub)](https://github.com/sponsors/kokarare1212)\n[![Liberapay receiving](https://img.shields.io/liberapay/receives/kokarare1212?label=Liberapay\u0026logo=Liberapay)](https://liberapay.com/kokarare1212/)\n\n## About The Project\n\nThis project was developed to make the music streaming service Spotify available\non any device.\n\n## Attention!\n\nThis repository has been completely rewritten from the transplant.\u003cbr\u003e\nThere may be some functions that are not implemented yet.\u003cbr\u003e\nIf so, please feel free to open an issue.\u003cbr\u003e\n\n## Note\n\nIt is still in the idea stage, so there is a possibility of unintended behavior\nor major specification changes.\u003cbr\u003e\nWe **DO NOT** encourage piracy and **DO NOT** support any form of downloader/recorder designed with the help of this repository and in general anything that goes against the Spotify ToS.\u003cbr\u003e\nFor other guidelines, please see [CODE_OF_CONDUCT.md](https://github.com/kokarare1212/librespot-python/blob/main/CODE_OF_CONDUCT.md).\u003cbr\u003e\n\n## Getting Started\n\n### Prerequisites\n\n- [Python](https://python.org/)\n\n### Installation\n\nStable Version\n\n```commandline\npip install librespot\n```\n\nSnapshot Version \\***Recommended**\n\n```commandline\npip install git+https://github.com/kokarare1212/librespot-python\n```\n\n## Usage\n\n### Use Zeroconf for Login\n\n```python\nfrom librespot.zeroconf import ZeroconfServer\n\nzeroconf = ZeroconfServer.Builder().create()\n```\n\n### Use OAuth for Login\n\n#### Without auth url callback\n\n```python\nfrom librespot.core import Session\n\n# This will log an url in the terminal that you have to open\n\nsession = Session.Builder() \\\n    .oauth(None) \\\n    .create()\n```\n\n#### With auth url callback\n\n```python\nfrom librespot.core import Session\n\n# This will pass the auth url to the method\n\ndef auth_url_callback(url):\n    print(url)\n\nsession = Session.Builder() \\\n    .oauth(auth_url_callback) \\\n    .create()\n```\n\n### Get Spotify's OAuth token\n\n```python\nfrom librespot.core import Session\n\n\nsession = Session.Builder() \\\n    .oauth(None) \\\n    .create()\n\naccess_token = session.tokens().get(\"playlist-read\")\n```\n\n### Get Music Stream\n\n*Currently, music streaming is supported, but it may cause unintended behavior.\u003cbr\u003e\n\n```python\nfrom librespot.core import Session\nfrom librespot.metadata import TrackId\nfrom librespot.audio.decoders import AudioQuality, VorbisOnlyAudioQuality\n\nsession = Session.Builder() \\\n    .oauth(None) \\\n    .create()\n\ntrack_id = TrackId.from_uri(\"spotify:track:xxxxxxxxxxxxxxxxxxxxxx\")\nstream = session.content_feeder().load(track_id, VorbisOnlyAudioQuality(AudioQuality.VERY_HIGH), False, None)\n# stream.input_stream.stream().read() to get one byte of the music stream.\n```\n\nOther uses are\n[examples](https://github.com/kokarare1212/librespot-python/tree/main/examples)\nor read [this document](https://librespot-python.rtfd.io) for detailed\nspecifications.\n\n## Debug\n\nTo display the debug information, you need to inject the following code at the\ntop of the code.\n\n```python\nimport logging\n\n\nlogging.basicConfig(level=logging.DEBUG)\n```\n\n## Contributing\n\nPull requests are welcome.\n\n## License\n\nDistributed under the Apache-2.0 License. See\n[LICENSE.txt](https://github.com/kokarare1212/librespot-python/blob/main/LICENSE.txt)\nfor more information.\n\n## Related Projects\n\n- [Librespot](https://github.com/librespot-org/librespot) (Concept)\n- [Librespot-Java](https://github.com/librespot-org/librespot-java) (Core)\n","funding_links":["https://github.com/sponsors/kokarare1212","https://liberapay.com/kokarare1212/"],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkokarare1212%2Flibrespot-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkokarare1212%2Flibrespot-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkokarare1212%2Flibrespot-python/lists"}