Skip to content

A python script to remove personal data from EN16931 XML e-invoices, primarily CII

License

Notifications You must be signed in to change notification settings

ZUGFeRD/einvoice-anonymizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :-)

About

A python script to remove personal data from EN16931 XML e-invoices, primarily CII

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages