load method

Contents
[ ]

load

Loads an instance of RedactionPolicy from a file path.

Returns

Redaction policy

def load(self, file_path):
    ...
Parameter Type Description
file_path str Path to XML file

Example

The following example demonstrates how to apply a redaction policy to all files within a given inbound folder, and save to one of outbound folders - for successfully updated files and for failed ones.

The following example contains a sample XML policy file with sample configurations for all types of redactions.

load

Loads an instance of RedactionPolicy from a stream.

Returns

Redaction policy

def load(self, input):
    ...
Parameter Type Description
input io.RawIOBase Stream containing XML configuration

Example

The following example demonstrates how to apply a redaction policy to all files within a given inbound folder, and save to one of outbound folders - for successfully updated files and for failed ones.

The following example contains a sample XML policy file with sample configurations for all types of redactions.

See Also