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.1.tar.gz (41.5 kB view details)

Uploaded Source

Built Distribution

knuckles-1.1.1-py3-none-any.whl (64.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: knuckles-1.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 bc3666a58cd8d9b974fa86e24b7da1306e7171c694dece2715b19889cc0c42a9
MD5 c710e6920ce1a93830d43bac19389827
BLAKE2b-256 d1e5f68d4ba5d8d05b8315dc2f494ac2148a55a248fd66aa599042bb64bdc84f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: knuckles-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 64.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ab9e4a2f3d41715b8397474e378a8716c61d8ed0b30dfb6214b19ef46b249ee
MD5 8c259e9c2efa0b6b4a74d85aced6ff68
BLAKE2b-256 62a27b1094676cf8bd887ece5f42e335268600a19ff1133e801a985deb167bcc

See more details on using hashes here.

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