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

Uploaded Source

Built Distribution

cycls-0.0.2.20-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cycls-0.0.2.20.tar.gz
  • Upload date:
  • Size: 4.7 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.20.tar.gz
Algorithm Hash digest
SHA256 00792d8677d58742ede0d21ea81d97c45ddd4629368856fc7fd786d3878344ad
MD5 9a8c61d11d7182c4fe40cf4b4843c36f
BLAKE2b-256 d1f5a532abc24bd7bed44b4c68ebffeec05bde490ffcb2c947f396adc023da7b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cycls-0.0.2.20-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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.20-py3-none-any.whl
Algorithm Hash digest
SHA256 0b6996feeec0fa1b14b661eeb9c4c225c19b1b84476f1e6d5610fc240741391f
MD5 39601e4e3d9da9ba1778c59b1a4c8116
BLAKE2b-256 86f099f6b9d5d6fedb9d410d4e94bb551f18624c40249cc80c8691a74be303aa

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