pynenc.conf.config_shared_memory

Module Contents

Classes

ConfigSharedMemory

Configuration for shared memory components.

API

class pynenc.conf.config_shared_memory.ConfigSharedMemory(config_values: dict[str, Any] | None = None, config_filepath: str | None = None)[source]

Bases: pynenc.conf.config_base.ConfigPynencBase

Configuration for shared memory components.

This configuration provides settings for components that use multiprocessing.shared_memory for inter-process communication. Primarily used for testing process runners.

Variables:
  • shared_memory_size_mb (int) – Size of shared memory allocation in megabytes (default: 64MB).

  • shared_memory_name_prefix (str) – Prefix for shared memory segment names (default: “pynenc”).

  • shared_memory_cleanup_timeout_sec (float) – Timeout for cleanup operations in seconds (default: 5.0).

Initialization

shared_memory_size_mb

‘ConfigField(…)’

shared_memory_name_prefix

‘ConfigField(…)’

shared_memory_cleanup_timeout_sec

‘ConfigField(…)’