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.0.tar.gz
(23.2 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.0.tar.gz.
File metadata
- Download URL: harnesslayer-0.1.0.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b20a310623b44dfb868ad21bb657bab8a0060b2b80f396a3452d0aab928825e
|
|
| MD5 |
af5d33d19efe89a1f171b7b4fa783ee2
|
|
| BLAKE2b-256 |
4059bb752f2f620bc30ea9f45cba32897c1a068bc2d2ddb003818635b7cc93bf
|
File details
Details for the file harnesslayer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: harnesslayer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 28.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e918d384cc5c948d96237ced25e31e46ef40f0b8828f38372b8f9f7740a956f7
|
|
| MD5 |
82a13d3a755051eb430af74202a1adbf
|
|
| BLAKE2b-256 |
863bf641fcccd184d752f5ed7be12e4255d95c8d974b687c2296885e8991570b
|