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.0.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.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.0.tar.gz (41.4 kB view hashes)

Uploaded Source

Built Distribution

knuckles-1.1.0-py3-none-any.whl (64.7 kB view hashes)

Uploaded Python 3

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