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.2.tar.gz
(8.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ampache-1.0.2-py3-none-any.whl
(21.1 kB
view details)
File details
Details for the file ampache-1.0.2.tar.gz.
File metadata
- Download URL: ampache-1.0.2.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aefcbceac4cb06640e450f3c9da6853cd526d46c124cc2c303f5174d3c285f2c
|
|
| MD5 |
06bef57c511977bac9dfc35dc75ccc06
|
|
| BLAKE2b-256 |
f448aa5d64cb749fe74de8527b78cac1f4a9562efd67b4cf8d194464f3acad89
|
File details
Details for the file ampache-1.0.2-py3-none-any.whl.
File metadata
- Download URL: ampache-1.0.2-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b012f180403b14d07ca3fe4642ebb37f4105344f067ed4e520c485817a759488
|
|
| MD5 |
dfdbf04215a9a9d14be30b2a7d7119b6
|
|
| BLAKE2b-256 |
6890664624cc27eb27cd25d40ac7070a071fe70221239e5d7a67577b6525f675
|