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.0.0.tar.gz
(136.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.0.0.tar.gz.
File metadata
- Download URL: harnesslayer-1.0.0.tar.gz
- Upload date:
- Size: 136.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa20f26bea552bd56598ff128764b5d2ee498b089dbaaabb0b2a30e9086d70c1
|
|
| MD5 |
b7878d3b28f099c1cc9daff3fded87f8
|
|
| BLAKE2b-256 |
f33047cb1e1e45d3e01410eef72fb08efcccb612cb5b13eb796e0b60e450cbc0
|
File details
Details for the file harnesslayer-1.0.0-py3-none-any.whl.
File metadata
- Download URL: harnesslayer-1.0.0-py3-none-any.whl
- Upload date:
- Size: 34.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1076b50dbd24715f1cd1e6f520e6e631d050ee242600bd289ae6275621fc70c7
|
|
| MD5 |
fb6eb4b15180693d60e64510e2edc291
|
|
| BLAKE2b-256 |
a7affe7363307b6b85153e5050635755b1f5775364bc54f3a01647cb4ab53420
|