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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: knuckles-1.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 59806939e1b1a98d2bbb0f1c806093790c76053c206127807d75e0c2e21e9b7c
MD5 5e6cc4aa4a48119fa2d2a95052c6cdf9
BLAKE2b-256 ce394e7e1215e4da6e62d4c4c153253cf2db8c177a4beff8b8018316d2dc8362

See more details on using hashes here.

File details

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

File metadata

  • Download URL: knuckles-1.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1d94593e267537ebe6906ab87f0371fcdff75f99b20c8af5cf4ae448041b37a2
MD5 3e61e0a21c3c94164ad85871ead6de13
BLAKE2b-256 e42d78cc821d6a299027622b1ae9fdaa46f275f01cbe8c057aae5d581034fab7

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