Siobrultech-protocols

Latest version: v0.14.0

Safety actively analyzes 638452 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.8.0

New Features
* Added support for ECM-1220 and ECM-1240 packets

0.7.0

New Features
* Added the ability to set the packet clear time for API commands. This can be useful if the default of three seconds was too slow for the GEM to finish sending a packet.

Breaking Changes
* `siobrultech_protocols.gem.protocol.T` and `siobrultech_protocols.gem.protocol.R` have been removed. Any imports should replace them with `siobrultech_protocols.gem.api.T` and `siobrultech_protocols.gem.api.R`, respectively.
* The constant `PACKET_DELAY_CLEAR_TIME` from `siobrultech_protocols.gem.protocol` has been removed. A new constant, `PACKET_DELAY_CLEAR_TIME_DEFAULT` is added to `siobrultech_protocols.gem.const`, which is the default value we use if a value is not provided to the `BidirectionalProtocol`.

**Full Changelog**: https://github.com/sdwilsh/siobrultech-protocols/compare/v0.6.0...v0.7.0

0.6.0

New Features
* Added a new method, `get_average_power`, to `Packet` to get the average power between the `Packet` and another `Packet` for a given channel index.
* Added a new method, `get_average_pulse_rate`, to `Packet` to get the average pulse rate between the `Packet` and another `Packet` for a given pulse counter index.

**Full Changelog**: https://github.com/sdwilsh/siobrultech-protocols/compare/v0.5.0...v0.6.0

0.5.0

Breaking Changes
* The `Queue`s used by `PacketProtocol`/`BidirectionalProtocol` now contain `PacketProtocolMessage`s instead of `Packet`s.

New Features
* Send API commands to a specific serial number
* `Protocol` implementations now include a `close` method and send messages to their `Queue`s for connections made and lost

What's Changed
* Run GitHub workflows on release branches too by sdwilsh in https://github.com/sdwilsh/siobrultech-protocols/pull/41
* Add some documentation for properties on a `Packet` by sdwilsh in https://github.com/sdwilsh/siobrultech-protocols/pull/42
* Bump pre-commit from 2.15.0 to 2.16.0 by dependabot in https://github.com/sdwilsh/siobrultech-protocols/pull/46
* Update protocol logging by jkeljo in https://github.com/sdwilsh/siobrultech-protocols/pull/50
* Enable callers to properly close protocol transports by jkeljo in https://github.com/sdwilsh/siobrultech-protocols/pull/51
* Support targeting API requests to a specific serial by jkeljo in https://github.com/sdwilsh/siobrultech-protocols/pull/52

**Full Changelog**: https://github.com/sdwilsh/siobrultech-protocols/compare/v0.4.1...v0.5.0

0.4.1

Fixes
* Fix API Setting Methods (39)
* Make logging more useful in protocols (38)

**Full Changelog**: https://github.com/sdwilsh/siobrultech-protocols/compare/v0.4.0...v0.4.1

0.4.0

New Features
* A context manager has been added to easily make API calls in a safe way when using `asyncio`
* A number of API helper methods have been added to make it easy for some important, common operations (support to roll your own still exists!)
* `get_serial_number` to get the serial of the connected GEM
* `set_date_and_time` to set the date and time on the connected GEM
* `set_packet_format` to set the primary packet format (COM1) on the connected GEM
* `set_packet_send_interval` to set the frequency in which packets are sent from the connected GEM
* `set_secondary_packet_format` to set the secondary packet format (COM1) on the connected GEM
* `synchronize_time` to synchronize the time on the connected GEM with the local device

Fixes
* `end_api_request` was not callable immediately after `begin_api_request`, which would result in even more brokenness if an exception occurred.

What's Changed
* Version bump to 0.4.0a0 by sdwilsh in https://github.com/sdwilsh/siobrultech-protocols/pull/23
* Provide a better message when the state is not what is expected by sdwilsh in https://github.com/sdwilsh/siobrultech-protocols/pull/25
* `end_api_request` should be callable immediately after `begin_api_request` by sdwilsh in https://github.com/sdwilsh/siobrultech-protocols/pull/27
* Provide a context manager and helper method for API Calls by sdwilsh in https://github.com/sdwilsh/siobrultech-protocols/pull/26
* Add ability to set the time on a GEM by sdwilsh in https://github.com/sdwilsh/siobrultech-protocols/pull/28
* Update documentation to reflect new ways to call API by sdwilsh in https://github.com/sdwilsh/siobrultech-protocols/pull/30
* Add tests and documentation for API methods by sdwilsh in https://github.com/sdwilsh/siobrultech-protocols/pull/31
* Add a number of APIs to set things on the GEM by sdwilsh in https://github.com/sdwilsh/siobrultech-protocols/pull/29
* Bump black from 21.9b0 to 21.10b0 by dependabot in https://github.com/sdwilsh/siobrultech-protocols/pull/34
* Bump flake8 from 3.9.2 to 4.0.1 by dependabot in https://github.com/sdwilsh/siobrultech-protocols/pull/33
* Bump pyyaml from 5.4.1 to 6.0 by dependabot in https://github.com/sdwilsh/siobrultech-protocols/pull/32
* Add support and testing for Python 3.10 by sdwilsh in https://github.com/sdwilsh/siobrultech-protocols/pull/35

**Full Changelog**: https://github.com/sdwilsh/siobrultech-protocols/commits/v0.4.0

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.