Usage

Installation

To use slskd-api, first install it using pip:

(.venv) $ pip install slskd-api

Send requests to the server

Once the module is installed, you can create an instance of slskd client with the following code, granted an API-Key was setup in your slskd configuration file.

import slskd_api
slskd = slskd_api.SlskdClient(host, api_key, url_base)

From there all APIs (with the exception of MetricsApi) will be accessible through slskd:

app_status = slskd.application.state()
available_rooms = slskd.rooms.get_all()