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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

harnesslayer-0.2.1-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for harnesslayer-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7e408ffb8d41f3c8650f6189428185202e3a59523b5da0bd3dabacd763fe419b
MD5 3e37f3a3a96c334bb7a51e488eaabe28
BLAKE2b-256 14a365952f87536d343f7d2685cb31e04f51d1a94003832bdee3520cb719ac41

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