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.3.8.tar.gz
(70.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-0.3.8.tar.gz.
File metadata
- Download URL: harnesslayer-0.3.8.tar.gz
- Upload date:
- Size: 70.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fee12964c26c26571a3188762055be6ca2ee5acbb88992017fc3c486c7a2c2f6
|
|
| MD5 |
8a1a7c7cda96d8cc8071d5077dc3f890
|
|
| BLAKE2b-256 |
654fa1fa321e5fdda1d68a9c09cbca1314bd3fce3343bec61b3279f6755f9ae2
|
File details
Details for the file harnesslayer-0.3.8-py3-none-any.whl.
File metadata
- Download URL: harnesslayer-0.3.8-py3-none-any.whl
- Upload date:
- Size: 34.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
072b293d1ee41ed5e61331e4894b276ac451c8a215ab9124a3041cfc55ffeb99
|
|
| MD5 |
a09f311c61f1aac8b263719a19cf9f8c
|
|
| BLAKE2b-256 |
d8f501beaa53b30522cc9ab23ecceaabecca6720db2481120865fcbbeee9b3fc
|