Validate, extract, and generate printables of electronic invoice files received from the "Sistema di Interscambio".
Go to file
Franco Masotti e36c4142ba
Updated checksum.
2021-12-26 17:43:53 +01:00
assets Changed assertions to exceptions. 2020-11-22 17:59:33 +01:00
docs Preparing for new release. 2021-12-21 22:16:18 +01:00
fattura_elettronica_reader Updated checksum. 2021-12-26 17:43:53 +01:00
packages/aur Preparing for new release. 2021-12-21 22:16:18 +01:00
.allowed_licenses.yml Added hook. 2021-08-09 11:21:21 +02:00
.gitignore Use of pipenv. Changed documentation theme. Fixes. 2020-07-01 12:37:42 +02:00
.pre-commit-config.yaml Updated makefile. Updated pre-commit hooks. 2021-10-17 00:21:07 +02:00
LICENSE.txt Forgot to add the license file. 2019-08-10 18:40:06 +02:00 Added hook. 2021-08-09 17:41:23 +02:00
Makefile Improrted fix from fpydocs. 2021-12-21 23:19:39 +01:00
Pipfile Fixed package dependency. Fixed variable. 2021-12-21 22:03:48 +01:00
README.rst Preparing for new release. 2021-12-21 22:16:18 +01:00 Preparing for new release. 2021-12-21 22:16:18 +01:00



PyPI md-toc version PyPI - License PyPI - Python Version Downloads Dependent repos (via Buy me a coffee

Validate, extract, and generate printables of electronic invoice files received from the "Sistema di Interscambio".


API examples

fattura-elettronica-reader has a public API. This means for example that you can you easily read invoice files within another Python program:

>>> import fattura_elettronica_reader
>>> data = {
        'patched': True,
        'configuration file': str(),
        'write default configuration file': False,
        'extract attachments': True,
        'metadata file': 'myfile.xml',
        'invoice xslt type': 'ordinaria',
        'no invoice xml validation': False,
        'force invoice schema file download': False,
        'generate html output': True,
        'invoice filename': str(),
        'no checksum check': False,
        'force invoice xml stylesheet file download': False,
        'ignore attachment extension whitelist': False,
        'ignore attachment filetype whitelist': False,
        'ignore signature check': False,
        'ignore signers certificate check': False,
        'force trusted list file download': False,
        'keep original file': True,
        'ignore assets checksum': False,
        'destination directory': '/dev/shm',
>>> fattura_elettronica_reader.assert_data_structure(source='invoice', file_type='p7m', data=data)
>>> fattura_elettronica_reader.pipeline(

Have a look at the archive_invoice_files script in the automated tasks repository.

CLI helps


$ fattura_elettronica_reader --help


Copyright (c) 2018 Enio Carboni - Italy

Copyright (C) 2019-2021 Franco Masotti (franco DoT masotti {-A-T-} tutanota DoT com)

fattura-elettronica-reader is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

fattura-elettronica-reader is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with fattura-elettronica-reader. If not, see <>.

Changelog and trusted source

You can check the authenticity of new releases using my public key.

Changelogs, instructions, sources and keys can be found at

Crypto donations

  • Bitcoin: bc1qnkflazapw3hjupawj0lm39dh9xt88s7zal5mwu
  • Monero: 84KHWDTd9hbPyGwikk33Qp5GW7o7zRwPb8kJ6u93zs4sNMpDSnM5ZTWVnUp2cudRYNT6rNqctnMQ9NbUewbj7MzCBUcrQEY
  • Dogecoin: DMB5h2GhHiTNW7EcmDnqkYpKs6Da2wK3zP
  • Vertcoin: vtc1qd8n3jvkd2vwrr6cpejkd9wavp4ld6xfu9hkhh0