Python advanced configuration
The easiest way to deploy Python agents is to use the Agent wizard in the Contrast web interface.
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.
Tip
Use the Contrast agent configuration editor to create or upload a YAML configuration file, validate YAML, and get setting recommendations.
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