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.4.tar.gz
(108.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.4.tar.gz.
File metadata
- Download URL: harnesslayer-1.1.4.tar.gz
- Upload date:
- Size: 108.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87ec1299f69040997aa604b67c726b206e5464c4d5e21051809f0c55f226b274
|
|
| MD5 |
79072c12a4d94ccec05993953557b2e7
|
|
| BLAKE2b-256 |
d0e70624e3a2246e40d48a491a2e4728a69e1cf0aedc680ad51dd39af32ddd2f
|
File details
Details for the file harnesslayer-1.1.4-py3-none-any.whl.
File metadata
- Download URL: harnesslayer-1.1.4-py3-none-any.whl
- Upload date:
- Size: 37.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22632f59c484d0a4986575c984adf60c9e7521c14d340072196760716f3add4e
|
|
| MD5 |
9bc85255a987fbeec13ef65975665615
|
|
| BLAKE2b-256 |
8a68e5e6a95ebae1ce5dc9187454978547fd7cd92846398249e11e5c62b7bf03
|