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 | |
|---|---|---|---|
| edc_detect_pii-0.2.1.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| edc_detect_pii-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
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
|