Sismic

Latest version: v1.6.8

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

Scan your dependencies

Page 6 of 11

0.25.3

-------------------

- (Fixed) ``export_to_dict`` (and by extension, ``export_to_yaml``) didn't export transition contracts.
- (Changed) All the tests are now written using ``pytest`` instead of ``unittest``.

0.25.2

-------------------

- (Added) Make ``Event``, ``InternalEvent`` and ``MetaEvent`` available from ``interpreter`` as well.
- (Changed) Move ``helpers`` from ``sismic.interpreter.helpers`` to ``sismic.helpers``.
- (Removed) Remove module ``stories``, not really required anymore.

0.25.1

-------------------

- (Added) Full equality comparison (``__eq__``) for states and transitions (including all relevant attributes).
- (Added) ``Interpreter.queue`` also accepts an event name in addition to an ``Event`` instance.
- (Added) ``Interpreter.queue`` accepts more than one event (or name) at once.
- (Changed) ``Evaluator.execute_onentry`` and ``execute_onexit`` become ``execute_on_entry`` and ``execute_on_exit``.
- (Changed) Many type annotations were added or fixed.
- (Changed) ``Interpreter.bind`` can no longer be chained.

0.25.0

-------------------

Property statecharts do not require anymore the use of an ``ExecutionWatcher`` and are now directly supported
by the interpreter. The documentation contains a new page, *Monitoring properties*, that explains how to monitor
properties at runtime and provides some examples of property statecharts.

- (Added) Property statechart can be bound to an interpreter with ``interpreter.bound_property`` method, that accepts
either a ``Statechart`` or an ``Interpreter`` instance.
- (Added) A ``PropertyStatechartError`` that is raised when a property statechart reaches a final state.
- (Added) A ``MetaEvent`` class to represent meta-events sent by the interpreter for property statechart checking.
- (Added) ``Interpreter._notify_property(event_name, **kwargs)`` and ``Interpreter._check_properties(macro_step)`` that
are used internally to respectively send meta-events to bound properties, and to check these properties.
- (Changed) ``Interpreter.raise_event`` is now ``Interpreter._raise_event`` as it's not supposed to be part of the public API.
- (Removed) ``sismic.testing`` module was removed (including the ``ExecutionWatcher`` and ``TestStoryFromTrace``).
- (Removed) BDD steps related to the execution watcher, in ``sismic.testing.steps``.
- (Fixed) ``Interpreter.time`` cannot be set to a lower value than the current one (ie. time is monotonic).
- (Fixed) A statechart preamble cannot be used to send events.

0.24.3

-------------------

- (Fixed) ``ExecutionWatcher.stop()`` was not called at the end of the execution when ``sismic-behave`` was
called with ``--properties``.
- (Removed) Unused dependency on ``pyparsing``.

0.24.2

-------------------

- (Added) ``sismic.io`` contains an ``export_to_plantuml`` function to export a statechart to PlantUML.
- (Added) ``sismic-behave`` accepts a ``--properties`` argument, pointing to a list of YAML files containing
property statecharts that will be checked during execution (in a fail fast mode).
- (Changed) ``sismic.io.export_to_yaml`` accepts an additional ``filepath`` argument.
- (Fixed) Whitespaces in strings are trimmed when using ``import_from_dict`` (and hence, using ``import_from_yaml``).

Page 6 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.