Skip to main content

khl.py

pypi version GitHub last commit

khl server github stars

Python SDK for kookapp.cn(aka kaiheila.cn) API

Minimal Example

from khl import Bot, Message

# init Bot
bot = Bot(token='xxxxxxxxxxxxxxxxxxxxxxxxx')


# register command, send `/hello` in channel to invoke
@bot.command(name='hello')
async def world(msg: Message):
    await msg.reply('world!')


# everything done, go ahead now!
bot.run()
# now invite the bot to a server, and send '/hello' in any channel
# (remember to grant the bot with read & send permissions)

INSTALL

requirement: Python >= 3.6.8

pip install khl.py

Documentation

if your question has not been listed yet, please create a issue or join our talk channel for help

CONTRIBUTING

welcome! we are glad to get help from community hands, and don't be shy to show your code, we can improve it together even if it's not perfect right now

if there is any bug/perf/feature request, we are willing to deal with your issue/pull request!

Release files for khl.py 0.3.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for khl.py 0.3.17
File Size Uploaded
khl.py-0.3.17.tar.gz 41.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for khl.py 0.3.17
File Interpreter ABI Platform
khl.py-0.3.17-py3-none-any.whl Python 3 none any Details

Total release size: 97.0 kB

Release files / khl.py-0.3.17.tar.gz

Download URL khl.py-0.3.17.tar.gz
Size 41.6 kB
Tags Source
SHA-256 checksum
How to use checksums
da87736e9f178bab3bb45aede1494bef08328913898b31368d656d51667a5ded
BLAKE2b-256 checksum
How to use checksums
8001b7d4e5683746a73e374c74fbd531916ab56c723870b4d9c827f31167e7a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / khl.py-0.3.17-py3-none-any.whl

Download URL khl.py-0.3.17-py3-none-any.whl
Size 55.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8a00d7d994ef4345a830c30c74b33693cac1a390ba0774f7ca497734774de18
BLAKE2b-256 checksum
How to use checksums
7d09a769ba7c369318bc0f05bb06b7cf7654de10abe4e9702ae94ce59aa946a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.3.17 This release

2 release files

0.3.16

2 release files

0.3.15

2 release files

0.3.14

2 release files

0.3.13

2 release files

0.3.11

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.2.19

2 release files

0.2.18

2 release files

0.2.17

2 release files

0.2.16

2 release files

0.2.15

2 release files

0.2.14

2 release files

0.2.13

2 release files

0.2.11

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.10

1 release file

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page