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.7.tar.gz
(70.4 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.7.tar.gz.
File metadata
- Download URL: harnesslayer-0.3.7.tar.gz
- Upload date:
- Size: 70.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d12b38b7a3e58bc4ec8c6ee3265957ea4bbe328832b35079b28d2a6e17d4670c
|
|
| MD5 |
0bbdd1d38896a64fc1d2892c0507bd1e
|
|
| BLAKE2b-256 |
127488d50faf39d84e9bce3ab4cc5233d798b0607907d223128d78809afd9add
|
File details
Details for the file harnesslayer-0.3.7-py3-none-any.whl.
File metadata
- Download URL: harnesslayer-0.3.7-py3-none-any.whl
- Upload date:
- Size: 34.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b2cb421f113d2cbe8df03aea7d789f68d281ca0ce20bf731a588e183a62e4a1
|
|
| MD5 |
e61320a9102ef4d5829d06f5bfb3dd1d
|
|
| BLAKE2b-256 |
ef19ec94e2ee5b115aed01647a1c3154b22772d5e42b9200883672950fe60303
|