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-1.1.3.tar.gz
(117.7 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-1.1.3.tar.gz.
File metadata
- Download URL: harnesslayer-1.1.3.tar.gz
- Upload date:
- Size: 117.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cada843ee95b56617cd1c60dd6f25c87f2d0631beb64cb1a41487471de30eace
|
|
| MD5 |
baf631e3b3bdae1d92492ea202f3223c
|
|
| BLAKE2b-256 |
acf93883f7718073fc3a40481ac1b237761600cf7703769204dc8a9fe9ddf082
|
File details
Details for the file harnesslayer-1.1.3-py3-none-any.whl.
File metadata
- Download URL: harnesslayer-1.1.3-py3-none-any.whl
- Upload date:
- Size: 37.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
147f9cdbe865e1042ab951507b62ba03a41c2952931abc9f9210e07be35d75a8
|
|
| MD5 |
a5835b6fe27dcbdd0054ec79251c4f2b
|
|
| BLAKE2b-256 |
421154c480b54356730d8bc51c9a9e7242db2e478bc551715e872a9f1d9aeb02
|