PteRedactyl
PteRedactyl utilizes advanced natural language processing techniques to identify and anonymise personal information in clinical free text.
Developed by the Data & AI Research (DAIR) Unit at University Hospital Southampton NHSFT for use in clinical research, PteRedactyl wraps around swappable NER models to redact or hide PII in strings or DataFrames.
Features
- Anonymisation of various entities such as names, locations, and phone numbers.
- Support for processing both strings and pandas DataFrames.
- Text highlighting for easy identification of anonymised sections.
- Hide in plain site (HIPS) replacement
⚙️ Installation
Via PyPI
Execute:
pip install pteredactyl
Via GitHub (uv)
To install in development mode, we recommend using uv.
-
Install uv from the Astral website, or install via PyPI with
pip install uv -
Clone the PteRedactyl repo:
git clone https://github.com/SETT-Centre-Data-and-AI/pteredactyl.git
- Navigate to the repositry (
cd ...\pteredactyl\) and execute:
uv sync --group dev
📚 Guides
🤝 Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
⚖️ License
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.
🧑🔬 Authors
Valediction was developed by Cai Davis and Michael George at University Hospital Southampton NHSFT's Data & AI Research Unit (DAIR) - part of the Southampton Emerging Therapies and Technology (SETT) Centre.
"# PteRedactyl_development"Metadata
Release files for pteredactyl 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pteredactyl-1.1.0.tar.gz | 23.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pteredactyl-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.1 kB
Release files / pteredactyl-1.1.0.tar.gz
| Download URL | pteredactyl-1.1.0.tar.gz |
|---|---|
| Size | 23.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e90fcc6303a066f708d65bb6cd485833b414a6f2fd37df631346c2f4939712c6
|
|
BLAKE2b-256 checksum How to use checksums |
d9906e3dde189974b60a31acb35d2efbcd3ca93a10dbfee2cac11ca9c955400b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / pteredactyl-1.1.0-py3-none-any.whl
| Download URL | pteredactyl-1.1.0-py3-none-any.whl |
|---|---|
| Size | 27.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76df2d564fa3c326b1772f7759cf52375ebf283d839707a21921839559269e9c
|
|
BLAKE2b-256 checksum How to use checksums |
3fad81512041f703f125d67f2dbc64924d4c1d783e410de652c8243255136ba3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|