Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ksoft-si/ksoftapi.py
Official API Wrapper for KSoft.Si API
https://github.com/ksoft-si/ksoftapi.py
api-client api-wrapper discord-bot discord-py images ksoft python3
Last synced: about 2 months ago
JSON representation
Official API Wrapper for KSoft.Si API
- Host: GitHub
- URL: https://github.com/ksoft-si/ksoftapi.py
- Owner: KSoft-Si
- License: gpl-3.0
- Created: 2018-07-18T08:12:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-10T03:57:45.000Z (about 1 year ago)
- Last Synced: 2024-11-08T02:42:35.707Z (2 months ago)
- Topics: api-client, api-wrapper, discord-bot, discord-py, images, ksoft, python3
- Language: Python
- Homepage: https://api.ksoft.si/
- Size: 108 KB
- Stars: 31
- Watchers: 6
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://ksoft.si/)
# KSoftAPI.py
*The official Python Wrapper for KSoft API*## Install
Installing via pip:
```
pip install ksoftapi
```## Example Usage:
```python
import ksoftapikclient = 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)](https://api.ksoft.si/) | [Documentation](https://py.docs.ksoft.si/) | [Join our Discord server](https://discord.gg/7bqdQd4)