Python library for Amapche XML-API
Project description
AMPACHE LIBRARY FOR PYTHON3
INFO
A python3 library for interaction with your Ampache server using the XML API https://github.com/ampache/ampache/wiki/API
If you run a develop server you now have access to JSON as well!
Code examples and scripts are available from github
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=(ampache_url, ampache_api, 'Hear.Life.Spoken', 'Sub Atari Knives', 'Unearthed',
'', '', int(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
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
File details
Details for the file ampache-1.0.4.tar.gz.
File metadata
- Download URL: ampache-1.0.4.tar.gz
- Upload date:
- Size: 9.6 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.42.1 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
867e2814a16cf3f897270988aff55f6819329ef520c8584954c75350a88cac0d
|
|
| MD5 |
ca489f4926f37b59f3308cd94aed706b
|
|
| BLAKE2b-256 |
6f5274b0ab8a37dabab79ccb41fb9216530b335cc844fb84cafeb01da90b5a9c
|
File details
Details for the file ampache-1.0.4-py3-none-any.whl.
File metadata
- Download URL: ampache-1.0.4-py3-none-any.whl
- Upload date:
- Size: 21.7 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.42.1 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2325a146a31272de0fc42a26791cdb782d5f079c94a25417df0296f7cd202db2
|
|
| MD5 |
1bc47456c9702c5dad83185c200d3b53
|
|
| BLAKE2b-256 |
1f6acbbb6e8b32f7a02da0c95735acc1412518eccdb5a90b3cad38699f820134
|