boarddev
boarddev ¶
Lazy end-device binding for board_devices → board_config.
board_devices.setup_devices(globals()) typically calls
bind_lazy(ns, this_module). Apps never import boarddev; they use
board_config.DEVICES and attribute access.
Functions:¶
bind_lazy ¶
bind_lazy(ns, devices_mod)
Install module __getattr__ / __dir__ on ns for lazy roles.
Each name in devices_mod.DEVICES maps to a zero-arg factory
devices_mod.<name>(). First access constructs, caches into
ns[name], and returns the object. Further access hits the module
dict (no __getattr__).