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.20.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file cycls-0.0.2.20.tar.gz
.
File metadata
- Download URL: cycls-0.0.2.20.tar.gz
- Upload date:
- Size: 4.7 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 | 00792d8677d58742ede0d21ea81d97c45ddd4629368856fc7fd786d3878344ad |
|
MD5 | 9a8c61d11d7182c4fe40cf4b4843c36f |
|
BLAKE2b-256 | d1f5a532abc24bd7bed44b4c68ebffeec05bde490ffcb2c947f396adc023da7b |
File details
Details for the file cycls-0.0.2.20-py3-none-any.whl
.
File metadata
- Download URL: cycls-0.0.2.20-py3-none-any.whl
- Upload date:
- Size: 5.1 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 | 0b6996feeec0fa1b14b661eeb9c4c225c19b1b84476f1e6d5610fc240741391f |
|
MD5 | 39601e4e3d9da9ba1778c59b1a4c8116 |
|
BLAKE2b-256 | 86f099f6b9d5d6fedb9d410d4e94bb551f18624c40249cc80c8691a74be303aa |