Aiokatcp

Latest version: v2.0.1

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

Scan your dependencies

Page 1 of 6

2.0.0

**Breaking changes:**

- When setting the value of a sensor, it is coerced to
an instance of the sensor type (see :ref:`sensor-value-coercion`). Reading
back the sensor value will give this coerced object instead of the original.
This only applies if the value was not already of the expected type.

- Setting a sensor value to an object of an unsupported type will now raise
:exc:`TypeError`. Previously it was silently accepted, and clients querying
the sensor would either get a value of the wrong type, or the query would
fail.

- The :class:`Address` constructor now raises :exc:`TypeError`
if the first argument is not an IP address object.

Other changes:

- Use :func:`typing.get_args` instead of an undocumented API.

1.10.0

- Use `katcp-codec`_ to provide the low-level encoding and decoding of
katcp messages, yielding a significant speedup.

.. _katcp-codec: https://katcp-codec.readthedocs.io/en/latest/

1.10.0b1

- Use `katcp-codec`_ to provide the low-level encoding and decoding of
katcp messages, yielding a significant speedup.

.. _katcp-codec: https://katcp-codec.readthedocs.io/en/latest/

1.9.0

- Drop support for end-of-life Python 3.7.
- Significantly speed up argument decoding for request handlers. Note that any
code that calls :func:`.register_type` will need to be updated.
- Add :meth:`.Client.sensor_reading` and :meth:`.Client.sensor_value` helper
methods.
- Update dependency versions in Github Actions.

1.8.0

- Make :class:`.Reading` a dataclass.
- Fix server shutdown on Python 3.12.
- Update versions of dependencies used in CI.
- Remove wheel from ``build-system.requires``.
- Make the unit tests pass on Python 3.11.5.
- Make the :mod:`.adjtimex` module available on non-Linux systems with a stub
implementation. It raises :exc:`NotImplementedError` when calling
:func:`.get_adjtimex`, and :class:`.TimeSyncUpdater` will set the sensors to
:attr:`.INACTIVE`.

1.7.0

- Extend :class:`.SensorWatcher` to allow incoming sensors to be replicated
under multiple names.
- Log exception traceback when a service task crashes.

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.