Python library for Amapche XML-API
Project description
AMPACHE LIBRARY FOR PYTHON3
INFO
This library is starting to take shape and is able to connect to Ampache and return the xml or binary data received from the queries.
INSTALL
You can now install from pip directly:
pip3 install -U ampache
EXAMPLES
Practical example:
import time import ampache # user variables ampache_url = 'https://music.server' my_api_key = 'mysuperapikey' user = 'myusername' # processed details encrypted_key = ampache.encrypt_string(my_api_key, user) ampache_api = ampache.handshake(ampache_url, encrypted_key) if ampache_api: # Scrobble a music track to your ampache server Process(target=ampache.scrobble, args=(int(ampache_url, ampache_api, 'Hear.Life.Spoken', 'Sub Atari Knives', 'Unearthed', '', '', ''time.time()))).start()
LINKS
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
ampache-1.0.3.tar.gz
(9.0 kB
view hashes)
Built Distribution
ampache-1.0.3-py3-none-any.whl
(21.2 kB
view hashes)