Skip to main content

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()

Project details


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ampache-1.0.3-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file ampache-1.0.3.tar.gz.

File metadata

  • Download URL: ampache-1.0.3.tar.gz
  • Upload date:
  • Size: 9.0 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

Hashes for ampache-1.0.3.tar.gz
Algorithm Hash digest
SHA256 077d822bfc0ce1b54648f007c043bf194a6f219742c8954db71460caaa054aa8
MD5 aceabafaf826500389b507c3c5b21b7f
BLAKE2b-256 612f6ec530ea94eb8b1327b6f20e7cb095b75645a5d420b4c77ceab944b4f796

See more details on using hashes here.

File details

Details for the file ampache-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: ampache-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 21.2 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

Hashes for ampache-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1c683aca018a7105458c0959f61ccbd3096216eaf117467597e12a1c75bdf4d1
MD5 a212649f00c4bc169e4b60633484a9fd
BLAKE2b-256 c98c9dea14f490ee53492197c385b68d11304882ec48525ba10c35fbcc08d67e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page