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

Uploaded Source

Built Distribution

cycls-0.0.2.18-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cycls-0.0.2.18.tar.gz
  • Upload date:
  • Size: 4.6 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.18.tar.gz
Algorithm Hash digest
SHA256 b5561f8b6000ff1081fcbbadceca0ee2bf0ac48c8600b6ffafd6059d41e3c16f
MD5 486b297b02810567c42cc67008bd8144
BLAKE2b-256 762762e1e12952dc38d054579544ecfba67c3e6d206402476834eb77a7efbd5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cycls-0.0.2.18-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.18-py3-none-any.whl
Algorithm Hash digest
SHA256 f55701db6ed91111e6caf26e9826e5f78a62d0f265010f8eb1455815f53059af
MD5 0b4d3ea2b927b8f632378b795f231d9b
BLAKE2b-256 f956a3344c045328ab04cf34c54b676698551e11957e8cc1e7268e9ce1b21f56

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