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.0.0.tar.gz (136.5 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.0.0-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for harnesslayer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 aa20f26bea552bd56598ff128764b5d2ee498b089dbaaabb0b2a30e9086d70c1
MD5 b7878d3b28f099c1cc9daff3fded87f8
BLAKE2b-256 f33047cb1e1e45d3e01410eef72fb08efcccb612cb5b13eb796e0b60e450cbc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for harnesslayer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1076b50dbd24715f1cd1e6f520e6e631d050ee242600bd289ae6275621fc70c7
MD5 fb6eb4b15180693d60e64510e2edc291
BLAKE2b-256 a7affe7363307b6b85153e5050635755b1f5775364bc54f3a01647cb4ab53420

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