Skip to main content

A Subsonic/OpenSubsonic API wrapper for Python.

Project description

Knuckles

PyPI - Version PyPI - Python Version GitHub Actions - PyPI Publishing GitHub Actions - Docs Deploying

An unopinionated OpenSubsonic API wrapper for Python.

Compatiblity

Knuckles only works with servers compatible with the REST API version 1.4.0 onwards (Subsonic 4.2+). It follows strictly the OpenSubsonic API Spec, being fully retro-compatible with the original Subsonic API.

Getting Started

Make It Available

First install the package:

python3 -m pip install knuckles

Or add it to your project:

project = [
    "knuckles>=1.1.0"
]

Using It

import knuckles

server = knuckles.Subsonic(
    # Adding https:// is done automatically,
    # /rest should never be added to the URL
    url = "example.com",
    user = "kutu",
    password = "caisopea",
    client = "knuckles client"
)

ping = server.system.ping()

# Print the supported version of the OpenSubsonic REST API
print(ping.version)

Learning More

To start making more complex interactions with the API make use of the API reference. Enjoy coding and good luck!

Acknowledgements

Created with :heart: by Jorge "Kutu" Dobón Blanco.

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

knuckles-1.1.4.tar.gz (41.5 kB view details)

Uploaded Source

Built Distribution

knuckles-1.1.4-py3-none-any.whl (64.8 kB view details)

Uploaded Python 3

File details

Details for the file knuckles-1.1.4.tar.gz.

File metadata

  • Download URL: knuckles-1.1.4.tar.gz
  • Upload date:
  • Size: 41.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for knuckles-1.1.4.tar.gz
Algorithm Hash digest
SHA256 02e81e30c28651741f17c80c489919fa5989b310f129189d01b6de9e27fc0cd5
MD5 e5ed6987d08b175e4a3bbd6eb1a1b791
BLAKE2b-256 daf76ac36b9af8b17740bf3ab9685ab04f20929ab24b84ddecfcd7e01aacc685

See more details on using hashes here.

Provenance

The following attestation bundles were made for knuckles-1.1.4.tar.gz:

Publisher: publish.yml on kutu-dev/knuckles

Attestations:

File details

Details for the file knuckles-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: knuckles-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 64.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for knuckles-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d069b785a5ce6b1093e42b5f0903dd64ec5c2bba5a2287290b1ea1d848ccd3a8
MD5 293c0c6997cee3f56b8ec29dabd2e4f1
BLAKE2b-256 6716e7ce2e4fed3336760360af6f49abaa1d056434391daa14c3773c849e04b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for knuckles-1.1.4-py3-none-any.whl:

Publisher: publish.yml on kutu-dev/knuckles

Attestations:

Supported by

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