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.7.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.7.tar.gz.
File metadata
- Download URL: harnesslayer-1.1.7.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 |
9c6fcaaa07d9c0fd0843733d1fea504609b7eb640ceedece1f97b94ae76c9682
|
|
| MD5 |
35deb9c9af34444c6e256174213c9303
|
|
| BLAKE2b-256 |
8b8ee4a8f6373ea1e9cf76ee2d9dd4b9074f7168b46d48f356041de851618d2f
|
File details
Details for the file harnesslayer-1.1.7-py3-none-any.whl.
File metadata
- Download URL: harnesslayer-1.1.7-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 |
4e7ddfd3d15c682ab701b81343a5bff6c1509447fbac508f72470e9eb96198e9
|
|
| MD5 |
6716302a4e74d6c7976d74f01da01850
|
|
| BLAKE2b-256 |
55cbfa910ce4e267dba825de92754b62568fcadfaf2c2408fb1dfa3117a53bf6
|