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 hashes)