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.22.tar.gz
(5.0 kB
view details)
Built Distribution
File details
Details for the file cycls-0.0.2.22.tar.gz
.
File metadata
- Download URL: cycls-0.0.2.22.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 | adc6da81d2641ea80e027586001367fc4843209819d0aa967b7ceb252b5aa7a1 |
|
MD5 | 5f17aa2697adef2b07f0ab83f9f1fa4f |
|
BLAKE2b-256 | 158aab8839ba4e2499c5fcbd6d585323fb532e8b8d5c55b9a0d69a841fd988d6 |
File details
Details for the file cycls-0.0.2.22-py3-none-any.whl
.
File metadata
- Download URL: cycls-0.0.2.22-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 | 002494e67a810c2112e8418c703cca6e9dc1e5be4dfcecfd81c643edfd087047 |
|
MD5 | fde700bd1c31c33f8a72f58eee5eccba |
|
BLAKE2b-256 | cc85e9252beb6eea9fa20e54fe7d781c77fd8b218bcaeb72c59dd427dc634232 |