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
Release history Release notifications | RSS feed
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.1.tar.gz
(59.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file harnesslayer-0.3.1.tar.gz.
File metadata
- Download URL: harnesslayer-0.3.1.tar.gz
- Upload date:
- Size: 59.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0038294a8da9c25929a4b36dbda3c997b700ac1583338933e4d202ed5d417f86
|
|
| MD5 |
2cbe5af421190de8cecbea71074e63f6
|
|
| BLAKE2b-256 |
fede871dc545e8240f411ceb8db035d8a13d95364fbaadc8eaf30e02755bf31c
|
File details
Details for the file harnesslayer-0.3.1-py3-none-any.whl.
File metadata
- Download URL: harnesslayer-0.3.1-py3-none-any.whl
- Upload date:
- Size: 31.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdad88498de3461512ce92fe9a8e96599ff8a9ef0f7df791a2b8538219c51489
|
|
| MD5 |
85536445707d32690169853edc9f49b0
|
|
| BLAKE2b-256 |
8b9dbbbd6240f43d653c209f28fb491d80e4cc344f56ebe677368ead0a477bb8
|