EDC Detect PII
uv pip install edc-detect-pii
or just run the tool
uv run edc_detect_pii.py <OPTIONS>
So far this just looks for names.
The default regex looks for any word in CAPS greater than two letters and may have spaces between words.
Two areas that are at risk of exposing PII are data migrations and jupyter notebooks.
To run on migration files, clone the repo and pass a local path. For example:
uv run edc_detect_pii.py \
--repo=/migrations \
--exclude OTHER ABNORMAL NORMAL \
--ext=py
To run on a jupyter notebook, pass a local path to a folder with notebooks
uv run edc_detect_pii.py \
--path=/my_notebooks \
--exclude OTHER ABNORMAL NORMAL
todo
allow custom regex and additional regex as arguments
consider pre-commit hook that uses a config file of custom words to exclude
Metadata
Release files for edc-detect-pii 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| edc_detect_pii-0.2.1.tar.gz | 4.0 kB | Without provenance | Details for edc_detect_pii-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| edc_detect_pii-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for edc_detect_pii-0.2.1-py3-none-any.whl |
Total release size: 8.1 kB
Release files / edc_detect_pii-0.2.1.tar.gz
| Download URL | edc_detect_pii-0.2.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5edaebe20b3e2beb58176114ffc703f41c13de04d5df777a8255054bf3940188
|
|
BLAKE2b-256 checksum How to use checksums |
aa4fef4ce844ccede805e6a7b97c0a6bbb4a1a5a54200a1fcbb5b4a8ec7aec55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.3
|
Release files / edc_detect_pii-0.2.1-py3-none-any.whl
| Download URL | edc_detect_pii-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70154142e6d9f5f8f472512c55832fa4d26cfe27b31449a414be6947145aa5de
|
|
BLAKE2b-256 checksum How to use checksums |
05567952de36388a7c761b093d70af0ec74c7ff7d25d3afcbf666908149fae6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.3
|
Security for edc-detect-pii 0.2.1
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.