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.6.tar.gz
(118.5 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.6.tar.gz.
File metadata
- Download URL: harnesslayer-1.1.6.tar.gz
- Upload date:
- Size: 118.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1892b0709906aa546297112818cf6233aa1d11120e5ff9ce7369db1fd167a2bd
|
|
| MD5 |
ebb12a4e816a1a22a7c6ecb2cb0cc272
|
|
| BLAKE2b-256 |
74a68e69bb1614b2b111f763686283c88db8dac1227b4e5c92f32ebf17cf1d5e
|
File details
Details for the file harnesslayer-1.1.6-py3-none-any.whl.
File metadata
- Download URL: harnesslayer-1.1.6-py3-none-any.whl
- Upload date:
- Size: 37.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4732301bf0e1e6516cda6ff6221eba8d6e3b69c54c17aa2013711e0d74494dd8
|
|
| MD5 |
0ccfcf850d9d8be9c2253122c187c21e
|
|
| BLAKE2b-256 |
522c1de873f213676ec38236e8e7d2d81eba679c1a1e2797857f4a56c5e7f357
|