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.17.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file cycls-0.0.2.17.tar.gz
.
File metadata
- Download URL: cycls-0.0.2.17.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 | c2824a67208bc6fec7bbe7006953dfdf74b6d4331100ca33d06a3291f21dadc5 |
|
MD5 | 2ee8a104577bc623f9ea99dc53b24bd8 |
|
BLAKE2b-256 | 26183d7e6b276186f5789e5c3d6e52449ce5f4656160f450b22bc35bf826ce59 |
File details
Details for the file cycls-0.0.2.17-py3-none-any.whl
.
File metadata
- Download URL: cycls-0.0.2.17-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 | 832cbdb6b5cd0fcd6e6f2c0191a8bfffa6f76922a6e51869c51bda04079134e7 |
|
MD5 | 5f2ecae4eed2be7fb5378b9c25c218ca |
|
BLAKE2b-256 | f2b8daebab073327c8aaac7215a7126814eb08f5f399de1ccd5bb29ce7aedf67 |