This release primarily fixes internal details of the plugin package and should not affect most users' code.
The only exception to this is that some accidental exports have been cleaned up. For example, it was possible to import pathlib's Path from waggle.plugin. This is no longer possible.
0.51.1
0.51.0
Added Plugin.timeit helper function. This helper can measure and publish the duration of blocks of code using:
python3 from waggle.plugin import Plugin
with Plugin() as plugin: measures duration of input block and publishes to plugin.duration.input with plugin.timeit("plugin.duration.input"): get_inputs(...)
measures duration of inference block and publishes to plugin.duration.inference with plugin.timeit("plugin.duration.inference"): do_inference(...)
publish_results(...)
0.50.1
Bug fix: Plugin will attempt to flush queued messages when exiting with block. This helps avoid message loss in the one shot case and on exceptions.