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.5.tar.gz (108.6 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.5-py3-none-any.whl (37.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for harnesslayer-1.1.5.tar.gz
Algorithm Hash digest
SHA256 cdd625a711fc24aa9135e7ba6c08703a56cbeaed43b77ea06a50e54ac8e1b9ad
MD5 732d5fb8d908ef1cfa48b1d69569390c
BLAKE2b-256 d3bdd4bce72ed628f1e72e95e3625fefbcfebe1b5935ba84b3607715503390f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for harnesslayer-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1614c9d9aa1a2fa7b95e5efc2b1b78e184a46de18ff5c10123287de6e81b12c6
MD5 aa655ccc67da0cb2d84d6b4462fcf868
BLAKE2b-256 795fbc4be6d4b961d58c6da11b6b95e184cebe48502eb531ea58ab5ee281eaf3

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