How to anonymize with Presidio
Presidio consists of the Analyzer, which finds PII in text, and the Anonymizer, which transforms it with operators such as replace, redact, mask, hash or encrypt (reversible via decrypt). Install via pip or Docker, run the analyzer over text and pass the results to the anonymizer. An Image Redactor and a structured-data module complement it. Per its docs, Presidio is now a community-owned project under Data Privacy Stack, MIT-licensed.