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

Uploaded Source

Built Distribution

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

harnesslayer-1.1.0-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for harnesslayer-1.1.0.tar.gz
Algorithm Hash digest
SHA256 09d8430eff0f765584c8df44ea5db269b2d53a437c1aae68f8c256d35ad065f3
MD5 d65ac1f795361af31e0e432f9a223b6b
BLAKE2b-256 ab93c585413d659eb22f1d00d61c2c04cf186a8eca401b1428c1a6eefc1a9670

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for harnesslayer-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 863e570798e52abb802159f8b3f4d908555e0457a2436e12a27d2fb2d20a5c2b
MD5 a54357753d68529129ddf89b8c669766
BLAKE2b-256 f52baed26a4e61d60007696135e8394c771d2f05d39b94abc9f5d96a71ed832b

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