Skip to main content

A utility that is able to check and extract electronic invoice received from the Sistema di Interscambio.

Project description

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

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

Documentation

https://docs.franco.net.eu.org/fattura-elettronica-reader

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,
}
>>> fattura_elettronica_reader.assert_data_structure(source='invoice', file_type='p7m', data=data)
>>> fattura_elettronica_reader.pipeline(
        source='invoice',
        file_type='p7m',
        data=data,
    )

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

CLI helps

$ fattura_elettronica_reader --help

License

Copyright (c) 2018 Enio Carboni - Italy

Copyright (C) 2019-2021 frnmst (Franco Masotti) <franco.masotti@tutanota.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 <http://www.gnu.org/licenses/>.

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 blog.franco.net.eu.org/software.

Crypto donations

  • Bitcoin: bc1qnkflazapw3hjupawj0lm39dh9xt88s7zal5mwu

  • Monero: 84KHWDTd9hbPyGwikk33Qp5GW7o7zRwPb8kJ6u93zs4sNMpDSnM5ZTWVnUp2cudRYNT6rNqctnMQ9NbUewbj7MzCBUcrQEY

  • Dogecoin: DMB5h2GhHiTNW7EcmDnqkYpKs6Da2wK3zP

  • Vertcoin: vtc1qd8n3jvkd2vwrr6cpejkd9wavp4ld6xfu9hkhh0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fattura_elettronica_reader-2.0.9.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fattura_elettronica_reader-2.0.9-py3-none-any.whl (32.2 kB view details)

Uploaded Python 3

File details

Details for the file fattura_elettronica_reader-2.0.9.tar.gz.

File metadata

  • Download URL: fattura_elettronica_reader-2.0.9.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for fattura_elettronica_reader-2.0.9.tar.gz
Algorithm Hash digest
SHA256 0e6cbff1fd2d0b28219c1cd18e567eecd278ce5a97d88455f06af32122d552d9
MD5 6502b2bbcf05e8fa337a4dfd48636420
BLAKE2b-256 280ffd74d2f8eb059987ba47bf1da44dfe179f02810f45dc7f2a279a1c05d783

See more details on using hashes here.

File details

Details for the file fattura_elettronica_reader-2.0.9-py3-none-any.whl.

File metadata

  • Download URL: fattura_elettronica_reader-2.0.9-py3-none-any.whl
  • Upload date:
  • Size: 32.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for fattura_elettronica_reader-2.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 17389ed17acebdeb041d5fc01b832269cd8870893255d189adc57f1622d75a81
MD5 4fc30eef2ea3c7b4337e1744d81f7d25
BLAKE2b-256 840ed7d527c1863bc66e2bef41b561d76f95f70dbbdcb7d92d479072352983ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page