Cycls SDK
Project description
pip install cycls
Apps ✦
Instantly publish and share AI apps
from cycls import Cycls
cycls = Cycls()
@cycls("@spark")
def app(x):
return x.content + "from spark"
cycls.push()
cycls.push()
will then publish the app @spark
on cycls.com/@spark
Async Apps
For performance, make the function asynchronous. The following is an async app with message history
and session id
from cycls import Cycls
cycls = Cycls()
@cycls("@spark")
async def app(x):
print(x.history, x.id)
return x.content + "from spark"
cycls.push()
Agents ✧
Call any public app as an agent, see explore
from cycls import Cycls
cycls = Cycls()
@cycls("@spark")
async def app(x):
return cycls.call("@groq",
x.content)
cycls.push()
Try it live
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.21.tar.gz
(5.0 kB
view details)
Built Distribution
File details
Details for the file cycls-0.0.2.21.tar.gz
.
File metadata
- Download URL: cycls-0.0.2.21.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.13 Linux/6.5.0-1022-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f52c5be35e49b1a030718a1738bbbef47f7f410b868c89013e8a29f743ba73a |
|
MD5 | 093574e23ee0bb1f85a8855c6bd5bf4b |
|
BLAKE2b-256 | c6d7dda93b2c67b2f59be29f5acf55dbd6b038355d2c280f1828396b0d9814f7 |
File details
Details for the file cycls-0.0.2.21-py3-none-any.whl
.
File metadata
- Download URL: cycls-0.0.2.21-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.13 Linux/6.5.0-1022-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07f51b483f4872dc45e6b7da7117e26f9b6008e156f70b5fcb17e89b21a9a4c5 |
|
MD5 | 0a315d4116b56badce6208db3e51a553 |
|
BLAKE2b-256 | 8f4d9354be2009686034dd3e88c5f1b22c3878d0b98a77d81654e938647622e8 |