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.

Metadata

Release files for pii-transform 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pii-transform 0.7.0
File Size Uploaded Provenance Actions
pii-transform-0.7.0.tar.gz 18.1 kB Without provenance Details for pii-transform-0.7.0.tar.gz

Release files / pii-transform-0.7.0.tar.gz

Download URL pii-transform-0.7.0.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bdf978e2fab00eb518182855d756b92ff274708e4aaa46a24be1de0dc51c1c0d
BLAKE2b-256 checksum
How to use checksums
fb1b1febae9f488cef87ffdfe85f32ce22f931336cd48daf3822cff85436c0f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for pii-transform 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page