Skip to main content

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.

Note: pii-transform does not implement or use Transformer models for PII purposes (for the extraction of PII instances using Transformer models, see pii-extract-plg-transformers or pii-extract-plg-presidio).

Command-line script

The package provides a console script: pii-transform loads a source document & a collection of already-detected PII, and produces a transformed document following the specified policies.

API

The same functionality provided by the command-line script can also be accessed via a Python API

End-to-end workflow

The end-to-end scripts and APIs have been migrated; they are now in the pii-process package. That one is also the module to use to process generic documents, since this package supports only the PIISA Source Document format, which contains the document written as a YAML file.

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.7.0.tar.gz (18.1 kB view details)

Uploaded Source

File details

Details for the file pii-transform-0.7.0.tar.gz.

File metadata

  • Download URL: pii-transform-0.7.0.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pii-transform-0.7.0.tar.gz
Algorithm Hash digest
SHA256 bdf978e2fab00eb518182855d756b92ff274708e4aaa46a24be1de0dc51c1c0d
MD5 8beabfc86e4f9e220d01f1ca1d21e949
BLAKE2b-256 fb1b1febae9f488cef87ffdfe85f32ce22f931336cd48daf3822cff85436c0f9

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.7.0 This release

1 file

0.6.0

1 file

0.5.1

1 file

0.5.0

1 file

0.4.2

1 file

0.4.1

1 file

0.4.0

1 file

0.3.1

1 file

0.3.0

1 file

0.2.4

1 file

0.2.2

1 file

0.2.1

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page