Runtime
pyvider.rpcplugin.config.runtime
¶
Core RPCPluginConfig class implementation using Foundation framework.
This module contains the main configuration class that uses env_field and parse_list for proper environment variable parsing.
Classes¶
RPCPluginConfig
¶
Bases: RuntimeConfig
Comprehensive configuration for the RPC plugin system.
This configuration class extends Foundation's RuntimeConfig to provide type-safe, environment-aware configuration for all aspects of the RPC plugin framework. All fields support environment variable overrides with automatic type conversion and validation.
The configuration is organized into functional areas:
Core Settings: - Protocol version negotiation - Magic cookie authentication - Logging configuration
Transport Settings: - Connection and handshake timeouts - Buffer sizes for network I/O - Supported transport mechanisms (Unix, TCP)
Security Settings: - mTLS configuration and auto-generation - Certificate paths and validity periods - Insecure mode for development
gRPC Settings: - Keepalive parameters - Message size limits - Grace periods for shutdown
Client Settings: - Retry logic and backoff strategies - Maximum retry attempts - Transport preferences
Server Settings: - Host and port binding - Unix socket paths - Transport availability
Feature Settings: - Rate limiting with token bucket - Health check service - UI components
Example
Note
All configuration fields can be overridden via environment variables. The env_field decorator ensures proper parsing and validation. Default values are defined in the defaults module for consistency.