Skip to content

Commit

Permalink
Merge pull request #89 from akretion/cte-NT-2024-001
Browse files Browse the repository at this point in the history
CT-e NT 2024.001
  • Loading branch information
rvalyi authored Feb 17, 2024
2 parents 4812275 + 7c02bb5 commit 2876dac
Show file tree
Hide file tree
Showing 50 changed files with 463 additions and 61 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ nfelib - bindings Python para e ler e gerir XML de NF-e, NFS-e nacional, CT-e, M
* **Simples e confiável**. As outras bibliotecas costumam ter dezenas de milhares de linhas de código feito tudo manualmente para fazer o que o nfelib faz tudo automaticamente com algumas linhas para gerir código com o [xsdata](https://xsdata.readthedocs.io/) a partir dos últimos pacotes xsd da Fazenda. O xsdata é uma biblioteca de databinding extremamente bem escrita e bem testada. A própria nfelib tem testes para ler e gerir todos documentos fiscais.
* **Completa**: já que gerir os bindings ficou trivial, a nfelib mantém atualizada todos os bindings para interagir com todos os serviços e eventos de NF-e, NFS-e nacional, CT-e, MDF-e, BP-e. Os testes detetam também quando sai uma nova versão de algum esquema.

**Importante** Esta é a nova **versão 2.x** da nfelib onde os bindings são geridos com xsdata. Na versão 1.x os "bindings" eram geridos com generateDS. Fora algumas exceções listadas nos elementos *Substitution* no arquivo de configuração ```.xsdata.xml```, os novos bindings tem os mesmos campos que também correspondem aos atributos dos xsd. O nome das classes dos bindings ficou diferente (mais "pythonico") porém então para ler os bindings a compatibilidade é quase perfeita, mas para montar bindings o código deve ser adaptado.
Para facilitar a fase de transição para a nfelib 2.0, as primeiras versões da nfelib 2.0 estão empacotando também os antigos bindings da versão 1.x, no mesmo caminho ```nfelib/v4_00```.
Se vc estiver procurando o codigo "legacy da versão 1.x, ele esta na branch [master_gen_v4_00](https://github.com/akretion/nfelib/tree/master_gen_v4_00)

## Instalação

Expand Down
2 changes: 1 addition & 1 deletion nfelib/cte/bindings/v4_0/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""This file was generated by xsdata, v23.6, on 2023-06-28 18:36:32
"""This file was generated by xsdata, v23.6, on 2024-01-31 16:38:31
Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""This file was generated by xsdata, v23.6, on 2023-06-28 18:36:32
"""This file was generated by xsdata, v23.6, on 2024-01-31 16:38:31
Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
Expand Down
2 changes: 1 addition & 1 deletion nfelib/cte/bindings/v4_0/cons_sit_cte_v4_00.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""This file was generated by xsdata, v23.6, on 2023-06-28 18:36:32
"""This file was generated by xsdata, v23.6, on 2024-01-31 16:38:31
Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
Expand Down
2 changes: 1 addition & 1 deletion nfelib/cte/bindings/v4_0/cons_stat_serv_cte_v4_00.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""This file was generated by xsdata, v23.6, on 2023-06-28 18:36:32
"""This file was generated by xsdata, v23.6, on 2024-01-31 16:38:31
Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""This file was generated by xsdata, v23.6, on 2023-06-28 18:36:32
"""This file was generated by xsdata, v23.6, on 2024-01-31 16:38:31
Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
Expand Down
2 changes: 1 addition & 1 deletion nfelib/cte/bindings/v4_0/cte_modal_aereo_v4_00.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""This file was generated by xsdata, v23.6, on 2023-06-28 18:36:32
"""This file was generated by xsdata, v23.6, on 2024-01-31 16:38:31
Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
Expand Down
2 changes: 1 addition & 1 deletion nfelib/cte/bindings/v4_0/cte_modal_aquaviario_v4_00.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""This file was generated by xsdata, v23.6, on 2023-06-28 18:36:32
"""This file was generated by xsdata, v23.6, on 2024-01-31 16:38:31
Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
Expand Down
2 changes: 1 addition & 1 deletion nfelib/cte/bindings/v4_0/cte_modal_dutoviario_v4_00.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""This file was generated by xsdata, v23.6, on 2023-06-28 18:36:32
"""This file was generated by xsdata, v23.6, on 2024-01-31 16:38:31
Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
Expand Down
2 changes: 1 addition & 1 deletion nfelib/cte/bindings/v4_0/cte_modal_ferroviario_v4_00.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""This file was generated by xsdata, v23.6, on 2023-06-28 18:36:32
"""This file was generated by xsdata, v23.6, on 2024-01-31 16:38:31
Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
Expand Down
2 changes: 1 addition & 1 deletion nfelib/cte/bindings/v4_0/cte_modal_rodoviario_os_v4_00.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""This file was generated by xsdata, v23.6, on 2023-06-28 18:36:32
"""This file was generated by xsdata, v23.6, on 2024-01-31 16:38:31
Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
Expand Down
2 changes: 1 addition & 1 deletion nfelib/cte/bindings/v4_0/cte_modal_rodoviario_v4_00.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""This file was generated by xsdata, v23.6, on 2023-06-28 18:36:32
"""This file was generated by xsdata, v23.6, on 2024-01-31 16:38:31
Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
Expand Down
2 changes: 1 addition & 1 deletion nfelib/cte/bindings/v4_0/cte_multi_modal_v4_00.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""This file was generated by xsdata, v23.6, on 2023-06-28 18:36:32
"""This file was generated by xsdata, v23.6, on 2024-01-31 16:38:31
Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
Expand Down
2 changes: 1 addition & 1 deletion nfelib/cte/bindings/v4_0/cte_os_v4_00.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""This file was generated by xsdata, v23.6, on 2023-06-28 18:36:32
"""This file was generated by xsdata, v23.6, on 2024-01-31 16:38:31
Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
Expand Down
Loading

0 comments on commit 2876dac

Please sign in to comment.