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.0.tar.gz (25.7 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.0-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for harnesslayer-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a13cb46f0d0c0e1a49eb7a8ca34e20666f01bf66ee81de950565a9e9c54f95a4
MD5 ffc88a3693a861b2a67072b384a37b92
BLAKE2b-256 b7354fb8074bd943f9288d5ffc4d7bddef0e819a92f267d5c0660bd3239001ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for harnesslayer-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 952f706dbcb7287299fa249243aa952a21248f244ddaacb91209117d6a43481d
MD5 53f00ff80d14b719fae9345d5526b731
BLAKE2b-256 dd9074e0917d7ab7545b15465eb6fad1fc733cc2ebde1c17ae5bb5bb22fa9126

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