一个简单的用于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/>.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java使用ObjectOutput/InputStream从自定义位置读/写   Java队列数组只打印出打印方法中for循环中的最后一个元素   java如何使用searchManager搜索和筛选listview   java ValueAnimator更改背景颜色   java什么是AOSP工具链?   序列化Java/Serializable仅覆盖已更改的对象   java Android单例类仅在第二次刷新时更新   将文本追加到JTextPane时,JTextPane的java滚动条不可见   java行为和繁忙指示器   javaspring,Thymeleaf和CSS如何给错误着色   java如何在两个测试类之间共享外部资源?   java Druid longSum度量未填充   按下按钮时,java列表不会显示(+字符串参数“流派”不存在)   java在Hibernate中如何延迟加载子记录?   java为对象提供随机统计信息   java如何使用GWT编辑器框架编辑多值字段?