Configure the Python agent
The standard configuration for all agents uses this order of precedence.
As of version 5.24.0 of the agent, the Contrast Runner is the recommended way to use the Python Agent for most supported frameworks. Manual middleware configuration is still supported for backward compatibility and may continue to be necessary for certain frameworks and applications.
Python YAML template
Use this template to configure the Python agent using a YAML configuration file. (Learn more about YAML configuration.)
Place your YAML file in the default location: /etc/contrast/contrast_security.yaml
https://docs.contrastsecurity.com/common-agent-config/python_contrast_security.yaml