Sdss-clu

Latest version: v2.2.7

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

Scan your dependencies

Page 7 of 8

1.4.0

๐Ÿš€ New

* [98](https://github.com/sdss/clu/issues/98) Add `unique()` and `cancellable()` decorators for Click command parsers.

โœจ Improved

* [95](https://github.com/sdss/clu/issues/95) Cast all arguments to string in `ProxyClient.send_command()`.
* Add `get_keys` parameter to `LegacyActor.start()` that is passed to `TronConnection.start()`
* Use `.client` as default commander for `TronConnection` and `{actor}.{target}` for actor.

๐Ÿ”ง Fixed

* Avoid and error in the callback when a connection to the TCP server is closed.

1.3.0

๐Ÿ’ฅ Breaking changes

* [86](https://github.com/sdss/clu/issues/86) `additionalProperties` is set to `false` by default if not specified, including if `schema=None` when initialising an actor.

๐Ÿš€ New

* [85](https://github.com/sdss/clu/issues/85) Added `BaseClient.proxy()` method.

โœจ Improved

* [90](https://github.com/sdss/clu/issues/90) If an exception object is passed as a keyword in a command or actor message, it will be unpacked into the exception type and message.
* Make the error output when a reply fails to validate more clear.

๐Ÿ”ง Fixed

* [91](https://github.com/sdss/clu/issues/91) Documentation example for testing with CLU.

๐Ÿงน Cleanup

* Add `invoke_mock_command()` stub method to `BaseClient` to simplify type checking.

1.2.1

๐Ÿš€ New

* [89](https://github.com/sdss/clu/issues/89) Use [furo](https://pradyunsg.me/furo/) Sphinx theme.

๐Ÿ”ง Fixed

* `LegacyActor` now accepts the `config` parameter sent by `from_config()`.

โœจ Improved

* Subcommands now won't write to the users when they start running.

1.2.0

๐Ÿš€ New

* `Command` and `BaseActor.write()` now accept a `silent` argument that if `True` will execute the command normally and update the status and internal model, but won't write to the user. Timed command can be run in silent mode the first iteration by initialising them with `first_silent=True`.

โœจ Improved

* [77](https://github.com/sdss/clu/issues/77) Child commands will never emit ``:`` or ``f`` messages that may be confused as the parent being done.
* Timed commands are run immediately when started.
* `from_config()` now passes the configuration to the client `__init__()` so that it is accessible during initialisation.
* If a timed command takes longer to run than the interval at which the poller checks if new timed commands should be run, prevent it from being issued multiple times.

1.1.2

๐Ÿ”ง Fixed

* Revert previous changes to the typing of `Command` that were causing problems, but keep the generic for the command future.

1.1.1

๐Ÿ”ง Fixed

* Correctly assign the type of the actor in a `Command`.
* Fix error when `TopicListener.stop()` is called and there is not an active connection.

โœจ Improved

* `Device.start()` now returns `self`.
* [84](https://github.com/sdss/clu/issues/84) `send_command` now accepts multiple arguments before the keyword arguments. If they are passed, they will be concatenated to create the full command string. For example: `client.send_command('my_actor', 'sum', '-v', 2, 4, command_id=5)` is equivalent to `client.send_command('my_actor', 'sum -v 2 4', command_id=5)`

Page 7 of 8

ยฉ 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.