PyPlumIO v0.3.4
A lot of deprecations in this release. Sorry about that, but it need's to be done in order to progress forward. Please check README if you unsure on how to use new methods. Most of the deprecated methods and modules will be removed in v0.4.1.
- Added EventManager class to improve code reusability.
- Added RegulatorData class that is inherited from the EventManager. See Working with Regulator Data section to learn more.
- Added
EventManager.get_nowait(name: str | int, default = None)
method, that returns value right away instead of waiting for it. If value is not available, it returns whatever specified indefault
argument. EventManager
attributes are now proxied toEventManager.data
. This allows to useDevice.mixers
instead ofDevice.data["mixers"]
.- Deprecated
Device.get_value
in favor ofDevice.get
orDevice.get_nowait
. - Deprecated
Device.get_parameter
in favor ofDevice.get
orDevice.get_nowait
. - Deprecated
Device.set_value
in favor ofDevice.set
. - Deprecated
Device.set_value_nowait
in favor ofDevice.set_nowait
. - Deprecated
Protocol.get_device
in favor ofProtocol.get
orProtocol.get_nowait
. - Deprecated
pyplumio.helpers.filters
module in favor ofpyplumio.filters
. - Removed
pyplumio.helpers.product_info
module. ProductInfo dataclass has been moved topyplumio.structures.product_info
and ConnectedModules dataclass has been moved topyplumio.structures.modules
.