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

Uploaded Source

Built Distribution

cycls-0.0.2.16-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file cycls-0.0.2.16.tar.gz.

File metadata

  • Download URL: cycls-0.0.2.16.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.13 Linux/6.5.0-1021-azure

File hashes

Hashes for cycls-0.0.2.16.tar.gz
Algorithm Hash digest
SHA256 569340d2b65775f243846f84fe5f40f088dc32606d5fde595ce9f717c151642c
MD5 e56efc24ad6981dd356455736867bacb
BLAKE2b-256 0e641f74b62dafdeb8117c261999bef115529da6d4e0fed838c4b9631ec57193

See more details on using hashes here.

File details

Details for the file cycls-0.0.2.16-py3-none-any.whl.

File metadata

  • Download URL: cycls-0.0.2.16-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.13 Linux/6.5.0-1021-azure

File hashes

Hashes for cycls-0.0.2.16-py3-none-any.whl
Algorithm Hash digest
SHA256 c7dacfbc756aeedee36114771b88647b1d78206bdd3d6e967c6ba09a5559a151
MD5 c307c498a7f67fcef5a87d971f634426
BLAKE2b-256 76eda08d816f724a6fbf75d9ef871d54c7fd2df3d1396ea1b957f031904c0034

See more details on using hashes here.

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