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.6.tar.gz
(70.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.6.tar.gz.
File metadata
- Download URL: harnesslayer-0.3.6.tar.gz
- Upload date:
- Size: 70.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3253fa5d8fdb1cd28b552b4b262f93f564379082740501bf266aa9cefd0c25d
|
|
| MD5 |
d6050f68a57de7f149d402658b06464f
|
|
| BLAKE2b-256 |
99b82bb9a961780ce5596b1649718a8b6e662529e5f7030d9471bd3ee31bbc5f
|
File details
Details for the file harnesslayer-0.3.6-py3-none-any.whl.
File metadata
- Download URL: harnesslayer-0.3.6-py3-none-any.whl
- Upload date:
- Size: 34.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80a9c1b6627b02bc874c8d85446fa154d8af68bdb2413b21546d8634d3e9e076
|
|
| MD5 |
bf9b279d3048bc1076919f6e2dfeab46
|
|
| BLAKE2b-256 |
f9c8779a0400eae9c08b8b133b665a9db0d1d86d9c4b4065210bab789368698a
|