ConfigurationΒΆ
The protea.config subpackage provides tuning parameters and
configuration helpers used across the PROTEA stack.
Tuning parameters
protea.config.tuning exposes TuningSettings, a Pydantic settings
class that aggregates knobs for batch sizes, timeouts, and algorithm
parameters. Values are read from environment variables (with
PROTEA_ prefix) and fall back to documented defaults. Workers
instantiate a single TuningSettings object at startup; operations
receive it via dependency injection rather than importing it directly,
keeping them independently testable.
See also
Configuration Reference: full environment-variable reference.
Infrastructure:
protea.infrastructure.settingsfor the database and AMQP connection strings.