iotile.core.scripts.virtualdev_script

Entrypoint for virtual-device script that can serve a Virtual iotile device.

Module Contents

one_line_desc(obj)

Get a one line description of a class.

configure_logging(verbose)
main(argv=None)

Serve access to a virtual IOTile device using a virtual iotile interface.

instantiate_device(virtual_dev, config)

Find a virtual device by name and instantiate it

Args:
virtual_dev (string): The name of the pkg_resources entry point corresponding to
the device. It should be in group iotile.virtual_device. If virtual_dev ends in .py, it is interpreted as a python script and loaded directly from the script.
config (dict): A dictionary with a ‘device’ key with the config info for configuring
this virtual device. This is optional.
Returns:
VirtualIOTileDevice: The instantiated subclass of VirtualIOTileDevice
instantiate_interface(virtual_iface, config)

Find a virtual interface by name and instantiate it

Args:
virtual_iface (string): The name of the pkg_resources entry point corresponding to
the interface. It should be in group iotile.virtual_interface
config (dict): A dictionary with a ‘interface’ key with the config info for configuring
this virtual interface. This is optional.
Returns:
VirtualInterface: The instantiated subclass of VirtualInterface