All Projects → paramsingh → pylistenbrainz

paramsingh / pylistenbrainz

Licence: GPL-3.0 license
A simple ListenBrainz client library for Python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pylistenbrainz

adyen-python-api-library
Adyen API Library for Python
Stars: ✭ 41 (+141.18%)
Mutual labels:  api-client
notion-sdk-py
Official Notion SDK rewritten in Python (sync + async)
Stars: ✭ 753 (+4329.41%)
Mutual labels:  api-client
transip-api
Python implementation for the TransIP API
Stars: ✭ 23 (+35.29%)
Mutual labels:  api-client
fb-messenger-bot-api
NodeJS Facebook Messenger API for bots to send messages and setup events to Facebook.
Stars: ✭ 29 (+70.59%)
Mutual labels:  api-client
chess.com
Python wrapper for Chess.com Published-Data API
Stars: ✭ 34 (+100%)
Mutual labels:  api-client
psd2
API client for banks supporting PSD2 APIs with OAuth2 authentication.
Stars: ✭ 26 (+52.94%)
Mutual labels:  api-client
sypht-golang-client
A Golang client for the Sypht API
Stars: ✭ 33 (+94.12%)
Mutual labels:  api-client
mercury-parserpy
python api wrapper for https://mercury.postlight.com/web-parser/
Stars: ✭ 16 (-5.88%)
Mutual labels:  api-client
airtabler
R interface to the Airtable API
Stars: ✭ 84 (+394.12%)
Mutual labels:  api-client
upcloud-python-api
Python client for UpCloud's API
Stars: ✭ 51 (+200%)
Mutual labels:  api-client
servicenow
A golang client for ServiceNow
Stars: ✭ 16 (-5.88%)
Mutual labels:  api-client
sbankenclient-ios
A small but enjoyable iOS framework to connect to the Sbanken API
Stars: ✭ 21 (+23.53%)
Mutual labels:  api-client
deepl-api-connector
Connector library for deepl.com rest translation api
Stars: ✭ 12 (-29.41%)
Mutual labels:  api-client
AutoMeter-API
AutoMeter-API是一款针对分布式服务,微服务API功能和性能一体的自动化测试平台,一站式解决应用,服务,API,环境管理,用例,条件,测试场景,计划,测试报告,功能/性能测试兼容支持的一体化工作平台
Stars: ✭ 105 (+517.65%)
Mutual labels:  api-client
ninja automator
Acquire data with honour and wisdom — using the way of the ninja.
Stars: ✭ 21 (+23.53%)
Mutual labels:  api-client
lpconnector
Python client for syncing LastPass Enterprise with a remote directory over LDAP
Stars: ✭ 14 (-17.65%)
Mutual labels:  api-client
sevenbridges-python
SevenBridges Python Api bindings
Stars: ✭ 41 (+141.18%)
Mutual labels:  api-client
notion-sdk-net
A Notion SDK for .Net
Stars: ✭ 71 (+317.65%)
Mutual labels:  api-client
pycloud
A Python implementation of the pCloud API
Stars: ✭ 54 (+217.65%)
Mutual labels:  api-client
jusibe
📲 JavaScript client for Jusibe.com SMS API service. http://jusibe.com
Stars: ✭ 24 (+41.18%)
Mutual labels:  api-client

pylistenbrainz

pylistenbrainz is a simple Python library for the ListenBrainz Web API.

pylistenbrainz will help you start getting data from and submitting data to ListenBrainz very quickly.

Here's an example of getting the listening history of a ListenBrainz user::

import pylistenbrainz

client = pylistenbrainz.ListenBrainz()
listens = client.get_listens(username='iliekcomputers')
for listen in listens:
    print("Track name:", listen.track_name)
    print("Artist name:", listen.artist_name)

Here's another quick example of how to submit a listen to ListenBrainz::

import pylistenbrainz
import time

auth_token = input('Please enter your auth token: ')

listen = pylistenbrainz.Listen(
    track_name="Fade",
    artist_name="Kanye West",
    release_name="The Life of Pablo",
    listened_at=int(time.time()),
)

client = pylistenbrainz.ListenBrainz()
client.set_auth_token(auth_token)
response = client.submit_single_listen(listen)

More detailed documentation is available at Read The Docs.

Features

pylistenbrainz provides easy access to all ListenBrainz endpoints, handles ratelimits automatically and supports the ListenBrainz authorization flow.

For details on the API endpoints that can be used via pylistenbrainz, take a look at the ListenBrainz API Documentation.

Installation

Install or upgrade pylistenbrainz with:

pip install pylistenbrainz --upgrade

Support

You can ask questions about how to use pylistenbrainz on IRC (freenode #metabrainz). You can also email me at iliekcomputers [at] gmail [dot] com.

If you have found a bug or have a feature request, let me know by opening an issue (or a pull request).

License

pylistenbrainz - A simple client library for ListenBrainz
Copyright (C) 2020 Param Singh <[email protected]>

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/>.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].