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.2.tar.gz
(62.2 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.2.tar.gz.
File metadata
- Download URL: harnesslayer-0.3.2.tar.gz
- Upload date:
- Size: 62.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6de9f24320433f83de008647919cce86cb9f55ac9504d4de928c21d9f437a5b
|
|
| MD5 |
d12b9b83b4f08d74bd8655f63bb029e7
|
|
| BLAKE2b-256 |
b500bede9ea085df51f5b73a5f65d5e2f528816851393b5e64d7073fdb949e26
|
File details
Details for the file harnesslayer-0.3.2-py3-none-any.whl.
File metadata
- Download URL: harnesslayer-0.3.2-py3-none-any.whl
- Upload date:
- Size: 32.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a914c109630025023645b918d2a4eb4f1e98b8f161627181579607d54c91912
|
|
| MD5 |
c103826774223ddc72c2dac7a7214510
|
|
| BLAKE2b-256 |
947d6309168fe1a762ae52c474bfba35de08941b303b5faf06ba184b061806e1
|