config π
Interface to the struct vaccel_config
C object.
Config π
Config(
plugins: str = "libvaccel-noop.so",
log_level: int = 1,
log_file: str | None = None,
*,
profiling_enabled: bool = False,
version_ignore: bool = False,
)
Bases: CType
Wrapper for the struct vaccel_config
C object.
Manages the creation and initialization of a C struct vaccel_config
and provides access to it through Python properties.
Inherits
CType: Abstract base class for defining C data types.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
| str | Colon-separated list of plugin names to load. | 'libvaccel-noop.so' |
| int | Logging level (1=ERROR, 4=DEBUG). | 1 |
| str | None | Path to log file or None to disable logging to file. | None |
| bool | Enable or disable profiling. | False |
| bool | Ignore version mismatches if True. | False |
Source code in vaccel/config.py
value property
π
Returns the value of the underlying C struct.
Returns:
Type | Description |
---|---|
CData | The dereferenced 'struct vaccel_config` |