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.1.tar.gz (138.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-1.1.1-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for harnesslayer-1.1.1.tar.gz
Algorithm Hash digest
SHA256 88237283ebb0d120b0128f2625f2b3398e319d6726ecfc51d31445e4003cb374
MD5 89bb10bd51455fae974e96726cf92207
BLAKE2b-256 37b9f88727a9df3d4ed7a5eb5929e75807a8157657e50a454aa1f506169b8f4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for harnesslayer-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b7a4f060975322be2d8cf64b4fe37049b95130b1cdfe072617f1fc2b5b33901c
MD5 81c524b59a1d782ceeea44826e5fa053
BLAKE2b-256 171fd7866fe190bfc0d3c3c05327577441a2dacb0b2191e018ce10e2e77a4716

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