Python Hardware
Blackchirp can drive a hardware device through a user-supplied Python script instead of a compiled C++ driver. A Python driver is selected per profile, the same way a built-in driver is, and each Python-backed hardware type ships with a template script that runs out of the box against the Virtual communication protocol. The Hardware Profiles page covers profile creation in general; this chapter covers the parts specific to Python drivers.
In this chapter
Overview — architecture and the list of supported hardware types
Selecting a Python Driver — wiring a script, class name, and Python environment to a profile
Writing a Python Driver — lifecycle methods, injected proxies, and return-type expectations
Reloading and Editing a Script — editing and reloading a script from the per-device hardware dialog
Per-Type Capabilities — methods each trampoline expects from the driver class