Local Unix socket client
Control Herdr from Python.
A small, typed client for inspecting workspaces, driving panes and listening to events without adding runtime dependencies.
python -m pip install herdr-clientBuilt for local automation
Small surface. Useful everywhere.
-
One API, two styles
Use blocking methods in scripts or native
asynciomethods in services. Names, parameters and return types stay aligned. -
Typed, not restrictive
Results are ordinary dictionaries with schema-derived
TypedDictmodels, so callers keep familiar indexing and iteration. -
Local by default
Connect through an explicit socket, an environment variable or a named Herdr session with predictable resolution rules.
Start in seconds
Pick your style.
Both clients expose the same operations. Choose a tab and keep that choice across the rest of the documentation.
from herdr_client import HerdrClient
client = HerdrClient()
print(client.ping())
print(client.workspace_list())
import asyncio
from herdr_client import AsyncHerdrClient
async def main() -> None:
client = AsyncHerdrClient()
print(await client.ping())
print(await client.workspace_list())
asyncio.run(main())
Keep going
Find the right starting point.
-
New to herdr-client?
Install the package and make your first request.
-
Driving a pane?
Send input, read output and wait for a match.
-
Need the details?
Browse signatures, models, exceptions and protocol coverage.