Cmem-plugin-base

Latest version: v4.10.0

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

Scan your dependencies

Page 3 of 5

2.1.0

Changed

- DatasetParameterType: to use user context

2.0.1

Fixed

- ChoiceParameterType: to_string and from_string need to be the inverse of each other.

2.0.0

Added

- Added ChoiceParameterType
- Added context classes to various functions (CMEM-4173).

Migration Notes

Due to the added context classes, the signature of a number of functions has been changed.
The following changes need to be made to implementation of these classes:

WorkflowPlugin

- The execute function has a new parameter `context`:
- `def execute(self, inputs: Sequence[Entities], context: ExecutionContext)`

ParameterType

- The `project_id` parameters of the label and the autocompletion functions have been replaced by the PluginContext:
- `def autocomplete(self, query_terms: list[str], context: PluginContext) -> list[Autocompletion]`
- `def label(self, value: str, context: PluginContext) -> Optional[str]`
- The project identifier can still be accessed via `context.project_id`
- The `fromString` function has a new parameter `context`:
- `def from_string(self, value: str, context: PluginContext) -> T`

1.2.0

Added

- `write_to_dataset` function to utils module to write to a dataset
- Added MultilineStringParameterType

1.1.1

Fixed

- DatasetParameterType provides labels now
- DatasetParameterType returns combined dataset ID now

1.1.0

Added

- DatasetParameterType - for selecting DI datasets
- GraphParameterType - for selecting DP Knowledge Graphs

Fixed

- Plugin discovery had an issue that plugins that are in the root module of a package have not been re-discovered on the second call.
- Boolean values are formatted lower case in order to conform to xsd:bool.

Page 3 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.