A python script to remove personal data/anonymize/redact EN16931 XML CII e-invoices
Andreas Starke created this file as a pythonesk response to a feature suggestion
for Quba viewer. It can be applied to the XML of e.g. ZUGFeRD 2 invoices or the XML of
CII XRechnungen and will shuffle
(i.e. replace a lowercase character by a random lowercase character,
same with uppercase and number) the text contents of the xpaths defined in testdaten_cii.csv.
python -m venv anon
anon\Scripts\activate.bat
pip install -r requirements.txt
(but be careful, this will overwrite the original file!!)
python3 anonymize.py zugferd-invoice.xml ./testdaten_cii.csv shuffle
We're looking for a maintainer :-)