让您扩展海龟函数的功能
Project description
KittenServer
KittenServer可以让您扩展海龟函数的功能
示例
代码
from kittenserver import KittenServer
def func_event(event):
print(event)
return '{"errno": 0, "result": "https://pypi.org/project/kittenserver/"}'
ks = KittenServer()
ks.run(func_event)
运行结果
> python test.py
https://localhost:8964/
Client ('::1', 19425, 0, 0) lost — peer dropped the TLS connection suddenly, during handshake: (1, '[SSL: SSLV3_ALERT_CERTIFICATE_UNKNOWN] sslv3 alert certificate unknown (_ssl.c:992)')
::1:19426 - - [26/Apr/2025 17:47:18] "HTTP/1.1 OPTIONS /" - 204 No Content
{'action': 'execFunc', 'param': 'function1', 'pyParams': []}
::1:19426 - - [26/Apr/2025 17:47:18] "HTTP/1.1 POST /" - 200 OK
......
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kittenserver-0.0.1.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kittenserver-0.0.1.tar.gz.
File metadata
- Download URL: kittenserver-0.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbf2f342561e7544ad0be11a401a196af7a6563e77c230c86f2a817de3592f68
|
|
| MD5 |
f411d857f2ed71ca46f034f2b69f9c50
|
|
| BLAKE2b-256 |
b4015edd95fdc9b1077d7e805c3256c6560889ce61f2c4149eb36b3ab8c315d9
|
File details
Details for the file kittenserver-0.0.1-py3-none-any.whl.
File metadata
- Download URL: kittenserver-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
009959c9e4a966ed425859c96fe633e3d242773e9e82bb609af961b204728e59
|
|
| MD5 |
3c23b1b3a2ceeedd7d451ef42a3e60d2
|
|
| BLAKE2b-256 |
e00ae0c83a7dfc1315894e8d28bad0358ce5f2dbc0e1fe0643324fa93661c180
|