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.1.1.tar.gz
(22.6 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.1.1.tar.gz.
File metadata
- Download URL: harnesslayer-0.1.1.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10856d1b7b3c6575f1dd2d78f32cada60f53d2069e7cfb8d974738bc31f0adf5
|
|
| MD5 |
89fe813b4d069b12dc1c56b156648f8f
|
|
| BLAKE2b-256 |
4c6f40a770ff34c1e7833659a40772f3e956e69d1c328116b2e5f515807e2dc7
|
File details
Details for the file harnesslayer-0.1.1-py3-none-any.whl.
File metadata
- Download URL: harnesslayer-0.1.1-py3-none-any.whl
- Upload date:
- Size: 28.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bcd286a35d08fadf44feda92089a08791b7881e6834316c2546e846f874964b
|
|
| MD5 |
7979135c1259d25d44e6311b19ef1636
|
|
| BLAKE2b-256 |
8555d3452deb55ece232f5aa74e3f2982e7fa8fa15930750d3b2fd801c05c29b
|