Cycls SDK
Project description
pip install cycls
from cycls import Cycls
cycls = Cycls()
# sync app on https://cycls.com/@spark
@cycls("spark")
def spark_app(message):
print("history", message.history)
print("session id", message.id)
return message.content + "from spark"
# async app on https://cycls.com/@cake
@cycls("cake")
async def cake_app(message):
print("history", message.history)
print("session id", message.id)
return message.content + "from cake"
# publish to https://cycls.com
cycls.push()
Return a string. Supports markdown. Supports generators for streaming responses.
try it live
code examples
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
cycls-0.0.2.19.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file cycls-0.0.2.19.tar.gz
.
File metadata
- Download URL: cycls-0.0.2.19.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.13 Linux/6.5.0-1021-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e3062aeacb0d03578a400c0e8f0b1ad8ccfba542da8d94141cdd663dcc27af8 |
|
MD5 | b6878cf03f310aa7db4dd273574f22d1 |
|
BLAKE2b-256 | 0dbd29795cd79a6697019f80a5bec3861d013914a0b5424e519eebfa79c38564 |
File details
Details for the file cycls-0.0.2.19-py3-none-any.whl
.
File metadata
- Download URL: cycls-0.0.2.19-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.13 Linux/6.5.0-1021-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf4721ea0699cdd94d4adda76c38c921ae418683e64a1b9eda5405b3a2cc446e |
|
MD5 | 5b9e506f5a870a63e473b806fa550365 |
|
BLAKE2b-256 | 61add70d8321b8c1c4644d9f31f860158cc7ce5c8d19b2aa870cef3e4316254b |