Skip to main content

Python SDK for the Harnesslayer API.

Project description

Harnesslayer - Python

Python SDK for the Harnesslayer API.

Install

pip install harnesslayer

Quick Start

from harnesslayer import Harnesslayer

client = Harnesslayer(api_key="your-api-key")

app = client.app.init("typedef-app", 
    type="claude", 
    version_path=".claude"
)

channel = app.channel.init("my-api", 
    type="api"
)

stream = channel.run(
    session_id="my-custom-session-id",
    user_id="stephen@pickaxe.co",
    input="hello world"
)

for event in stream:
    if event.done:
        break

    print(event)

Using A Context Manager

from harnesslayer import Harnesslayer

with Harnesslayer(api_key="your-api-key") as client:
    app = client.app.init("typedef-app", 
        type="claude", 
        version_path=".claude"
    )

    channel = app.channel.init("my-api", 
        type="api"
    )

    stream = channel.run(
        session_id="my-custom-session-id",
        user_id="stephen@pickaxe.co",
        input="hello world"
    )

    for event in stream:
        if event.done:
            break

        print(event)
    

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

harnesslayer-0.3.3.tar.gz (68.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

harnesslayer-0.3.3-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file harnesslayer-0.3.3.tar.gz.

File metadata

  • Download URL: harnesslayer-0.3.3.tar.gz
  • Upload date:
  • Size: 68.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.6

File hashes

Hashes for harnesslayer-0.3.3.tar.gz
Algorithm Hash digest
SHA256 5766719acc91e5a567730b68a56db025b2d3343a4f6d393b97bfee26285cecb7
MD5 0062387e00809ca3ef782d6af345967e
BLAKE2b-256 b2c577f24878ac5dd1367a9ad01892ead29f1f45313ae73badab8f8b2ea89a79

See more details on using hashes here.

File details

Details for the file harnesslayer-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for harnesslayer-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8b6bf1f9baa9657aba6bea1d3209f2d84edcefa8b0ce5cf87916f66adbe0ebf4
MD5 2e148acc42496d30a84c5d4339712cbc
BLAKE2b-256 de0b92b1a9a35e6074f3f6db09c76d58049228b81f2f249ad05ba3c767a13725

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page