Cycls SDK
Project description
pip install cycls
from cycls import Cycls, Text
cycls = Cycls()
# sync app on https://cycls.com/@spark
@cycls("spark")
def spark_app(x):
print("history", x.history)
print("session id", x.id)
return Text(x.content+" from spark")
# async app on https://cycls.com/@cake
@cycls("cake")
async def cake_app(x):
print("history", x.history)
print("session id", x.id)
return Text(x.content+" from cake")
# publish to https://cycls.com
cycls.push()
Text
renders markdownText
is both streaming/bulk based on input
Try it live https://cycls.com/@groq
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.15.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file cycls-0.0.2.15.tar.gz
.
File metadata
- Download URL: cycls-0.0.2.15.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 | 844d7ea75ddced0539692149f0316ab3ab986c2988d502345fcbd1f08baf4f08 |
|
MD5 | 0fcd22b407cf79a540b852727013bcb0 |
|
BLAKE2b-256 | 3f3f844d821d83228b0f0c8c6672c1bb48ae7effcf9aa271554d434eca7a808b |
File details
Details for the file cycls-0.0.2.15-py3-none-any.whl
.
File metadata
- Download URL: cycls-0.0.2.15-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 | 4098183f4a0f0f0f5367c6df8185d631cf3d142b769f167dbaace4148b1adb22 |
|
MD5 | 460b890618f651466b10ddbd346810fb |
|
BLAKE2b-256 | c398d85b11e9eab778b1e7af3287d84b7d69746ca49923e47cb03dadd1715195 |