- You can save Soda Library scan results anywhere in your system; the
scan_result
object contains all the scan result information. To import Soda Library in Python so you can utilize theScan()
object, [install a Soda Library package]({% link soda-library/programmatic.md %}), then usefrom soda.scan import Scan
. - If you provide a name for the scan definition to identify inline checks in a programmatic scan as independent of other inline checks in a different programmatic scan or pipeline, be sure to set a unique scan definition name for each programmatic scan. Using the same scan definition name in multiple programmatic scans results in confused check results in Soda Cloud.
- If you wish to collect samples of failed rows when a check fails, you can employ a custom sampler; see [Configure a failed row sampler]({% link soda-cl/failed-row-samples.md %}#configure-a-python-custom-sampler).
- Be sure to include any variables in your programmatic scan before the check YAML files. Soda requires the variable input for any variables defined in the check YAML files.