Fixed documentation.

This commit is contained in:
Franco Masotti 2020-07-11 12:37:31 +02:00
parent 68af880126
commit 6e1a308d17
Signed by: frnmst
GPG Key ID: 24116ED85666780A
3 changed files with 20 additions and 35 deletions

View File

@ -84,10 +84,10 @@ the latter solution since if you cannot prove its authenticity the invoice has n
value.
lxml vs defusedxml
~~~~~~~~~~~~~~~~~~
``````````````````
I decided to use lxml because it supports XML stylesheets (XSLT).
Infact, defusedxml does not support XSLT.
I decided to use lxml because it supports XML stylesheets (XSLT) as
defusedxml does not.
At first, using defusedxml seemed the best bet because of
the increased security:
@ -117,12 +117,6 @@ You must also add defusedxml and re-install the requirements as described
in the contributing section.
::
defusedxml==0.5.0
Official documentation
----------------------
@ -156,13 +150,13 @@ Downloading of the W3C file
The W3C schema file is a dependency for the invoice schema file and it needs to be downloaded
separately. For some reason the downloading of this file takes a few seconds.
Technical differences between "Fattura PA", "Fattura B2B" and other
```````````````````````````````````````````````````````````````````
Fattura PA vs Fattura B2B
``````````````````````````
Digital signature
~~~~~~~~~~~~~~~~~
Some websites say that digital signature of the "Fattura PA" is compulsory and
Some websites say that digital signature of the *Fattura PA* is compulsory and
in other cases it is not.
- https://www.agendadigitale.eu/documenti/fatturazione-elettronica/fattura-elettronica-e-firma-come-garantire-autenticita-dellorigine-e-integrita-del-contenuto/

View File

@ -11,7 +11,10 @@ You want everything, you trust nothing
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ fattura_elettronica_reader invoice --extract-attachments --generate-html-output p7m --keep-original-file ${metadata_file}
::
$ fattura_elettronica_reader invoice --extract-attachments --generate-html-output p7m --keep-original-file ${metadata_file}
You want everything, you trust everything
@ -21,7 +24,7 @@ You want everything, you trust everything
::
$ fattura_elettronica_reader invoice --extract-attachments --generate-html-output p7m --keep-original-file --ignore-signature-check --ignore-signers-certificate-check ${metadata_file}
$ fattura_elettronica_reader invoice --extract-attachments --generate-html-output p7m --keep-original-file --ignore-signature-check --ignore-signers-certificate-check ${metadata_file}
You need to extract a plain (non-signed) invoice file
@ -31,7 +34,7 @@ You need to extract a plain (non-signed) invoice file
::
$ fattura_elettronica_reader invoice --extract-attachments --generate-html-output plain ${metadata_file}
$ fattura_elettronica_reader invoice --extract-attachments --generate-html-output plain ${metadata_file}
Generic P7M files
@ -40,4 +43,7 @@ Generic P7M files
You want everything, you trust nothing
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ fattura_elettronica_reader generic --keep-original-file ${p7m_file}
::
$ fattura_elettronica_reader generic --keep-original-file ${p7m_file}

View File

@ -1,29 +1,14 @@
Installation
============
Run the following command in either a root or normal terminal (depending on
your Python setup) from the root directory of the project's cloned repository,
Install fpyutils via pip:
::
pip install .
or simply
::
make install
$ pip3 install fattura_elettronica_reader --user
You can also install md_toc via pip (i.e: without having to download the source
code):
::
pip install fattura_elettronica_reader
All the necessary dependencies should be installed automatically along with the
All the necessary dependencies are installed automatically along with the
program.
Distribution packages
@ -36,6 +21,6 @@ Distribution packages
Dependencies
------------
- Python 3.5
- Python >= 3.5