A python client for the hearthis.at music community API
Project description
pyhearthis
A python client for the hearthis.at music community API
The API documentation is availabe at
Howto use the client
-
Get some credentials from hearthis.at (at the moment only the login with hearthis.at credentials is supported)
-
Use the client
import asyncio
import aiohttp
from pyhearthis.hearthis import HearThis
async def do_some_queries():
async with aiohttp.ClientSession() as session:
hearthis = HearThis(session)
user = await hearthis.login("mylogin", "mypassword")
# Search for music
search_result = await hearthis.search(user, "MySearchQuery")
for track in search_result:
print(track)
# Create a playlist
playlist = await hearthis.create_playlist(user, "MyNewPlaylist")
# Add a track to the playlist
await hearthis.add_track_to_playlist(user, search_result[0], playlist)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyhearthis-0.0.5.tar.gz
(6.8 kB
view details)
Built Distribution
File details
Details for the file pyhearthis-0.0.5.tar.gz
.
File metadata
- Download URL: pyhearthis-0.0.5.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 060eecebf3a24f4b1f62da3c1bc77390110445aae4994aa5cb6f8dcecdadd1aa |
|
MD5 | d5d5425a0e934c8e4a5189a0caa33730 |
|
BLAKE2b-256 | 89332b9f7ac58d4800162521674357125e5092f7c150c3581ce5dc7fcc7a3c3b |
File details
Details for the file pyhearthis-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: pyhearthis-0.0.5-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f8a1c6a46ed44789fe4a20526a97d5b0fb63d58c0ae05674d6cdb446e31165e |
|
MD5 | b88804b85928c51ead68e9c873694528 |
|
BLAKE2b-256 | ed49cd8c67bc608f13903f9e179ea917871e2c024098ed0817430561bba3991b |