halkit 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- halkit-0.1.0/.gitignore +24 -0
- halkit-0.1.0/CHANGELOG.md +33 -0
- halkit-0.1.0/LICENSE +202 -0
- halkit-0.1.0/PKG-INFO +261 -0
- halkit-0.1.0/README.md +147 -0
- halkit-0.1.0/examples/plant-waterer/README.md +67 -0
- halkit-0.1.0/examples/plant-waterer/TEST-PLAN.md +239 -0
- halkit-0.1.0/examples/plant-waterer/mock/plant-waterer.hal.yaml +29 -0
- halkit-0.1.0/examples/plant-waterer/plant-waterer.hal.yaml +28 -0
- halkit-0.1.0/examples/plant-waterer/plant-waterer.ino +64 -0
- halkit-0.1.0/examples/print-babysitter/README.md +66 -0
- halkit-0.1.0/examples/print-babysitter/frames/come-loose.jpg +0 -0
- halkit-0.1.0/examples/print-babysitter/frames/first-layer.jpg +0 -0
- halkit-0.1.0/examples/print-babysitter/printer-cam.hal.yaml +10 -0
- halkit-0.1.0/examples/print-babysitter/printer.hal.yaml +36 -0
- halkit-0.1.0/library/README.md +118 -0
- halkit-0.1.0/library/alpaca/sky-watcher-eq6-r-pro.hal.yaml +47 -0
- halkit-0.1.0/library/ble/polar-h10.hal.yaml +16 -0
- halkit-0.1.0/library/ble/xiaomi-lywsd03mmc-pvvx.hal.yaml +17 -0
- halkit-0.1.0/library/ble/xiaomi-lywsd03mmc.hal.yaml +29 -0
- halkit-0.1.0/library/esphome/apollo-air-1.hal.yaml +25 -0
- halkit-0.1.0/library/esphome/apollo-msr-2.hal.yaml +24 -0
- halkit-0.1.0/library/esphome/athom-smart-plug-v2.hal.yaml +23 -0
- halkit-0.1.0/library/homeassistant/shelly-dimmer-gen3.hal.yaml +30 -0
- halkit-0.1.0/library/homeassistant/shelly-plus-plug-s.hal.yaml +31 -0
- halkit-0.1.0/library/marlin/prusa-mini.hal.yaml +38 -0
- halkit-0.1.0/library/marlin/prusa-mk3s.hal.yaml +44 -0
- halkit-0.1.0/library/marlin/prusa-mk4.hal.yaml +38 -0
- halkit-0.1.0/library/midi/akai-lpd8.hal.yaml +31 -0
- halkit-0.1.0/library/midi/korg-nanokontrol2.hal.yaml +39 -0
- halkit-0.1.0/library/modbus/eastron-sdm120.hal.yaml +27 -0
- halkit-0.1.0/library/modbus/eastron-sdm630.hal.yaml +33 -0
- halkit-0.1.0/library/moonraker/ratrig-v-core-4.hal.yaml +41 -0
- halkit-0.1.0/library/moonraker/sovol-sv08.hal.yaml +41 -0
- halkit-0.1.0/library/mqtt/shelly-ht-gen3.hal.yaml +29 -0
- halkit-0.1.0/library/openhal_firmware/openhal-desk-fan.hal.yaml +19 -0
- halkit-0.1.0/library/openhal_firmware/openhal-led-strip.hal.yaml +19 -0
- halkit-0.1.0/library/openhal_firmware/openhal-plant-waterer.hal.yaml +32 -0
- halkit-0.1.0/library/openhal_firmware/openhal-servo-arm.hal.yaml +18 -0
- halkit-0.1.0/library/openhal_firmware/openhal-soil-pump.hal.yaml +25 -0
- halkit-0.1.0/library/rpi_camera/raspberry-pi-camera-module-3.hal.yaml +16 -0
- halkit-0.1.0/library/rpi_camera/raspberry-pi-hq-camera.hal.yaml +17 -0
- halkit-0.1.0/library/rpi_gpio/pimoroni-fan-shim.hal.yaml +19 -0
- halkit-0.1.0/library/rpi_gpio/waveshare-rpi-relay-board.hal.yaml +19 -0
- halkit-0.1.0/library/scpi/keysight-34461a.hal.yaml +19 -0
- halkit-0.1.0/library/scpi/rigol-dp832.hal.yaml +56 -0
- halkit-0.1.0/library/scpi/rigol-ds1054z.hal.yaml +36 -0
- halkit-0.1.0/library/scpi/siglent-sdm3045x.hal.yaml +19 -0
- halkit-0.1.0/library/scpi/siglent-spd3303x.hal.yaml +54 -0
- halkit-0.1.0/library/serial/mettler-toledo-ms-ts.hal.yaml +30 -0
- halkit-0.1.0/library/serial/new-era-ne-500.hal.yaml +94 -0
- halkit-0.1.0/openhal/__init__.py +23 -0
- halkit-0.1.0/openhal/_brand.py +36 -0
- halkit-0.1.0/openhal/audit/__init__.py +7 -0
- halkit-0.1.0/openhal/audit/log.py +236 -0
- halkit-0.1.0/openhal/cli/__init__.py +1 -0
- halkit-0.1.0/openhal/cli/_choices.py +153 -0
- halkit-0.1.0/openhal/cli/_common.py +225 -0
- halkit-0.1.0/openhal/cli/_interview.py +112 -0
- halkit-0.1.0/openhal/cli/_live.py +90 -0
- halkit-0.1.0/openhal/cli/_overview.py +150 -0
- halkit-0.1.0/openhal/cli/_pick.py +128 -0
- halkit-0.1.0/openhal/cli/_targets.py +189 -0
- halkit-0.1.0/openhal/cli/_tty.py +66 -0
- halkit-0.1.0/openhal/cli/confirm_cmd.py +176 -0
- halkit-0.1.0/openhal/cli/control_cmd.py +237 -0
- halkit-0.1.0/openhal/cli/demo_cmd.py +87 -0
- halkit-0.1.0/openhal/cli/doctor_cmd.py +136 -0
- halkit-0.1.0/openhal/cli/driver_cmd.py +188 -0
- halkit-0.1.0/openhal/cli/file_cmd.py +114 -0
- halkit-0.1.0/openhal/cli/file_confirm_cmd.py +112 -0
- halkit-0.1.0/openhal/cli/hub_cmd.py +153 -0
- halkit-0.1.0/openhal/cli/init_cmd.py +480 -0
- halkit-0.1.0/openhal/cli/library_cmd.py +332 -0
- halkit-0.1.0/openhal/cli/limits_cmd.py +352 -0
- halkit-0.1.0/openhal/cli/log_cmd.py +88 -0
- halkit-0.1.0/openhal/cli/main.py +92 -0
- halkit-0.1.0/openhal/cli/mcp_cmd.py +27 -0
- halkit-0.1.0/openhal/cli/risk_cmd.py +247 -0
- halkit-0.1.0/openhal/cli/routine_cmd.py +296 -0
- halkit-0.1.0/openhal/cli/rpc_cmd.py +67 -0
- halkit-0.1.0/openhal/cli/runs_cmd.py +161 -0
- halkit-0.1.0/openhal/cli/service_cmd.py +122 -0
- halkit-0.1.0/openhal/cli/start_cmd.py +18 -0
- halkit-0.1.0/openhal/cli/templates/driver/__init__.py.tmpl +4 -0
- halkit-0.1.0/openhal/cli/templates/driver/catalog.json.tmpl +14 -0
- halkit-0.1.0/openhal/cli/templates/driver/conformance.py.tmpl +55 -0
- halkit-0.1.0/openhal/cli/templates/driver/doc.md.tmpl +35 -0
- halkit-0.1.0/openhal/cli/templates/driver/driver.py.tmpl +77 -0
- halkit-0.1.0/openhal/cli/templates/driver/example.hal.yaml.tmpl +9 -0
- halkit-0.1.0/openhal/cli/templates/driver/hardware-test.md.tmpl +18 -0
- halkit-0.1.0/openhal/cli/templates/driver/simulator.py.tmpl +22 -0
- halkit-0.1.0/openhal/cli/templates/driver/test.py.tmpl +33 -0
- halkit-0.1.0/openhal/cli/token_cmd.py +207 -0
- halkit-0.1.0/openhal/cli/writer_cmd.py +214 -0
- halkit-0.1.0/openhal/client/__init__.py +83 -0
- halkit-0.1.0/openhal/client/aio.py +428 -0
- halkit-0.1.0/openhal/client/calls.py +410 -0
- halkit-0.1.0/openhal/client/errors.py +51 -0
- halkit-0.1.0/openhal/client/models.py +617 -0
- halkit-0.1.0/openhal/client/ramp.py +91 -0
- halkit-0.1.0/openhal/client/settings.py +94 -0
- halkit-0.1.0/openhal/client/sync.py +393 -0
- halkit-0.1.0/openhal/client/transport.py +111 -0
- halkit-0.1.0/openhal/conformance/__init__.py +7 -0
- halkit-0.1.0/openhal/conformance/suite.py +368 -0
- halkit-0.1.0/openhal/demo/__init__.py +1 -0
- halkit-0.1.0/openhal/demo/e2e.py +376 -0
- halkit-0.1.0/openhal/demo/e2e_trace.py +113 -0
- halkit-0.1.0/openhal/demo/frames.py +148 -0
- halkit-0.1.0/openhal/demo/general.py +193 -0
- halkit-0.1.0/openhal/demo/plant.py +28 -0
- halkit-0.1.0/openhal/demo/readme.py +55 -0
- halkit-0.1.0/openhal/demo/rig.py +192 -0
- halkit-0.1.0/openhal/demo/scenario.py +764 -0
- halkit-0.1.0/openhal/demo/trace.py +152 -0
- halkit-0.1.0/openhal/demo/webcam.py +53 -0
- halkit-0.1.0/openhal/drivers/__init__.py +1 -0
- halkit-0.1.0/openhal/drivers/alpaca/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/alpaca/catalog.json +26 -0
- halkit-0.1.0/openhal/drivers/alpaca/channels.py +250 -0
- halkit-0.1.0/openhal/drivers/alpaca/client.py +140 -0
- halkit-0.1.0/openhal/drivers/alpaca/conformance.py +57 -0
- halkit-0.1.0/openhal/drivers/alpaca/describe.py +138 -0
- halkit-0.1.0/openhal/drivers/alpaca/discovery.py +55 -0
- halkit-0.1.0/openhal/drivers/alpaca/driver.py +389 -0
- halkit-0.1.0/openhal/drivers/alpaca/examples/eq-mount.hal.yaml +39 -0
- halkit-0.1.0/openhal/drivers/alpaca/sim_devices.py +485 -0
- halkit-0.1.0/openhal/drivers/alpaca/simulator.py +165 -0
- halkit-0.1.0/openhal/drivers/bambu/__init__.py +6 -0
- halkit-0.1.0/openhal/drivers/bambu/catalog.json +19 -0
- halkit-0.1.0/openhal/drivers/bambu/conformance.py +83 -0
- halkit-0.1.0/openhal/drivers/bambu/driver.py +523 -0
- halkit-0.1.0/openhal/drivers/bambu/examples/p1s-lan.hal.yaml +34 -0
- halkit-0.1.0/openhal/drivers/bambu/protocol.py +196 -0
- halkit-0.1.0/openhal/drivers/bambu/simulator.py +258 -0
- halkit-0.1.0/openhal/drivers/base.py +192 -0
- halkit-0.1.0/openhal/drivers/ble/__init__.py +6 -0
- halkit-0.1.0/openhal/drivers/ble/catalog.json +20 -0
- halkit-0.1.0/openhal/drivers/ble/codec.py +130 -0
- halkit-0.1.0/openhal/drivers/ble/conformance.py +62 -0
- halkit-0.1.0/openhal/drivers/ble/driver.py +492 -0
- halkit-0.1.0/openhal/drivers/ble/examples/environment-sensor.hal.yaml +15 -0
- halkit-0.1.0/openhal/drivers/ble/simulator.py +277 -0
- halkit-0.1.0/openhal/drivers/can/__init__.py +6 -0
- halkit-0.1.0/openhal/drivers/can/bits.py +185 -0
- halkit-0.1.0/openhal/drivers/can/catalog.json +19 -0
- halkit-0.1.0/openhal/drivers/can/conformance.py +83 -0
- halkit-0.1.0/openhal/drivers/can/driver.py +447 -0
- halkit-0.1.0/openhal/drivers/can/examples/vesc-motor-controller.hal.yaml +37 -0
- halkit-0.1.0/openhal/drivers/can/simulator.py +145 -0
- halkit-0.1.0/openhal/drivers/catalog.py +101 -0
- halkit-0.1.0/openhal/drivers/esphome/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/esphome/catalog.json +21 -0
- halkit-0.1.0/openhal/drivers/esphome/conformance.py +56 -0
- halkit-0.1.0/openhal/drivers/esphome/driver.py +518 -0
- halkit-0.1.0/openhal/drivers/esphome/examples/plant-waterer.hal.yaml +30 -0
- halkit-0.1.0/openhal/drivers/esphome/simulator.py +333 -0
- halkit-0.1.0/openhal/drivers/firmata/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/firmata/catalog.json +18 -0
- halkit-0.1.0/openhal/drivers/firmata/conformance.py +59 -0
- halkit-0.1.0/openhal/drivers/firmata/driver.py +579 -0
- halkit-0.1.0/openhal/drivers/firmata/examples/uno-desk-kit.hal.yaml +29 -0
- halkit-0.1.0/openhal/drivers/firmata/protocol.py +176 -0
- halkit-0.1.0/openhal/drivers/firmata/simulator.py +216 -0
- halkit-0.1.0/openhal/drivers/grbl/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/grbl/catalog.json +25 -0
- halkit-0.1.0/openhal/drivers/grbl/channels.py +236 -0
- halkit-0.1.0/openhal/drivers/grbl/conformance.py +62 -0
- halkit-0.1.0/openhal/drivers/grbl/driver.py +482 -0
- halkit-0.1.0/openhal/drivers/grbl/examples/3018-router.hal.yaml +53 -0
- halkit-0.1.0/openhal/drivers/grbl/protocol.py +240 -0
- halkit-0.1.0/openhal/drivers/grbl/session.py +229 -0
- halkit-0.1.0/openhal/drivers/grbl/simulator.py +480 -0
- halkit-0.1.0/openhal/drivers/hid/__init__.py +6 -0
- halkit-0.1.0/openhal/drivers/hid/catalog.json +20 -0
- halkit-0.1.0/openhal/drivers/hid/conformance.py +61 -0
- halkit-0.1.0/openhal/drivers/hid/descriptor.py +208 -0
- halkit-0.1.0/openhal/drivers/hid/driver.py +485 -0
- halkit-0.1.0/openhal/drivers/hid/examples/diy-macropad.hal.yaml +24 -0
- halkit-0.1.0/openhal/drivers/hid/simulator.py +216 -0
- halkit-0.1.0/openhal/drivers/homeassistant/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/homeassistant/catalog.json +25 -0
- halkit-0.1.0/openhal/drivers/homeassistant/conformance.py +63 -0
- halkit-0.1.0/openhal/drivers/homeassistant/driver.py +690 -0
- halkit-0.1.0/openhal/drivers/homeassistant/examples/office-climate.hal.yaml +31 -0
- halkit-0.1.0/openhal/drivers/homeassistant/simulator.py +300 -0
- halkit-0.1.0/openhal/drivers/http/__init__.py +6 -0
- halkit-0.1.0/openhal/drivers/http/catalog.json +20 -0
- halkit-0.1.0/openhal/drivers/http/conformance.py +69 -0
- halkit-0.1.0/openhal/drivers/http/driver.py +425 -0
- halkit-0.1.0/openhal/drivers/http/examples/smart-plug.hal.yaml +36 -0
- halkit-0.1.0/openhal/drivers/http/openapi.py +201 -0
- halkit-0.1.0/openhal/drivers/http/simulator.py +189 -0
- halkit-0.1.0/openhal/drivers/http/values.py +199 -0
- halkit-0.1.0/openhal/drivers/indi/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/indi/catalog.json +25 -0
- halkit-0.1.0/openhal/drivers/indi/channels.py +155 -0
- halkit-0.1.0/openhal/drivers/indi/conformance.py +70 -0
- halkit-0.1.0/openhal/drivers/indi/describe.py +79 -0
- halkit-0.1.0/openhal/drivers/indi/driver.py +426 -0
- halkit-0.1.0/openhal/drivers/indi/examples/eq6-mount.hal.yaml +39 -0
- halkit-0.1.0/openhal/drivers/indi/protocol.py +236 -0
- halkit-0.1.0/openhal/drivers/indi/session.py +184 -0
- halkit-0.1.0/openhal/drivers/indi/simulator.py +516 -0
- halkit-0.1.0/openhal/drivers/knx/__init__.py +6 -0
- halkit-0.1.0/openhal/drivers/knx/catalog.json +18 -0
- halkit-0.1.0/openhal/drivers/knx/conformance.py +56 -0
- halkit-0.1.0/openhal/drivers/knx/driver.py +415 -0
- halkit-0.1.0/openhal/drivers/knx/examples/living-room.hal.yaml +36 -0
- halkit-0.1.0/openhal/drivers/knx/simulator.py +265 -0
- halkit-0.1.0/openhal/drivers/lerobot/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/lerobot/catalog.json +24 -0
- halkit-0.1.0/openhal/drivers/lerobot/conformance.py +52 -0
- halkit-0.1.0/openhal/drivers/lerobot/driver.py +456 -0
- halkit-0.1.0/openhal/drivers/lerobot/examples/so101-follower.hal.yaml +36 -0
- halkit-0.1.0/openhal/drivers/lerobot/simulator.py +210 -0
- halkit-0.1.0/openhal/drivers/marlin/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/marlin/catalog.json +19 -0
- halkit-0.1.0/openhal/drivers/marlin/conformance.py +62 -0
- halkit-0.1.0/openhal/drivers/marlin/driver.py +621 -0
- halkit-0.1.0/openhal/drivers/marlin/examples/ender-3-v2.hal.yaml +44 -0
- halkit-0.1.0/openhal/drivers/marlin/simulator.py +257 -0
- halkit-0.1.0/openhal/drivers/matter/__init__.py +6 -0
- halkit-0.1.0/openhal/drivers/matter/api.py +196 -0
- halkit-0.1.0/openhal/drivers/matter/catalog.json +18 -0
- halkit-0.1.0/openhal/drivers/matter/clusters.py +106 -0
- halkit-0.1.0/openhal/drivers/matter/conformance.py +91 -0
- halkit-0.1.0/openhal/drivers/matter/driver.py +414 -0
- halkit-0.1.0/openhal/drivers/matter/examples/eve-energy-plug.hal.yaml +21 -0
- halkit-0.1.0/openhal/drivers/matter/simulator.py +244 -0
- halkit-0.1.0/openhal/drivers/micromanager/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/micromanager/catalog.json +24 -0
- halkit-0.1.0/openhal/drivers/micromanager/channels.py +296 -0
- halkit-0.1.0/openhal/drivers/micromanager/conformance.py +67 -0
- halkit-0.1.0/openhal/drivers/micromanager/describe.py +133 -0
- halkit-0.1.0/openhal/drivers/micromanager/driver.py +563 -0
- halkit-0.1.0/openhal/drivers/micromanager/examples/inverted-microscope.hal.yaml +34 -0
- halkit-0.1.0/openhal/drivers/micromanager/examples/simulated-microscope.hal.yaml +43 -0
- halkit-0.1.0/openhal/drivers/micromanager/frames.py +79 -0
- halkit-0.1.0/openhal/drivers/micromanager/simulator.py +508 -0
- halkit-0.1.0/openhal/drivers/micromanager/slide.jpg +0 -0
- halkit-0.1.0/openhal/drivers/midi/__init__.py +6 -0
- halkit-0.1.0/openhal/drivers/midi/catalog.json +19 -0
- halkit-0.1.0/openhal/drivers/midi/conformance.py +48 -0
- halkit-0.1.0/openhal/drivers/midi/driver.py +388 -0
- halkit-0.1.0/openhal/drivers/midi/examples/lpd8-pads.hal.yaml +19 -0
- halkit-0.1.0/openhal/drivers/midi/simulator.py +132 -0
- halkit-0.1.0/openhal/drivers/mock/__init__.py +10 -0
- halkit-0.1.0/openhal/drivers/mock/catalog.json +14 -0
- halkit-0.1.0/openhal/drivers/mock/conformance.py +38 -0
- halkit-0.1.0/openhal/drivers/mock/driver.py +180 -0
- halkit-0.1.0/openhal/drivers/modbus/__init__.py +6 -0
- halkit-0.1.0/openhal/drivers/modbus/catalog.json +19 -0
- halkit-0.1.0/openhal/drivers/modbus/conformance.py +70 -0
- halkit-0.1.0/openhal/drivers/modbus/driver.py +445 -0
- halkit-0.1.0/openhal/drivers/modbus/examples/sdm120-energy-meter.hal.yaml +23 -0
- halkit-0.1.0/openhal/drivers/modbus/simulator.py +226 -0
- halkit-0.1.0/openhal/drivers/moonraker/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/moonraker/catalog.json +19 -0
- halkit-0.1.0/openhal/drivers/moonraker/conformance.py +57 -0
- halkit-0.1.0/openhal/drivers/moonraker/driver.py +624 -0
- halkit-0.1.0/openhal/drivers/moonraker/examples/voron-2-4.hal.yaml +41 -0
- halkit-0.1.0/openhal/drivers/moonraker/simulator.py +378 -0
- halkit-0.1.0/openhal/drivers/mqtt/__init__.py +6 -0
- halkit-0.1.0/openhal/drivers/mqtt/catalog.json +20 -0
- halkit-0.1.0/openhal/drivers/mqtt/conformance.py +78 -0
- halkit-0.1.0/openhal/drivers/mqtt/driver.py +523 -0
- halkit-0.1.0/openhal/drivers/mqtt/examples/tasmota-plug.hal.yaml +33 -0
- halkit-0.1.0/openhal/drivers/mqtt/simulator.py +363 -0
- halkit-0.1.0/openhal/drivers/mujoco/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/mujoco/camera.py +98 -0
- halkit-0.1.0/openhal/drivers/mujoco/catalog.json +24 -0
- halkit-0.1.0/openhal/drivers/mujoco/conformance.py +108 -0
- halkit-0.1.0/openhal/drivers/mujoco/driver.py +556 -0
- halkit-0.1.0/openhal/drivers/mujoco/maps.py +285 -0
- halkit-0.1.0/openhal/drivers/mujoco/simulator.py +414 -0
- halkit-0.1.0/openhal/drivers/octoprint/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/octoprint/catalog.json +18 -0
- halkit-0.1.0/openhal/drivers/octoprint/conformance.py +66 -0
- halkit-0.1.0/openhal/drivers/octoprint/driver.py +415 -0
- halkit-0.1.0/openhal/drivers/octoprint/examples/prusa-mk3s-octopi.hal.yaml +35 -0
- halkit-0.1.0/openhal/drivers/octoprint/simulator.py +184 -0
- halkit-0.1.0/openhal/drivers/onvif/__init__.py +6 -0
- halkit-0.1.0/openhal/drivers/onvif/catalog.json +18 -0
- halkit-0.1.0/openhal/drivers/onvif/conformance.py +66 -0
- halkit-0.1.0/openhal/drivers/onvif/discovery.py +87 -0
- halkit-0.1.0/openhal/drivers/onvif/driver.py +441 -0
- halkit-0.1.0/openhal/drivers/onvif/examples/ptz-camera.hal.yaml +37 -0
- halkit-0.1.0/openhal/drivers/onvif/maps.py +96 -0
- halkit-0.1.0/openhal/drivers/onvif/simulator.py +267 -0
- halkit-0.1.0/openhal/drivers/onvif/soap.py +165 -0
- halkit-0.1.0/openhal/drivers/opcua/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/opcua/catalog.json +25 -0
- halkit-0.1.0/openhal/drivers/opcua/channels.py +81 -0
- halkit-0.1.0/openhal/drivers/opcua/conformance.py +63 -0
- halkit-0.1.0/openhal/drivers/opcua/describe.py +131 -0
- halkit-0.1.0/openhal/drivers/opcua/driver.py +420 -0
- halkit-0.1.0/openhal/drivers/opcua/examples/dosing-pump.hal.yaml +41 -0
- halkit-0.1.0/openhal/drivers/opcua/simulator.py +244 -0
- halkit-0.1.0/openhal/drivers/opcua/units.py +92 -0
- halkit-0.1.0/openhal/drivers/openhal_firmware/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/openhal_firmware/catalog.json +14 -0
- halkit-0.1.0/openhal/drivers/openhal_firmware/conformance.py +58 -0
- halkit-0.1.0/openhal/drivers/openhal_firmware/driver.py +497 -0
- halkit-0.1.0/openhal/drivers/openhal_firmware/protocol.py +245 -0
- halkit-0.1.0/openhal/drivers/openhal_firmware/simulator.py +503 -0
- halkit-0.1.0/openhal/drivers/pi_i2c_spi/__init__.py +6 -0
- halkit-0.1.0/openhal/drivers/pi_i2c_spi/catalog.json +19 -0
- halkit-0.1.0/openhal/drivers/pi_i2c_spi/conformance.py +68 -0
- halkit-0.1.0/openhal/drivers/pi_i2c_spi/driver.py +463 -0
- halkit-0.1.0/openhal/drivers/pi_i2c_spi/examples/mcp3008-adc.hal.yaml +24 -0
- halkit-0.1.0/openhal/drivers/pi_i2c_spi/examples/mcp4921-dac.hal.yaml +25 -0
- halkit-0.1.0/openhal/drivers/pi_i2c_spi/examples/tmp102-temperature.hal.yaml +48 -0
- halkit-0.1.0/openhal/drivers/pi_i2c_spi/simulator.py +241 -0
- halkit-0.1.0/openhal/drivers/pylabrobot/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/pylabrobot/catalog.json +24 -0
- halkit-0.1.0/openhal/drivers/pylabrobot/conformance.py +44 -0
- halkit-0.1.0/openhal/drivers/pylabrobot/deck.py +117 -0
- halkit-0.1.0/openhal/drivers/pylabrobot/driver.py +460 -0
- halkit-0.1.0/openhal/drivers/pylabrobot/examples/starlet.hal.yaml +46 -0
- halkit-0.1.0/openhal/drivers/pylabrobot/simulator.py +79 -0
- halkit-0.1.0/openhal/drivers/registry.py +103 -0
- halkit-0.1.0/openhal/drivers/ros2/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/ros2/bridge.py +236 -0
- halkit-0.1.0/openhal/drivers/ros2/catalog.json +25 -0
- halkit-0.1.0/openhal/drivers/ros2/channels.py +145 -0
- halkit-0.1.0/openhal/drivers/ros2/conformance.py +72 -0
- halkit-0.1.0/openhal/drivers/ros2/describe.py +134 -0
- halkit-0.1.0/openhal/drivers/ros2/driver.py +308 -0
- halkit-0.1.0/openhal/drivers/ros2/examples/turtlebot4.hal.yaml +50 -0
- halkit-0.1.0/openhal/drivers/ros2/simulator.py +339 -0
- halkit-0.1.0/openhal/drivers/rpi_camera/__init__.py +6 -0
- halkit-0.1.0/openhal/drivers/rpi_camera/catalog.json +19 -0
- halkit-0.1.0/openhal/drivers/rpi_camera/conformance.py +51 -0
- halkit-0.1.0/openhal/drivers/rpi_camera/driver.py +320 -0
- halkit-0.1.0/openhal/drivers/rpi_camera/examples/camera-module-3.hal.yaml +12 -0
- halkit-0.1.0/openhal/drivers/rpi_camera/simulator.py +177 -0
- halkit-0.1.0/openhal/drivers/rpi_gpio/__init__.py +10 -0
- halkit-0.1.0/openhal/drivers/rpi_gpio/catalog.json +19 -0
- halkit-0.1.0/openhal/drivers/rpi_gpio/conformance.py +48 -0
- halkit-0.1.0/openhal/drivers/rpi_gpio/driver.py +377 -0
- halkit-0.1.0/openhal/drivers/rpi_gpio/examples/greenhouse-vent.hal.yaml +29 -0
- halkit-0.1.0/openhal/drivers/rpi_gpio/simulator.py +33 -0
- halkit-0.1.0/openhal/drivers/rpi_gpio/stop_button.py +71 -0
- halkit-0.1.0/openhal/drivers/scpi/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/scpi/catalog.json +18 -0
- halkit-0.1.0/openhal/drivers/scpi/conformance.py +58 -0
- halkit-0.1.0/openhal/drivers/scpi/driver.py +489 -0
- halkit-0.1.0/openhal/drivers/scpi/examples/rigol-dp832.hal.yaml +30 -0
- halkit-0.1.0/openhal/drivers/scpi/examples/simulated-scope.hal.yaml +41 -0
- halkit-0.1.0/openhal/drivers/scpi/families.py +242 -0
- halkit-0.1.0/openhal/drivers/scpi/scope.py +441 -0
- halkit-0.1.0/openhal/drivers/scpi/screen.py +180 -0
- halkit-0.1.0/openhal/drivers/scpi/simulator.py +299 -0
- halkit-0.1.0/openhal/drivers/seabreeze/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/seabreeze/catalog.json +24 -0
- halkit-0.1.0/openhal/drivers/seabreeze/channels.py +154 -0
- halkit-0.1.0/openhal/drivers/seabreeze/conformance.py +53 -0
- halkit-0.1.0/openhal/drivers/seabreeze/driver.py +360 -0
- halkit-0.1.0/openhal/drivers/seabreeze/examples/absorbance-spectrometer.hal.yaml +22 -0
- halkit-0.1.0/openhal/drivers/seabreeze/plot.py +88 -0
- halkit-0.1.0/openhal/drivers/seabreeze/simulator.py +144 -0
- halkit-0.1.0/openhal/drivers/serial/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/serial/catalog.json +22 -0
- halkit-0.1.0/openhal/drivers/serial/conformance.py +69 -0
- halkit-0.1.0/openhal/drivers/serial/driver.py +414 -0
- halkit-0.1.0/openhal/drivers/serial/examples/arduino-fan-board.hal.yaml +48 -0
- halkit-0.1.0/openhal/drivers/serial/link.py +250 -0
- halkit-0.1.0/openhal/drivers/serial/mapping.py +247 -0
- halkit-0.1.0/openhal/drivers/serial/simulator.py +262 -0
- halkit-0.1.0/openhal/drivers/sila2/__init__.py +4 -0
- halkit-0.1.0/openhal/drivers/sila2/bootstrap.py +67 -0
- halkit-0.1.0/openhal/drivers/sila2/catalog.json +25 -0
- halkit-0.1.0/openhal/drivers/sila2/channels.py +98 -0
- halkit-0.1.0/openhal/drivers/sila2/conformance.py +72 -0
- halkit-0.1.0/openhal/drivers/sila2/describe.py +94 -0
- halkit-0.1.0/openhal/drivers/sila2/driver.py +509 -0
- halkit-0.1.0/openhal/drivers/sila2/examples/thermoshaker.hal.yaml +49 -0
- halkit-0.1.0/openhal/drivers/sila2/simulator.py +267 -0
- halkit-0.1.0/openhal/drivers/upnp/__init__.py +6 -0
- halkit-0.1.0/openhal/drivers/upnp/catalog.json +17 -0
- halkit-0.1.0/openhal/drivers/upnp/conformance.py +76 -0
- halkit-0.1.0/openhal/drivers/upnp/driver.py +468 -0
- halkit-0.1.0/openhal/drivers/upnp/examples/sonos-speaker.hal.yaml +39 -0
- halkit-0.1.0/openhal/drivers/upnp/proposals.py +90 -0
- halkit-0.1.0/openhal/drivers/upnp/simulator.py +253 -0
- halkit-0.1.0/openhal/drivers/uvc/__init__.py +6 -0
- halkit-0.1.0/openhal/drivers/uvc/catalog.json +19 -0
- halkit-0.1.0/openhal/drivers/uvc/conformance.py +49 -0
- halkit-0.1.0/openhal/drivers/uvc/driver.py +283 -0
- halkit-0.1.0/openhal/drivers/uvc/examples/bench-webcam.hal.yaml +13 -0
- halkit-0.1.0/openhal/drivers/uvc/simulator.py +120 -0
- halkit-0.1.0/openhal/drivers/zigbee_zwave/__init__.py +6 -0
- halkit-0.1.0/openhal/drivers/zigbee_zwave/catalog.json +19 -0
- halkit-0.1.0/openhal/drivers/zigbee_zwave/common.py +194 -0
- halkit-0.1.0/openhal/drivers/zigbee_zwave/conformance.py +100 -0
- halkit-0.1.0/openhal/drivers/zigbee_zwave/driver.py +242 -0
- halkit-0.1.0/openhal/drivers/zigbee_zwave/examples/ikea-bulb-zigbee2mqtt.hal.yaml +21 -0
- halkit-0.1.0/openhal/drivers/zigbee_zwave/examples/zooz-plug-zwave.hal.yaml +21 -0
- halkit-0.1.0/openhal/drivers/zigbee_zwave/simulator.py +480 -0
- halkit-0.1.0/openhal/drivers/zigbee_zwave/zigbee.py +347 -0
- halkit-0.1.0/openhal/drivers/zigbee_zwave/zwave.py +331 -0
- halkit-0.1.0/openhal/hub/__init__.py +1 -0
- halkit-0.1.0/openhal/hub/api.py +922 -0
- halkit-0.1.0/openhal/hub/config.py +144 -0
- halkit-0.1.0/openhal/hub/daemon.py +105 -0
- halkit-0.1.0/openhal/hub/discovery.py +182 -0
- halkit-0.1.0/openhal/hub/find.py +196 -0
- halkit-0.1.0/openhal/hub/hub.py +436 -0
- halkit-0.1.0/openhal/hub/limits.py +598 -0
- halkit-0.1.0/openhal/hub/locks.py +41 -0
- halkit-0.1.0/openhal/hub/openapi.py +33 -0
- halkit-0.1.0/openhal/hub/risk.py +265 -0
- halkit-0.1.0/openhal/hub/runs.py +759 -0
- halkit-0.1.0/openhal/hub/static/assets/Audit-Chp9tvBV.js +1 -0
- halkit-0.1.0/openhal/hub/static/assets/Audit-DNWJGNhq.css +1 -0
- halkit-0.1.0/openhal/hub/static/assets/Confirmations-B6XYnI_A.css +1 -0
- halkit-0.1.0/openhal/hub/static/assets/Confirmations-BKT5tBBs.js +2 -0
- halkit-0.1.0/openhal/hub/static/assets/Icon-BSbJ5ku_.js +1 -0
- halkit-0.1.0/openhal/hub/static/assets/Pair-BRatw9FI.js +1 -0
- halkit-0.1.0/openhal/hub/static/assets/Pair-CDWnAf5B.css +1 -0
- halkit-0.1.0/openhal/hub/static/assets/Routines-BKe0gZyo.css +1 -0
- halkit-0.1.0/openhal/hub/static/assets/Routines-DB5keoaT.js +2 -0
- halkit-0.1.0/openhal/hub/static/assets/SelectField-CV-KWLNP.css +1 -0
- halkit-0.1.0/openhal/hub/static/assets/SelectField-CeKORD-g.js +1 -0
- halkit-0.1.0/openhal/hub/static/assets/Settings-BkFpZ2uW.js +4 -0
- halkit-0.1.0/openhal/hub/static/assets/Settings-DZYhHV_8.css +1 -0
- halkit-0.1.0/openhal/hub/static/assets/StatusMark-BR1YIlzp.js +1 -0
- halkit-0.1.0/openhal/hub/static/assets/StatusMark-pCHxbQIs.css +1 -0
- halkit-0.1.0/openhal/hub/static/assets/Writer--nchIQt2.js +4 -0
- halkit-0.1.0/openhal/hub/static/assets/Writer-pqY5M3ZF.css +1 -0
- halkit-0.1.0/openhal/hub/static/assets/button-hizpAgWx.js +6 -0
- halkit-0.1.0/openhal/hub/static/assets/favicon-CWcghvX3.svg +1 -0
- halkit-0.1.0/openhal/hub/static/assets/ibm-plex-mono-latin-400-italic-BqAiT5Ww.woff2 +0 -0
- halkit-0.1.0/openhal/hub/static/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
- halkit-0.1.0/openhal/hub/static/assets/ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2 +0 -0
- halkit-0.1.0/openhal/hub/static/assets/ibm-plex-mono-latin-700-normal-7sUh57Bg.woff2 +0 -0
- halkit-0.1.0/openhal/hub/static/assets/ibm-plex-sans-latin-wght-italic-DKUSOBgV.woff2 +0 -0
- halkit-0.1.0/openhal/hub/static/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2 +0 -0
- halkit-0.1.0/openhal/hub/static/assets/index-CwkE6kWq.js +7 -0
- halkit-0.1.0/openhal/hub/static/assets/index-ZKyiZ_b5.css +2 -0
- halkit-0.1.0/openhal/hub/static/assets/label-Ba8RoJ6h.js +1 -0
- halkit-0.1.0/openhal/hub/static/assets/table-DKxd1rfX.js +1 -0
- halkit-0.1.0/openhal/hub/static/assets/trace-Cty006yI.js +2 -0
- halkit-0.1.0/openhal/hub/static/index.html +29 -0
- halkit-0.1.0/openhal/hub/tokens.py +150 -0
- halkit-0.1.0/openhal/hub/views.py +264 -0
- halkit-0.1.0/openhal/images.py +98 -0
- halkit-0.1.0/openhal/kernel/__init__.py +41 -0
- halkit-0.1.0/openhal/kernel/checks.py +210 -0
- halkit-0.1.0/openhal/kernel/commands.py +89 -0
- halkit-0.1.0/openhal/kernel/confirmations.py +113 -0
- halkit-0.1.0/openhal/kernel/grants.py +114 -0
- halkit-0.1.0/openhal/kernel/kernel.py +1511 -0
- halkit-0.1.0/openhal/kernel/principals.py +50 -0
- halkit-0.1.0/openhal/kernel/runtime.py +104 -0
- halkit-0.1.0/openhal/mcp/__init__.py +8 -0
- halkit-0.1.0/openhal/mcp/errors.py +168 -0
- halkit-0.1.0/openhal/mcp/prompts.py +63 -0
- halkit-0.1.0/openhal/mcp/server.py +175 -0
- halkit-0.1.0/openhal/mcp/tools.py +811 -0
- halkit-0.1.0/openhal/protocol/__init__.py +5 -0
- halkit-0.1.0/openhal/protocol/client.py +86 -0
- halkit-0.1.0/openhal/protocol/convert.py +521 -0
- halkit-0.1.0/openhal/protocol/dispatch.py +437 -0
- halkit-0.1.0/openhal/protocol/errors.py +366 -0
- halkit-0.1.0/openhal/protocol/log.py +92 -0
- halkit-0.1.0/openhal/protocol/messages.py +630 -0
- halkit-0.1.0/openhal/protocol/notify.py +148 -0
- halkit-0.1.0/openhal/protocol/schema.py +179 -0
- halkit-0.1.0/openhal/protocol/session.py +122 -0
- halkit-0.1.0/openhal/protocol/stdio.py +105 -0
- halkit-0.1.0/openhal/protocol/version.py +51 -0
- halkit-0.1.0/openhal/protocol/websocket.py +99 -0
- halkit-0.1.0/openhal/routines/__init__.py +1 -0
- halkit-0.1.0/openhal/routines/engine.py +764 -0
- halkit-0.1.0/openhal/routines/models.py +180 -0
- halkit-0.1.0/openhal/service/__init__.py +5 -0
- halkit-0.1.0/openhal/service/background.py +205 -0
- halkit-0.1.0/openhal/service/clients.py +185 -0
- halkit-0.1.0/openhal/service/devices.py +239 -0
- halkit-0.1.0/openhal/service/runner.py +82 -0
- halkit-0.1.0/openhal/service/skills/openhal/SKILL.md +33 -0
- halkit-0.1.0/openhal/spec/__init__.py +8 -0
- halkit-0.1.0/openhal/spec/expressions.py +391 -0
- halkit-0.1.0/openhal/spec/loader.py +169 -0
- halkit-0.1.0/openhal/spec/models.py +790 -0
- halkit-0.1.0/openhal/spec/risk.py +562 -0
- halkit-0.1.0/openhal/spec/schema.py +38 -0
- halkit-0.1.0/openhal/spec/units.py +226 -0
- halkit-0.1.0/openhal/writer/__init__.py +0 -0
- halkit-0.1.0/openhal/writer/engine.py +560 -0
- halkit-0.1.0/openhal/writer/interview.py +793 -0
- halkit-0.1.0/openhal/writer/manual.py +203 -0
- halkit-0.1.0/openhal/writer/plan.py +146 -0
- halkit-0.1.0/openhal/writer/sketch.py +365 -0
- halkit-0.1.0/pyproject.toml +150 -0
halkit-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.venv/
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.pyc
|
|
4
|
+
.pytest_cache/
|
|
5
|
+
.mypy_cache/
|
|
6
|
+
.ruff_cache/
|
|
7
|
+
.coverage
|
|
8
|
+
htmlcov/
|
|
9
|
+
dist/
|
|
10
|
+
build/
|
|
11
|
+
node_modules/
|
|
12
|
+
.DS_Store
|
|
13
|
+
.hypothesis/
|
|
14
|
+
dashboard/dist/
|
|
15
|
+
website/dist/
|
|
16
|
+
website/.astro/
|
|
17
|
+
.claude/
|
|
18
|
+
.cache/
|
|
19
|
+
|
|
20
|
+
/docs/design-rounds/
|
|
21
|
+
|
|
22
|
+
/qa/
|
|
23
|
+
|
|
24
|
+
/video/
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Every notable change to OpenHAL is listed here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). The package version is MAJOR.MINOR.PATCH, and the specification and the hub protocol carry MAJOR.MINOR, as [ADR 0017](docs/adr/0017-version-numbers.md) sets out.
|
|
4
|
+
|
|
5
|
+
## [Unreleased]
|
|
6
|
+
|
|
7
|
+
## [0.1.0] - 2026-11-05
|
|
8
|
+
|
|
9
|
+
The first release. Every driver is tested on a simulator, and none is tested on real hardware yet.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Specification v0.1, with the device file format (`.hal.yaml`), the hub protocol over JSON-RPC, the error registry and a conformance suite for drivers.
|
|
14
|
+
- The safety kernel. Every write and action goes through the kernel, which checks units, limits, rate of change, interlocks, watchdogs, scope and confirmation before a driver acts. A driver acts only on a single-use grant for that exact command.
|
|
15
|
+
- Risk levels. Each channel and action is low, medium or high risk. Low and medium targets take commands within the device's own range, and a high risk target stays read-only until a person confirms its limits.
|
|
16
|
+
- One stop puts every device in its safe state, and every decision goes into a hash-chained audit log.
|
|
17
|
+
- Each change that runs records the first 12 hex digits of its grant and the commands the driver sent to the device in the audit log.
|
|
18
|
+
- The hub, with a REST API, the hub protocol over WebSocket and over stdio with `openhal rpc`, and an MCP server with 36 tools through `openhal mcp`.
|
|
19
|
+
- The `openhal` command line. `openhal init` sets up the config folder, tokens, devices, MCP clients and the background service, and `openhal start` runs the hub.
|
|
20
|
+
- `openhal demo`, an agent babysitting a 3D print on a simulated Klipper printer and camera, with no hardware and no API key. `openhal demo --full` runs the whole system with a simulated plant waterer.
|
|
21
|
+
- 36 hardware drivers, from serial, Firmata and the OpenHAL Arduino library to Klipper, OctoPrint, SCPI instruments, Home Assistant, ESPHome, MQTT, Modbus, ROS 2, OPC UA, research microscopes through Micro-Manager and Ocean spectrometers through python-seabreeze. Each driver passes the conformance suite against a simulator, and none is verified on real hardware yet.
|
|
22
|
+
- A MuJoCo driver that runs any MuJoCo model as a simulated device.
|
|
23
|
+
- The OpenHAL Arduino library, which describes a board to the hub and offers each free pin as a channel.
|
|
24
|
+
- A device library of 35 device files. Every file is unverified until a person checks the file's limits.
|
|
25
|
+
- The Inspector, a browser dashboard for devices, held requests, limits and the audit log.
|
|
26
|
+
- The driver writer, which drafts a device file for an unknown device, and routines and runs for timed steps.
|
|
27
|
+
- The Python client, `openhal.connect` and `openhal.aconnect`.
|
|
28
|
+
- One-line installers for macOS, Linux and Windows, a Raspberry Pi install script, and a background service with launchd on macOS and systemd on Linux.
|
|
29
|
+
- The `halkit` command, the same CLI as `openhal`, so `uvx halkit demo` and `pipx run halkit demo` run with no clone.
|
|
30
|
+
- The `/openhal` command for Claude Code. `openhal init` saves the command when init adds OpenHAL to Claude Code, and the Claude Code plugin ships the same command. A bare `/openhal` checks the connection and shows what the agent may do on each device.
|
|
31
|
+
|
|
32
|
+
[Unreleased]: https://github.com/sohan-bhat/OpenHAL/compare/v0.1.0...HEAD
|
|
33
|
+
[0.1.0]: https://github.com/sohan-bhat/OpenHAL/releases/tag/v0.1.0
|
halkit-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
halkit-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: halkit
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: An open-source protocol for AI agents to control hardware.
|
|
5
|
+
Author: OpenHAL contributors
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Classifier: Development Status :: 3 - Alpha
|
|
9
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
14
|
+
Classifier: Topic :: System :: Hardware
|
|
15
|
+
Requires-Python: >=3.12
|
|
16
|
+
Requires-Dist: fastapi>=0.115
|
|
17
|
+
Requires-Dist: httpx>=0.28
|
|
18
|
+
Requires-Dist: mcp>=2.3
|
|
19
|
+
Requires-Dist: pint>=0.24
|
|
20
|
+
Requires-Dist: portalocker>=3.1
|
|
21
|
+
Requires-Dist: prompt-toolkit>=3.0.52
|
|
22
|
+
Requires-Dist: pydantic>=2.9
|
|
23
|
+
Requires-Dist: pyyaml>=6.0.2
|
|
24
|
+
Requires-Dist: questionary>=2.1.1
|
|
25
|
+
Requires-Dist: regex>=2024.11
|
|
26
|
+
Requires-Dist: rich>=13.9
|
|
27
|
+
Requires-Dist: typer>=0.15
|
|
28
|
+
Requires-Dist: uvicorn>=0.32
|
|
29
|
+
Requires-Dist: websockets>=13
|
|
30
|
+
Requires-Dist: zeroconf>=0.136
|
|
31
|
+
Provides-Extra: alpaca
|
|
32
|
+
Requires-Dist: httpx>=0.28.1; extra == 'alpaca'
|
|
33
|
+
Provides-Extra: bambu
|
|
34
|
+
Requires-Dist: paho-mqtt>=2.1.0; extra == 'bambu'
|
|
35
|
+
Provides-Extra: ble
|
|
36
|
+
Requires-Dist: bleak>=3.0.2; extra == 'ble'
|
|
37
|
+
Provides-Extra: can
|
|
38
|
+
Requires-Dist: python-can>=4.6.1; extra == 'can'
|
|
39
|
+
Provides-Extra: esphome
|
|
40
|
+
Requires-Dist: aioesphomeapi>=46; extra == 'esphome'
|
|
41
|
+
Provides-Extra: firmata
|
|
42
|
+
Requires-Dist: pyserial>=3.5; extra == 'firmata'
|
|
43
|
+
Provides-Extra: grbl
|
|
44
|
+
Requires-Dist: pyserial>=3.5; extra == 'grbl'
|
|
45
|
+
Provides-Extra: hid
|
|
46
|
+
Requires-Dist: hidapi>=0.15.0; extra == 'hid'
|
|
47
|
+
Provides-Extra: homeassistant
|
|
48
|
+
Requires-Dist: httpx>=0.28; extra == 'homeassistant'
|
|
49
|
+
Requires-Dist: websockets>=13; extra == 'homeassistant'
|
|
50
|
+
Provides-Extra: http
|
|
51
|
+
Requires-Dist: httpx>=0.28.1; extra == 'http'
|
|
52
|
+
Provides-Extra: hub
|
|
53
|
+
Provides-Extra: knx
|
|
54
|
+
Requires-Dist: xknx>=4.0.0; extra == 'knx'
|
|
55
|
+
Provides-Extra: marlin
|
|
56
|
+
Requires-Dist: pyserial>=3.5; extra == 'marlin'
|
|
57
|
+
Provides-Extra: matter
|
|
58
|
+
Requires-Dist: websockets>=13; extra == 'matter'
|
|
59
|
+
Provides-Extra: micromanager
|
|
60
|
+
Requires-Dist: pillow>=12.0; extra == 'micromanager'
|
|
61
|
+
Requires-Dist: pymmcore-plus>=0.18.1; extra == 'micromanager'
|
|
62
|
+
Provides-Extra: midi
|
|
63
|
+
Requires-Dist: mido>=1.3.3; extra == 'midi'
|
|
64
|
+
Requires-Dist: python-rtmidi>=1.5.8; extra == 'midi'
|
|
65
|
+
Provides-Extra: modbus
|
|
66
|
+
Requires-Dist: pymodbus[serial]>=3.16.1; extra == 'modbus'
|
|
67
|
+
Provides-Extra: moonraker
|
|
68
|
+
Requires-Dist: httpx>=0.28; extra == 'moonraker'
|
|
69
|
+
Requires-Dist: websockets>=13; extra == 'moonraker'
|
|
70
|
+
Provides-Extra: mqtt
|
|
71
|
+
Requires-Dist: paho-mqtt>=2.1.0; extra == 'mqtt'
|
|
72
|
+
Provides-Extra: mujoco
|
|
73
|
+
Requires-Dist: mujoco<3.11,>=3.3; (sys_platform == 'darwin' and platform_machine == 'x86_64') and extra == 'mujoco'
|
|
74
|
+
Requires-Dist: mujoco>=3.3; (sys_platform != 'darwin' or platform_machine != 'x86_64') and extra == 'mujoco'
|
|
75
|
+
Provides-Extra: octoprint
|
|
76
|
+
Requires-Dist: httpx>=0.28; extra == 'octoprint'
|
|
77
|
+
Provides-Extra: onvif
|
|
78
|
+
Requires-Dist: defusedxml>=0.7.1; extra == 'onvif'
|
|
79
|
+
Requires-Dist: httpx>=0.28.1; extra == 'onvif'
|
|
80
|
+
Provides-Extra: opcua
|
|
81
|
+
Requires-Dist: asyncua>=2.1.0; extra == 'opcua'
|
|
82
|
+
Provides-Extra: openhal-firmware
|
|
83
|
+
Requires-Dist: pyserial>=3.5; extra == 'openhal-firmware'
|
|
84
|
+
Provides-Extra: pi-i2c-spi
|
|
85
|
+
Requires-Dist: smbus2>=0.6.1; extra == 'pi-i2c-spi'
|
|
86
|
+
Requires-Dist: spidev>=3.8; (sys_platform == 'linux') and extra == 'pi-i2c-spi'
|
|
87
|
+
Provides-Extra: pylabrobot
|
|
88
|
+
Requires-Dist: pylabrobot>=0.2.2; extra == 'pylabrobot'
|
|
89
|
+
Provides-Extra: ros2
|
|
90
|
+
Requires-Dist: websockets>=13; extra == 'ros2'
|
|
91
|
+
Provides-Extra: rpi-camera
|
|
92
|
+
Provides-Extra: rpi-gpio
|
|
93
|
+
Requires-Dist: gpiozero>=2.0.1; extra == 'rpi-gpio'
|
|
94
|
+
Provides-Extra: scpi
|
|
95
|
+
Requires-Dist: pyserial>=3.5; extra == 'scpi'
|
|
96
|
+
Requires-Dist: pyusb>=1.3; extra == 'scpi'
|
|
97
|
+
Requires-Dist: pyvisa-py>=0.8; extra == 'scpi'
|
|
98
|
+
Requires-Dist: pyvisa>=1.16; extra == 'scpi'
|
|
99
|
+
Provides-Extra: seabreeze
|
|
100
|
+
Requires-Dist: pillow>=12.0; extra == 'seabreeze'
|
|
101
|
+
Requires-Dist: seabreeze[pyseabreeze]>=2.11.0; extra == 'seabreeze'
|
|
102
|
+
Provides-Extra: serial
|
|
103
|
+
Requires-Dist: pyserial>=3.5; extra == 'serial'
|
|
104
|
+
Provides-Extra: sila2
|
|
105
|
+
Requires-Dist: sila2>=0.14.0; extra == 'sila2'
|
|
106
|
+
Provides-Extra: upnp
|
|
107
|
+
Requires-Dist: async-upnp-client>=0.49.0; extra == 'upnp'
|
|
108
|
+
Provides-Extra: uvc
|
|
109
|
+
Requires-Dist: opencv-python-headless>=5.0.0.93; extra == 'uvc'
|
|
110
|
+
Provides-Extra: zigbee-zwave
|
|
111
|
+
Requires-Dist: paho-mqtt>=2.1.0; extra == 'zigbee-zwave'
|
|
112
|
+
Requires-Dist: websockets>=13; extra == 'zigbee-zwave'
|
|
113
|
+
Description-Content-Type: text/markdown
|
|
114
|
+
|
|
115
|
+
<picture>
|
|
116
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/wordmark-dark.svg">
|
|
117
|
+
<img alt="OpenHAL" src="docs/assets/wordmark-light.svg" height="44">
|
|
118
|
+
</picture>
|
|
119
|
+
|
|
120
|
+
An open-source protocol for AI agents to control hardware.
|
|
121
|
+
|
|
122
|
+
[](LICENSE) [](https://github.com/sohan-bhat/OpenHAL/actions/workflows/ci.yml)
|
|
123
|
+
|
|
124
|
+
<!-- demo-gif:start -->
|
|
125
|
+
<!-- demo-gif:end -->
|
|
126
|
+
|
|
127
|
+
<picture>
|
|
128
|
+
<source media="(max-width: 600px) and (prefers-color-scheme: dark)" srcset="docs/diagrams/flow-narrow-dark.svg">
|
|
129
|
+
<source media="(max-width: 600px)" srcset="docs/diagrams/flow-narrow-light.svg">
|
|
130
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/diagrams/flow-dark.svg">
|
|
131
|
+
<img src="docs/diagrams/flow-light.svg" width="900" alt="OpenHAL flow. An agent sends hal/write to the hub. The safety kernel checks the command against the device file's limits. An allowed command gets a grant and goes through the driver to the 3D printer, and the reading comes back to the agent. Because the nozzle limit is 260 °C, a request for a nozzle temperature of 300 °C is blocked with LIMIT_EXCEEDED.">
|
|
132
|
+
</picture>
|
|
133
|
+
|
|
134
|
+
## Install
|
|
135
|
+
|
|
136
|
+
<!-- install:start -->
|
|
137
|
+
On macOS and Linux, run this command in a terminal.
|
|
138
|
+
|
|
139
|
+
```text
|
|
140
|
+
curl -LsSf https://sohanbhat.me/OpenHAL/install.sh | sh
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
On Windows, run this command in PowerShell.
|
|
144
|
+
|
|
145
|
+
```text
|
|
146
|
+
irm https://sohanbhat.me/OpenHAL/install.ps1 | iex
|
|
147
|
+
```
|
|
148
|
+
<!-- install:end -->
|
|
149
|
+
|
|
150
|
+
<!-- demo:start -->
|
|
151
|
+
Then run the demo. The demo uses simulated devices, so nothing touches real hardware.
|
|
152
|
+
|
|
153
|
+
```text
|
|
154
|
+
openhal demo
|
|
155
|
+
```
|
|
156
|
+
<!-- demo:end -->
|
|
157
|
+
|
|
158
|
+
<!-- outcome:start -->
|
|
159
|
+
You'll see the agent raise the bed target from 60 °C to 70 °C, have a request for a nozzle temperature of 300 °C blocked at the nozzle limit of 260 °C and pause the print when the camera shows the print has come loose. The owner then approves the cancel, and the printer's state becomes cancelled.
|
|
160
|
+
<!-- outcome:end -->
|
|
161
|
+
|
|
162
|
+
OpenHAL runs on Python 3.12 or newer. [The install guide](docs/guide/install.md) covers uv, pipx, a clone, the background service and Raspberry Pi.
|
|
163
|
+
|
|
164
|
+
## Why OpenHAL
|
|
165
|
+
|
|
166
|
+
Agents usually reach each printer or lab instrument through a script or MCP server made for that one device, with the limits in that server's code. OpenHAL is a universal driver specification instead. Agents discover, integrate and control lab and manufacturing equipment through one standard set of commands such as `read` and `write`, and every command is checked against the device's limits.
|
|
167
|
+
|
|
168
|
+
## How it works
|
|
169
|
+
|
|
170
|
+
- A `.hal.yaml` device file lists a device's channels and actions, with units and limits.
|
|
171
|
+
- The safety kernel checks range, rate, interlocks and confirmation before a driver acts. A command outside the limits is blocked with an error such as `LIMIT_EXCEEDED`.
|
|
172
|
+
- One driver covers a device family, such as SCPI for bench instruments.
|
|
173
|
+
- Agents connect over MCP, the CLI or the Python client, and the protocol is JSON-RPC 2.0 over WebSocket and stdio.
|
|
174
|
+
|
|
175
|
+
## Safety model
|
|
176
|
+
|
|
177
|
+
- Every channel and action has a risk level of low, medium or high. A device file's `hazard` sets the minimum level for every channel and action on the device.
|
|
178
|
+
- High risk channels and actions stay read-only until a person confirms the limits. An agent's proposal never counts as a confirmation.
|
|
179
|
+
- Low and medium channels and actions take commands within the device's own range. Only a person lowers a level, with `openhal risk set`.
|
|
180
|
+
- Each hardware change needs a single-use grant for that exact command.
|
|
181
|
+
- A stale or missing reading blocks the command.
|
|
182
|
+
- One stop puts every device in a safe state until a person lifts the stop.
|
|
183
|
+
- Every decision goes into a hash-chained audit log.
|
|
184
|
+
|
|
185
|
+
[docs/SAFETY.md](docs/SAFETY.md) has the details.
|
|
186
|
+
|
|
187
|
+
## Supported devices
|
|
188
|
+
|
|
189
|
+
OpenHAL has 36 drivers. Every driver passes the conformance suite on a simulator, and none is verified on real hardware yet. No driver covers clinical or patient-connected medical devices. To test a device you own, follow [the hardware test plans](docs/hardware-tests/README.md). [The device library](library/README.md) lists the bundled device files.
|
|
190
|
+
|
|
191
|
+
<details>
|
|
192
|
+
<summary>All 36 drivers</summary>
|
|
193
|
+
|
|
194
|
+
<!-- devices:start -->
|
|
195
|
+
| Driver | Devices covered | Status | Usual hazard |
|
|
196
|
+
|---|---|---|---|
|
|
197
|
+
| `ble` | environmental sensors, battery powered sensors, BLE LED and relay boards | tested on simulator | low |
|
|
198
|
+
| `esphome` | ESP32, ESP8266, RP2040 and BK72xx boards running ESPHome, sensors, switches, lights, fans, numbers, selects and buttons defined in ESPHome YAML | tested on simulator | low |
|
|
199
|
+
| `firmata` | Arduino AVR boards, Arduino-compatible clones, Teensy | tested on simulator | low |
|
|
200
|
+
| `hid` | macropads and button boxes, knobs and jog wheels, foot switches | tested on simulator | low |
|
|
201
|
+
| `homeassistant` | lights, switches and smart plugs, fans | tested on simulator | low |
|
|
202
|
+
| `http` | smart plugs and relays, networked sensors, lab and bench gadgets with REST APIs | tested on simulator | medium |
|
|
203
|
+
| `marlin` | FDM 3D printers, pen plotters and other Marlin machines | tested on simulator | medium |
|
|
204
|
+
| `midi` | pad and knob controllers, keyboards, synthesizers | tested on simulator | low |
|
|
205
|
+
| `modbus` | energy and power meters, PLCs, variable frequency drives | tested on simulator | medium |
|
|
206
|
+
| `moonraker` | Klipper 3D printers (Voron, RatRig, Creality K1 and Sonic Pad, Sovol SV08, Elegoo Neptune 4, Qidi) | tested on simulator | medium |
|
|
207
|
+
| `mqtt` | Tasmota devices, Zigbee2MQTT bridged devices, ESPHome and Shelly devices with MQTT enabled | tested on simulator | medium |
|
|
208
|
+
| `octoprint` | 3D printers connected to OctoPrint (Marlin, Prusa, RepRapFirmware and Klipper with the OctoPrint connector) | tested on simulator | medium |
|
|
209
|
+
| `openhal-firmware` | Arduino boards, ESP32 boards, maker projects that run the OpenHAL library | tested on simulator | low |
|
|
210
|
+
| `rpi-camera` | Raspberry Pi Camera Module 1, 2 and 3, Raspberry Pi High Quality and Global Shutter cameras, Raspberry Pi AI Camera | tested on simulator | low |
|
|
211
|
+
| `rpi-gpio` | relays and relay boards, LEDs, buttons, reed switches and limit switches | tested on simulator | low |
|
|
212
|
+
| `scpi` | bench power supplies, multimeters, oscilloscopes | tested on simulator | medium |
|
|
213
|
+
| `serial` | Arduino and other microcontroller sketches, bench instruments with ASCII command sets, sensor modules with text output | tested on simulator | medium |
|
|
214
|
+
| `uvc` | USB webcams, USB microscopes, HDMI to USB capture cards | tested on simulator | low |
|
|
215
|
+
| `alpaca` | telescope mounts, focusers, cameras and power boxes, observatory domes | tested on simulator | medium |
|
|
216
|
+
| `grbl` | desktop CNC routers, diode and CO2 laser engravers, pen plotters | tested on simulator | high |
|
|
217
|
+
| `indi` | telescope mounts, focusers, astronomy cameras | tested on simulator | medium |
|
|
218
|
+
| `lerobot` | SO-100 and SO-101 arms, Koch and OMX arms, other LeRobot arms with joint goals | tested on simulator | high |
|
|
219
|
+
| `micromanager` | research microscopes from Nikon, Zeiss, Olympus and Leica, scientific cameras from Hamamatsu, Andor, Photometrics and PCO, stages, focus drives, filter wheels, shutters and light sources from ASI, Prior, Ludl, Sutter, Lumencor and CoolLED | tested on simulator | medium |
|
|
220
|
+
| `onvif` | ONVIF IP cameras, ONVIF PTZ cameras, network video recorders with ONVIF | tested on simulator | low |
|
|
221
|
+
| `opcua` | PLCs with an OPC UA server, LADS lab instruments, process equipment and gateways | tested on simulator | medium |
|
|
222
|
+
| `pylabrobot` | Hamilton STAR and STARlet, Tecan Freedom EVO, Opentrons OT-2 | tested on simulator | high |
|
|
223
|
+
| `ros2` | ROS 2 mobile robots, ROS 2 arms, any ROS 2 graph with rosbridge | tested on simulator | high |
|
|
224
|
+
| `seabreeze` | Ocean Insight and Ocean Optics USB spectrometers (USB2000+, USB4000, Flame), Ocean HR, QE Pro and Maya spectrometers, Ocean STS and SPARK spectrometers | tested on simulator | low |
|
|
225
|
+
| `sila2` | SiLA 2 lab devices, SiLA 2 gateways, custom SiLA 2 servers | tested on simulator | medium |
|
|
226
|
+
| `bambu` | Bambu Lab X1 series, Bambu Lab P1 series, Bambu Lab A1 and A1 mini | tested on simulator | medium |
|
|
227
|
+
| `can` | motor controllers (VESC, ODrive, CubeMars), battery management systems, CAN sensor and IO nodes | tested on simulator | medium |
|
|
228
|
+
| `knx` | KNX switch and dimmer actuators, KNX blind actuators, KNX room thermostats | tested on simulator | low |
|
|
229
|
+
| `matter` | Matter lights and plugs, Matter sensors, Matter thermostats and fans | tested on simulator | low |
|
|
230
|
+
| `pi-i2c-spi` | I2C temperature and humidity sensors, SPI and I2C ADCs, SPI and I2C DACs | tested on simulator | low |
|
|
231
|
+
| `upnp` | UPnP AV media renderers and speakers, smart TVs with DLNA rendering, internet gateways (IGD) | tested on simulator | low |
|
|
232
|
+
| `zigbee-zwave` | Zigbee lights, plugs and sensors, Z-Wave switches, dimmers and plugs, Z-Wave multisensors | tested on simulator | low |
|
|
233
|
+
<!-- devices:end -->
|
|
234
|
+
|
|
235
|
+
</details>
|
|
236
|
+
|
|
237
|
+
## Connect Claude or another MCP client
|
|
238
|
+
|
|
239
|
+
`openhal init` sets up the hub, makes a token and offers to add OpenHAL to Claude Desktop, Claude Code and Cursor. The setup for every client is printed either way.
|
|
240
|
+
|
|
241
|
+
```text
|
|
242
|
+
openhal init
|
|
243
|
+
openhal start
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
Any other MCP client runs `openhal mcp` over stdio with a separate agent token, as [the MCP guide](docs/interfaces/MCP.md) shows. [Connect Claude](docs/guide/tutorials/connect-claude.md) covers the manual setup.
|
|
247
|
+
|
|
248
|
+
## Docs and specification
|
|
249
|
+
|
|
250
|
+
- [Documentation](https://sohanbhat.me/OpenHAL/docs/)
|
|
251
|
+
- [Specification](https://sohanbhat.me/OpenHAL/spec/), also in [spec/](spec/SPEC.md)
|
|
252
|
+
- [The demo step by step](docs/QUICKSTART.md), with the simulated [printer and camera](examples/print-babysitter/)
|
|
253
|
+
- [Mapping to Anthropic's MHS](spec/MHS-MAPPING.md). OpenHAL is not affiliated with Anthropic or the Model Hardware Standard.
|
|
254
|
+
|
|
255
|
+
## Contributing
|
|
256
|
+
|
|
257
|
+
Drivers, device files, hardware test reports and docs fixes are welcome. See [CONTRIBUTING.md](.github/CONTRIBUTING.md), [the driver guide](docs/drivers/WRITING-A-DRIVER.md) and issues labeled [good first issue](https://github.com/sohan-bhat/OpenHAL/labels/good%20first%20issue). Report security or safety problems privately through [SECURITY.md](.github/SECURITY.md).
|
|
258
|
+
|
|
259
|
+
## License
|
|
260
|
+
|
|
261
|
+
Apache-2.0, in [LICENSE](LICENSE). Device files in `library/` are CC0.
|