Skip to main content

Transform recognized PII instances in a document

Project description

pii-transform

This package takes a source document, a collection of detected PII instances, and transforms the document by replacing the PII instances in the document with a different representation.

The type of substitution done is defined by transformation policies.

Command-line scripts

The package provides two console scripts:

  • pii-transform loads a source document & a collection of detected PII, and produces a transformed document following the required policies.
  • pii-process is a full end-to-end script:
    • load a document, from among the formats supported by pii-preprocess
    • detects PII instances, according to pii-extract and its installed plugins
    • transforms the detected PII instances (according to the indicated policy) and writes out the transformed documennt

Note that pii-process will need additional packages to be present:

  • pii-preprocess
  • pii-extract-base, together with any available detection plugins, e.g. pii-extract-plg-regex

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pii-transform-0.0.2.tar.gz (9.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page