41 lines
2.0 KiB
Python
41 lines
2.0 KiB
Python
#
|
|
# __init__.py
|
|
#
|
|
# Copyright (c) 2018 Enio Carboni - Italy
|
|
# Copyright (C) 2019-2020 Franco Masotti <franco.masotti@tutanota.com>
|
|
#
|
|
# This file is part of fattura-elettronica-reader.
|
|
#
|
|
# 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/>.
|
|
#
|
|
"""Python discovery file."""
|
|
|
|
from .api import (assert_data_structure, asset_checksum_matches,
|
|
create_appdirs, define_appdirs_user_config_dir_file_path,
|
|
define_appdirs_user_data_dir_file_path,
|
|
extract_attachments_from_invoice_file, get_ca_certificates,
|
|
get_invoice_as_html, get_invoice_filename, get_remote_file,
|
|
invoice_file_checksum_matches, is_p7m_file_authentic,
|
|
is_p7m_file_signed, is_xml_file_conforming_to_schema,
|
|
parse_xml_file, patch_invoice_schema_file, pipeline,
|
|
remove_signature_from_p7m_file, write_configuration_file)
|
|
from .cli import CliInterface
|
|
from .exceptions import (AssetsChecksumDoesNotMatch,
|
|
CannotExtractOriginalP7MFile,
|
|
ExtractedAttachmentNotInExtensionWhitelist,
|
|
ExtractedAttachmentNotInFileTypeWhitelist,
|
|
InvoiceFileChecksumFailed, MissingTagInMetadataFile,
|
|
P7MFileDoesNotHaveACoherentCryptographicalSignature,
|
|
P7MFileNotAuthentic, XMLFileNotConformingToSchema)
|