Skip to main content

Cycls SDK

Project description



Cycls




pip install cycls

Apps ✦

Instantly publish and share AI apps

from cycls import Cycls

cycls = Cycls()

@cycls("@spark") # pick a unique handle name
def app(x):
    return x.content + "from spark"

cycls.push()

cycls.push() will then publish the app @spark-dev on cycls.com/@spark-dev in development mode. Make sure to pick a unique app name; Cycls maintains a global namespace for handles.

Async Apps

For performance, make the function asynchronous. The following is an async app with message history and session id

from cycls import Cycls

cycls = Cycls()

@cycls("@spark")
async def app(x):
    print(x.history, x.id)
    return x.content + "from spark"

cycls.push()

Agents ✧

Call any public app as an agent, see explore

from cycls import Cycls

cycls = Cycls()

@cycls("@spark")
async def app(x):
    return cycls.call("@groq",
                       x.content)

cycls.push()

Try it live

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

Uploaded Source

Built Distribution

cycls-0.0.2.23-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cycls-0.0.2.23.tar.gz
Algorithm Hash digest
SHA256 cd385be7ca9857fbc5efb5787cdcb61a6eab743fc52c9a049c143cb4a2fc7771
MD5 f2a1899fb3598e0fc8090bca66ea4750
BLAKE2b-256 6a0018108ca5a774631a6628e772fc1468bf679e25ae126b143d66e64a9e1b1b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cycls-0.0.2.23-py3-none-any.whl
Algorithm Hash digest
SHA256 0cd9e095d45e9f9e46eba356bbdb1044a3d80200146592454071772344ef281c
MD5 cd3f08de59063bb6e76d6535bae59910
BLAKE2b-256 af641153deb5921520542e98768e646ae6c7c198ff184f18c7dfb6fb1e838ba0

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