cmem_client.models.python_install¤
Result models for Python package installation and plugin management operations.
Installing a Python package into DataIntegration runs pip inside the deployment and
then registers the plugins the package ships. Both steps can fail on their own, so the
operations of client.python_packages report the outcome with these models rather
than raising: a package can install cleanly and still contribute a plugin which does
not load.
Classes:
- PluginError – An error reported during plugin registration.
- PluginReloadResult – Result of a plugin reload operation.
- PythonInstallResult – Result of a Python package installation (by name or by file).
PluginError¤
Bases: Model
An error reported during plugin registration.
Attributes:
- package_name (
str) – Name of the package whose plugin failed to register. - error_message (
str) – Message of the error. - error_type (
str) – Type of the error, as named by DataIntegration. - stack_trace (
str | None) – Stack trace of the error, if the deployment reports one.
error_message¤
error_type¤
model_config¤
package_name¤
stack_trace¤
PluginReloadResult¤
Bases: Model
Result of a plugin reload operation.
Attributes:
- errors (
list[PluginError]) – Plugins which failed to register during the reload. An empty list means every plugin loaded.
errors¤
model_config¤
PythonInstallResult¤
Bases: Model
Result of a Python package installation (by name or by file).
Attributes:
- success (
bool) – Whether the installation itself succeeded. Plugins which failed to register afterwards are reported inplugin_errorsand do not clear this flag. - output (
str) – Combined output of the installation. - standard_output (
str) – What the installation wrote to stdout. - error_output (
str) – What the installation wrote to stderr. - plugin_errors (
list[PluginError]) – Plugins of the installed package which failed to register.