Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 916 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 916 Bytes

einvoice-anonymizer

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.

Install

python -m venv anon

anon\Scripts\activate.bat

pip install -r requirements.txt

Run

(but be careful, this will overwrite the original file!!)

python3 anonymize.py zugferd-invoice.xml ./testdaten_cii.csv shuffle

Maintainer

We're looking for a maintainer :-)