Skip to main content

Cycls SDK

Project description



Cycls




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


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 hashes)

Uploaded Source

Built Distribution

cycls-0.0.2.22-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page