Skip to content

KSoft-Si/ksoftapi.py

Repository files navigation

KSoftAPI.py

The official Python Wrapper for KSoft API

Install

Installing via pip:

pip install ksoftapi

Example Usage:

import ksoftapi

kclient = ksoftapi.Client('Your API key here')


async def find_lyrics(query: str):
    try:
        results = await kclient.music.lyrics(query)
    except ksoftapi.NoResults:
        print('No lyrics found for ' + query)
    else:
        first = results[0]
        print(first.lyrics)

Obtain an API key (Unavailable) | Documentation | Join our Discord server