Skip to content

PyPlumIO v0.3.4

Compare
Choose a tag to compare
@denpamusic denpamusic released this 10 Feb 11:57
· 593 commits to main since this release
b9f0b3b

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 in default argument.
  • EventManager attributes are now proxied to EventManager.data. This allows to use Device.mixers instead of Device.data["mixers"].
  • Deprecated Device.get_value in favor of Device.get or Device.get_nowait.
  • Deprecated Device.get_parameter in favor of Device.get or Device.get_nowait.
  • Deprecated Device.set_value in favor of Device.set.
  • Deprecated Device.set_value_nowait in favor of Device.set_nowait.
  • Deprecated Protocol.get_device in favor of Protocol.get or Protocol.get_nowait.
  • Deprecated pyplumio.helpers.filters module in favor of pyplumio.filters.
  • Removed pyplumio.helpers.product_info module. ProductInfo dataclass has been moved to pyplumio.structures.product_info and ConnectedModules dataclass has been moved to pyplumio.structures.modules.