Skip to main content

Cycls SDK

Project description



Cycls



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 markdown
  • Text is both streaming/bulk based on input

Try it live https://cycls.com/@groq

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

Uploaded Source

Built Distribution

cycls-0.0.2.14-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