Skip to main content

Cycls SDK

Project description



Cycls



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


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.19.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

cycls-0.0.2.19-py3-none-any.whl (4.9 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