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.2.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.2.tar.gz.
File metadata
- Download URL: harnesslayer-1.1.2.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 |
d00cfc4484d9b9a084dea27d044ea6fe2c4d96d89075ef7cf68c8aacf7e7d421
|
|
| MD5 |
297ccb5543f03bb56f96007e00678659
|
|
| BLAKE2b-256 |
8bbaf298bb3c69bcf6ba681db7d1077f3b272323b257ce2df83a0afd478076a0
|
File details
Details for the file harnesslayer-1.1.2-py3-none-any.whl.
File metadata
- Download URL: harnesslayer-1.1.2-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 |
aeb4bb3bee43fc585d22f73dbc7a6df40e5b4b7d4745c44d4393118ab4573309
|
|
| MD5 |
02233f5dcb54478b518e0f91846b4092
|
|
| BLAKE2b-256 |
5433fe33e55168e782199f0738904768646433c470cedfe7c95657c5c002c7a6
|