load method

load(, file_path)

Loads an instance of RedactionPolicy from a file path.

Returns

Redaction policy


@staticmethod
def load(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(, input)

Loads an instance of RedactionPolicy from a stream.

Returns

Redaction policy


@staticmethod
def load(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