一个简单的用于Python的ListenBrainz客户机库
pylistenbrainz的Python项目详细描述
皮里斯滕布兰兹
pylistenbrainz是一个简单的Python库,用于 ListenBrainz Web API。在
pylistenbrainz将帮助您开始从中获取数据并将数据提交给 ListenBrainz很快。在
以下是获取ListenBrainz用户的侦听历史的示例:
importpylistenbrainzclient=pylistenbrainz.ListenBrainz()listens=client.get_listens(username='iliekcomputers')forlisteninlistens:print("Track name:",listen.track_name)print("Artist name:",listen.artist_name)
下面是另一个如何提交ListenBrainz的快速示例:
^{pr2}$可提供更详细的文档 在Read The Docs。在
特点
pylistenbrainz提供对所有ListenBrainz端点、句柄的轻松访问 ratelimits自动限制并支持ListenBrainz授权流。在
有关可通过pyllistenbrainz使用的API端点的详细信息,请 看看ListenBrainz API Documentation。在
安装
安装或升级pylistenbrainz:
pip install pylistenbrainz --upgrade
支持
您可以询问有关如何在IRC(freenode#metabrainz)上使用pylistenbrainz的问题。
你也可以发电子邮件给我iliekcomputers [at] gmail [dot] com
。在
如果您发现了一个bug或有一个特性请求,请打开一个问题(或拉取请求)让我知道。在
许可证
pylistenbrainz - A simple client library for ListenBrainz
Copyright (C) 2020 Param Singh <iliekcomputers@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
- 项目
标签: