Skip to content

Python SDK reference

Package identity and language-specific details for dotcraft. For how-to, start with the Quickstart.

Package

Packagedotcraft (PyPI)
Compatibility aliasdotcraft_wire (re-exports the wire client, transports, and channel adapter)
Runtime baselinePython 3.10+, asyncio-native
Dependencieswebsockets
bash
pip install dotcraft

Public surface

GroupSymbols
High-level clientDotCraft, Thread, ThreadManager, RunResult, RunEvent, LocalOptions, RemoteOptions
Wire clientDotCraftClient, JsonRpcMessage
TransportsTransport, StdioTransport, WebSocketTransport
HubHubClient, HubLockInfo, HubError
App BindingAppBindingManager, AppBindingHandoff, app_binding_tool_error, APP_BINDING_ERROR_CODES
Channel adapterChannelAdapter
Input partstext_part, image_url_part, local_image_part, skill_ref_part, command_ref_part, file_ref_part
ErrorsDotCraftError, TurnInProgressError, TurnFailedError, TurnCancelledError, ThreadNotFoundError, …

DotCraft.connect_local / connect_remote return the high-level client; the low-level DotCraftClient and transports remain available for advanced use.

Validation

bash
cd sdk/python
python -m pytest

See also

Apache License 2.0