pynotas-br 0.8.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pynotas_br-0.8.0/AUTHORS +40 -0
- pynotas_br-0.8.0/LICENSE +147 -0
- pynotas_br-0.8.0/MANIFEST.in +2 -0
- pynotas_br-0.8.0/PKG-INFO +193 -0
- pynotas_br-0.8.0/README.md +153 -0
- pynotas_br-0.8.0/pynotas/__init__.py +10 -0
- pynotas_br-0.8.0/pynotas/data/ISSQN/Lista-Servicos.txt +239 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF11.txt +52 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF12.txt +22 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF13.txt +62 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF14.txt +15 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF15.txt +144 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF16.txt +16 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF17.txt +139 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF21.txt +217 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF22.txt +224 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF23.txt +184 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF24.txt +167 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF25.txt +223 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF26.txt +185 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF27.txt +102 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF28.txt +75 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF29.txt +417 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF31.txt +853 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF32.txt +78 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF33.txt +92 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF35.txt +645 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF41.txt +399 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF42.txt +295 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF43.txt +497 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF50.txt +79 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF51.txt +142 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF52.txt +246 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF53.txt +1 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/MunIBGE-UF99.txt +1 -0
- pynotas_br-0.8.0/pynotas/data/MunIBGE/PaisIBGE.txt +249 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/consMDFeNaoEncTiposBasico_v1.00.xsd +93 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/consMDFeNaoEncTiposBasico_v3.00.xsd +107 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/consMDFeNaoEnc_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/consMDFeNaoEnc_v3.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/consReciMDFeTiposBasico_v1.00.xsd +144 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/consReciMDFeTiposBasico_v3.00.xsd +169 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/consReciMDFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/consReciMDFe_v3.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/consSitMDFeTiposBasico_v1.00.xsd +81 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/consSitMDFeTiposBasico_v3.00.xsd +136 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/consSitMDFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/consSitMDFe_v3.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/consStatServMDFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/consStatServMDFe_v3.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/consStatServTiposBasico_v1.00.xsd +104 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/consStatServTiposBasico_v3.00.xsd +104 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/distDFeInt_v1.00.xsd +63 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/distMDFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/distMDFe_v3.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/enviMDFe_v1.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/enviMDFe_v3.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/evAlteracaoPagtoServMDFe_v3.00.xsd +255 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/evCancMDFe_v1.00.xsd +38 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/evCancMDFe_v3.00.xsd +38 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/evConfirmaServMDFe_v3.00.xsd +34 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/evEncMDFe_v1.00.xsd +48 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/evEncMDFe_v3.00.xsd +59 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/evIncCondutorMDFe_v1.00.xsd +49 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/evIncCondutorMDFe_v3.00.xsd +49 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/evInclusaoDFeMDFe_v3.00.xsd +81 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/evPagtoOperMDFe_v3.00.xsd +287 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/eventoMDFeTiposBasico_v1.00.xsd +230 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/eventoMDFeTiposBasico_v3.00.xsd +300 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/eventoMDFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/eventoMDFe_v3.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/leiauteDistMDFe_v1.00.xsd +135 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/leiauteDistMDFe_v3.00.xsd +136 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/leiauteManCadTranspMDFe_v1.00.xsd +335 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeConsultaDFeTiposBasico_v1.00.xsd +99 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeConsultaDFeTiposBasico_v3.00.xsd +99 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeConsultaDFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeConsultaDFe_v3.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeConsultaPorPlacaTiposBasico_v3.00.xsd +253 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeConsultaPorPlaca_v3.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeManCadFrota_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeManCadTransp_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeModalAereo_v1.00.xsd +83 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeModalAereo_v3.00.xsd +83 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeModalAquaviario_v1.00.xsd +199 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeModalAquaviario_v3.00.xsd +274 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeModalFerroviario_v1.00.xsd +126 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeModalFerroviario_v3.00.xsd +145 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeModalRodoviario_v1.00.xsd +503 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeModalRodoviario_v3.00.xsd +926 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeTiposBasico_v1.00.xsd +1634 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfeTiposBasico_v3.00.xsd +2523 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/mdfe_v3.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/procEventoMDFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/procEventoMDFe_v3.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/procMDFe_v1.00.xsd +17 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/procMDFe_v3.00.xsd +37 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retConsMDFeNaoEnc_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retConsMDFeNaoEnc_v3.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retConsReciMDFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retConsReciMDFe_v3.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retConsSitMDFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retConsSitMDFe_v3.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retConsStatServMDFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retConsStatServMDFe_v3.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retDistDFeInt_v1.00.xsd +87 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retDistMDFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retDistMDFe_v3.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retEnviMDFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retEnviMDFe_v3.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retEventoMDFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retEventoMDFe_v3.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retMDFeConsultaDFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retMDFeConsultaDFe_v3.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retMDFeConsultaPorPlaca_v3.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retMDFe_v3.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retMdfeManCadFrota_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/retMdfeManCadTransp_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/tiposDistDFe_v1.00.xsd +198 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/tiposGeralMDFe_v1.00-OPENSSL.xsd +606 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/tiposGeralMDFe_v1.00.xsd +606 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/tiposGeralMDFe_v3.00.xsd +656 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/MDF-e/xmldsig-core-schema_v1.01.xsd +98 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/110150_v1.00.xsd +88 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/Averb_v1.00.xsd +11 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/CCe_v1.00.xsd +11 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/DFeTiposBasicos_v1.00.xsd +1954 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/EPEC_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/EventoCancEConf_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/EventoCancInsucessoNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/EventoEConf_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/EventoInsucessoNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/MT_inutNFe_v4.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/SuframaInternaliza_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/SuframaVistoria_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/confRecebto_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/consCad_v2.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/consGTIN_v1.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/consNFeDest_v1.01.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/consReciNFe_v3.10.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/consReciNFe_v4.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/consSitNFe_v3.10.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/consSitNFe_v4.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/consStatServ_v3.10.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/consStatServ_v4.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/distDFeInt_v1.00.xsd +71 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/distDFeInt_v1.01.xsd +97 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/downloadNFe_v1.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e110001_v1.00.xsd +84 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e110110_v1.00.xsd +58 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e110111_v1.00.xsd +42 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e110112_v1.00.xsd +69 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e110130_v1.00.xsd +102 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e110131_v1.00.xsd +51 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e110140NFCe_v1.00.xsd +118 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e110140NFe_v1.00.xsd +124 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e110140_v1.00.xsd +124 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e110150_v1.00.xsd +88 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e110192_v1.00.xsd +106 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e110193_v1.00.xsd +40 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e110300_v1.00.xsd +111 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e110750_v1.00.xsd +138 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e110751_v1.00.xsd +39 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e111500_v1.00.xsd +69 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e111501_v1.00.xsd +69 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e111502_v1.00.xsd +50 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e111503_v1.00.xsd +50 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e112110_v1.00.xsd +69 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e112120_v1.00 .xsd +107 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e112130_v1.00.xsd +119 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e112140_v1.00.xsd +107 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e112150_v1.00.xsd +63 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e210200_v1.00.xsd +31 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e210210_v1.00.xsd +31 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e210220_v1.00.xsd +44 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e210240_v1.00.xsd +44 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e211110_v1.00.xsd +134 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e211120_v1.00.xsd +124 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e211124_v1.00.xsd +107 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e211128_v1.00.xsd +69 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e211130_v1.00.xsd +107 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e211140_v1.00.xsd +107 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e211150_v1.00.xsd +85 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e212110_v1.00.xsd +70 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e212120_v1.00.xsd +69 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e411500_v1.00.xsd +134 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e411501_v1.00.xsd +134 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e411502_v1.00.xsd +95 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e411503_v1.00.xsd +95 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e412120_v1.00.xsd +88 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e412130_v1.00.xsd +88 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e412140_v1.00.xsd +177 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e610130_v1.00.xsd +128 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e610131_v1.00.xsd +68 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e790700_v1.00.xsd +148 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e990900_v1.00.xsd +87 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/e990910_v1.00.xsd +81 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envAverb_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envCCe_v1.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envCancelPProrrogNFe_v1.0.xsd +50 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envComprovanteEntregaNFe_v1.00.xsd +11 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envConfRecebto_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envEPEC_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envEventoAtorInteressado_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envEventoCancEConf_v1.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envEventoCancEntregaNFe_v1.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envEventoCancInsucessoNFe_v1.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envEventoCancNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envEventoCancSubst_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envEventoEConf_v1.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envEventoEntregaNFe_v1.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envEventoInsucessoNFe_v1.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envEvento_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envFiscoNfe_v1.0.xsd +179 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envPProrrogNFe_v1.0.xsd +65 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envRemIndus_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envSuframaInternaliza_v1.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/envSuframaVistoria_v1.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/enviNFe_v3.10.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/enviNFe_v4.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/eventoAtorInteressado_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/eventoCancEntregaNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/eventoCancNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/eventoCancSubst_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/eventoEPEC_v0.01.xsd +267 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/eventoEPEC_v1.00.xsd +231 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/eventoEntregaNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/eventoRemIndus_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/inutNFe_v3.10.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/inutNFe_v4.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteAverb_v1.00.xsd +468 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteCCe_v1.00.xsd +382 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteCcgConsGTIN_v1.00.xsd +94 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteComprovanteEntregaNFe_v1.00.xsd +487 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteConfRecebto_v1.00.xsd +369 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteConsNFeDest_v1.01.xsd +483 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteConsSitNFe_v3.10.xsd +502 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteConsSitNFe_v4.00.xsd +502 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteConsStatServ_v3.10.xsd +98 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteConsStatServ_v4.00.xsd +98 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteConsultaCadastro_v2.00.xsd +404 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteDownloadNFe_v1.00.xsd +149 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteEPEC_v1.00.xsd +423 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteEventoAtorInteressado_v1.00.xsd +384 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteEventoCancEConf_v1.00.xsd +296 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteEventoCancEntregaNFe_v1.00.xsd +307 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteEventoCancInsucessoNFe_v1.00.xsd +297 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteEventoCancNFe_v1.00.xsd +358 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteEventoCancSubst_v1.00.xsd +366 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteEventoEConf_v1.00.xsd +296 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteEventoEntregaNFe_v1.00.xsd +321 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteEventoInsucessoNFe_v1.00.xsd +297 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteEvento_v1.00.xsd +369 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteInutNFe_v3.10.xsd +193 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteInutNFe_v4.00.xsd +193 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteInutNFe_v4.00_MT.xsd +200 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteNFe_v3.10.xsd +6060 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteNFe_v4.00.xsd +7802 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteRemIndus_v1.00.xsd +344 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteSuframaInternaliza_v1.00.xsd +642 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/leiauteSuframaVistoria_v1.00.xsd +648 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/nfe_v3.10.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/nfe_v4.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procAverbNFe_v1.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procCCeNFe_v1.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procComprovanteEntregaNFe_v1.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procConfRecebtoNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procEPEC_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procEventoAtorInteressado_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procEventoCancEConf_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procEventoCancEntregaNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procEventoCancInsucessoNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procEventoCancNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procEventoCancSubst_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procEventoEConf_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procEventoEntregaNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procEventoInsucessoNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procEventoNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procEventoNFe_v99.99.xsd +37 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procInutNFe_v3.10.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procInutNFe_v4.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procNFe_v3.10.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procNFe_v4.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/procRemIndus_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/prod_leiauteNFe_v4.00.xsd +6736 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/resEvento_v1.00.xsd +94 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/resEvento_v1.01.xsd +108 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/resNFe_v1.00.xsd +110 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/resNFe_v1.01.xsd +122 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retComprovanteEntregaNFe_v1.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retConsCad_v2.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retConsGTIN_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retConsReciNFe_v3.10.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retConsReciNFe_v4.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retConsSitNFe_v3.10.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retConsSitNFe_v4.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retConsStatServ_v3.10.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retConsStatServ_v4.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retDistDFeInt_v1.00.xsd +84 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retDistDFeInt_v1.01.xsd +99 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retDownloadNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEnvAverb_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEnvAverb_v1.00_1.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEnvCCe_v1.00.xsd +10 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEnvCancelPProrrogNFe_v1.0.xsd +231 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEnvConfRecebto_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEnvEPEC_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEnvEventoAtorInteressado_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEnvEventoCancNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEnvEventoCancSubst_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEnvEvento_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEnvFiscoNFe_v1.0.xsd +234 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEnvRemIndus_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEnvSuframaInternaliza_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEnvSuframaVistoria_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEnviNFe_v3.10.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEnviNFe_v4.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEventoCancEConf_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEventoCancEntregaNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEventoCancInsucessoNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEventoEConf_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEventoEPEC_v0.01.xsd +207 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEventoEntregaNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retEventoInsucessoNFe_v1.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retInutNFe_v3.10.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retInutNFe_v4.00.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retPProrrogNFe_v1.0.xsd +233 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/retconsNFeDest_v1.01.xsd +9 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/tiposBasico_v1.03.xsd +965 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/tiposBasico_v3.10.xsd +571 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/tiposBasico_v4.00.xsd +608 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/tiposBasicosCcgConsGTIN_v1.00.xsd +84 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/tiposDistDFe_v1.00.xsd +217 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/tiposDistDFe_v1.01.xsd +222 -0
- pynotas_br-0.8.0/pynotas/data/XSDs/NF-e/xmldsig-core-schema_v1.01.xsd +98 -0
- pynotas_br-0.8.0/pynotas/data/certificados/icp-brasil.pem +7851 -0
- pynotas_br-0.8.0/pynotas/entidades/__init__.py +12 -0
- pynotas_br-0.8.0/pynotas/entidades/base.py +70 -0
- pynotas_br-0.8.0/pynotas/entidades/certificado.py +105 -0
- pynotas_br-0.8.0/pynotas/entidades/cliente.py +66 -0
- pynotas_br-0.8.0/pynotas/entidades/emitente.py +66 -0
- pynotas_br-0.8.0/pynotas/entidades/evento.py +235 -0
- pynotas_br-0.8.0/pynotas/entidades/fonte_dados.py +132 -0
- pynotas_br-0.8.0/pynotas/entidades/lotes.py +5 -0
- pynotas_br-0.8.0/pynotas/entidades/manifesto.py +446 -0
- pynotas_br-0.8.0/pynotas/entidades/notafiscal.py +1315 -0
- pynotas_br-0.8.0/pynotas/entidades/produto.py +183 -0
- pynotas_br-0.8.0/pynotas/entidades/transportadora.py +29 -0
- pynotas_br-0.8.0/pynotas/excecoes.py +6 -0
- pynotas_br-0.8.0/pynotas/processamento/__init__.py +11 -0
- pynotas_br-0.8.0/pynotas/processamento/assinatura.py +59 -0
- pynotas_br-0.8.0/pynotas/processamento/comunicacao.py +1139 -0
- pynotas_br-0.8.0/pynotas/processamento/danfe.py +10 -0
- pynotas_br-0.8.0/pynotas/processamento/resposta.py +19 -0
- pynotas_br-0.8.0/pynotas/processamento/serializacao.py +2800 -0
- pynotas_br-0.8.0/pynotas/processamento/validacao.py +65 -0
- pynotas_br-0.8.0/pynotas/utils/__init__.py +251 -0
- pynotas_br-0.8.0/pynotas/utils/bar_code_128.py +673 -0
- pynotas_br-0.8.0/pynotas/utils/descompactar.py +23 -0
- pynotas_br-0.8.0/pynotas/utils/flags.py +714 -0
- pynotas_br-0.8.0/pynotas/utils/tls.py +69 -0
- pynotas_br-0.8.0/pynotas/utils/webservices.py +542 -0
- pynotas_br-0.8.0/pynotas/utils/xml_writer.py +93 -0
- pynotas_br-0.8.0/pynotas_br.egg-info/PKG-INFO +193 -0
- pynotas_br-0.8.0/pynotas_br.egg-info/SOURCES.txt +369 -0
- pynotas_br-0.8.0/pynotas_br.egg-info/dependency_links.txt +1 -0
- pynotas_br-0.8.0/pynotas_br.egg-info/requires.txt +9 -0
- pynotas_br-0.8.0/pynotas_br.egg-info/top_level.txt +1 -0
- pynotas_br-0.8.0/pyproject.toml +88 -0
- pynotas_br-0.8.0/setup.cfg +4 -0
pynotas_br-0.8.0/AUTHORS
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
pyNotas
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
O pyNotas é mantido por Wendel Siqueira e deriva do PyNFe
|
|
5
|
+
<https://github.com/TadaSoftware/PyNFe>, mantido pela TadaSoftware. A lista
|
|
6
|
+
completa de quem contribuiu com o código está no histórico do git
|
|
7
|
+
(git shortlog -sn).
|
|
8
|
+
|
|
9
|
+
O texto abaixo é o registro de autoria original do PyNFe, mantido sem
|
|
10
|
+
alterações.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
Sobre os autores deste e outros créditos
|
|
14
|
+
========================================
|
|
15
|
+
|
|
16
|
+
O PyNFe foi criado por Marinho Brandão <marinho at gmail.com> e seu
|
|
17
|
+
desenvolvimento só foi possível graças à massiva colaboração de pessoas,
|
|
18
|
+
empresas e outros projetos livres para o mesmo fim, disponívels para outras
|
|
19
|
+
linguagens.
|
|
20
|
+
|
|
21
|
+
A TaugaRS Sistemas <http://taugars.com.br/> gentil e voluntariamente forneceu o
|
|
22
|
+
código-fonte de seu pacote já testado e maduro para servir de base de apoio
|
|
23
|
+
neste processo, assim como seu know-how de mais de 2 anos em NF-eletronicas.
|
|
24
|
+
Por esse motivo, encontra-se em igual ou maior importância que a do criador, o
|
|
25
|
+
desenvolvedor Ari Caldeira e o restante da diretoria desta empresa.
|
|
26
|
+
|
|
27
|
+
Outra fonte importante de informação foi do projeto de componentes para Delphi
|
|
28
|
+
voltados para automação comercial ACBr <http://acbr.sourceforge.net/>, que
|
|
29
|
+
inclui um componente que tem a mesma finalidade que o PyNFe.
|
|
30
|
+
|
|
31
|
+
Outras pessoas que devem ser referenciadas por sua colaboração, seja através de
|
|
32
|
+
know-how e debates, seja através de código enviado para colaborar:
|
|
33
|
+
|
|
34
|
+
- Diogo Daniel (Prosig Sistemas)
|
|
35
|
+
- Antonio Prado (Antonio Prado Sistemas)
|
|
36
|
+
- Italo Maia <italomaia at gmail.com>
|
|
37
|
+
- Junior Tada (juniortada@gmail.com)
|
|
38
|
+
- Leonardo Tada
|
|
39
|
+
- Leonardo Gregianin (leogregianin@gmail.com)
|
|
40
|
+
|
pynotas_br-0.8.0/LICENSE
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
|
|
3
|
+
Version 3, 29 June 2007
|
|
4
|
+
|
|
5
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
|
6
|
+
|
|
7
|
+
Everyone is permitted to copy and distribute verbatim copies of this license
|
|
8
|
+
document, but changing it is not allowed.
|
|
9
|
+
|
|
10
|
+
This version of the GNU Lesser General Public License incorporates the terms
|
|
11
|
+
and conditions of version 3 of the GNU General Public License, supplemented by
|
|
12
|
+
the additional permissions listed below.
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, “this License” refers to version 3 of the GNU Lesser General
|
|
16
|
+
Public License, and the “GNU GPL” refers to version 3 of the GNU General Public
|
|
17
|
+
License.
|
|
18
|
+
|
|
19
|
+
“The Library” refers to a covered work governed by this License, other than an
|
|
20
|
+
Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An “Application” is any work that makes use of an interface provided by the
|
|
23
|
+
Library, but which is not otherwise based on the Library. Defining a subclass
|
|
24
|
+
of a class defined by the Library is deemed a mode of using an interface
|
|
25
|
+
provided by the Library.
|
|
26
|
+
|
|
27
|
+
A “Combined Work” is a work produced by combining or linking an Application
|
|
28
|
+
with the Library. The particular version of the Library with which the Combined
|
|
29
|
+
Work was made is also called the “Linked Version”.
|
|
30
|
+
|
|
31
|
+
The “Minimal Corresponding Source” for a Combined Work means the Corresponding
|
|
32
|
+
Source for the Combined Work, excluding any source code for portions of the
|
|
33
|
+
Combined Work that, considered in isolation, are based on the Application, and
|
|
34
|
+
not on the Linked Version.
|
|
35
|
+
|
|
36
|
+
The “Corresponding Application Code” for a Combined Work means the object code
|
|
37
|
+
and/or source code for the Application, including any data and utility programs
|
|
38
|
+
needed for reproducing the Combined Work from the Application, but excluding
|
|
39
|
+
the System Libraries of the Combined Work.
|
|
40
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
41
|
+
|
|
42
|
+
You may convey a covered work under sections 3 and 4 of this License without
|
|
43
|
+
being bound by section 3 of the GNU GPL.
|
|
44
|
+
2. Conveying Modified Versions.
|
|
45
|
+
|
|
46
|
+
If you modify a copy of the Library, and, in your modifications, a facility
|
|
47
|
+
refers to a function or data to be supplied by an Application that uses the
|
|
48
|
+
facility (other than as an argument passed when the facility is invoked), then
|
|
49
|
+
you may convey a copy of the modified version:
|
|
50
|
+
|
|
51
|
+
* a) under this License, provided that you make a good faith effort to
|
|
52
|
+
ensure that, in the event an Application does not supply the function
|
|
53
|
+
or data, the facility still operates, and performs whatever part of
|
|
54
|
+
its purpose remains meaningful, or
|
|
55
|
+
* b) under the GNU GPL, with none of the additional permissions of this
|
|
56
|
+
License applicable to that copy.
|
|
57
|
+
|
|
58
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
59
|
+
|
|
60
|
+
The object code form of an Application may incorporate material from a header
|
|
61
|
+
file that is part of the Library. You may convey such object code under terms
|
|
62
|
+
of your choice, provided that, if the incorporated material is not limited to
|
|
63
|
+
numerical parameters, data structure layouts and accessors, or small macros,
|
|
64
|
+
inline functions and templates (ten or fewer lines in length), you do both of
|
|
65
|
+
the following:
|
|
66
|
+
|
|
67
|
+
* a) Give prominent notice with each copy of the object code that the
|
|
68
|
+
Library is used in it and that the Library and its use are covered by
|
|
69
|
+
this License.
|
|
70
|
+
* b) Accompany the object code with a copy of the GNU GPL and this license
|
|
71
|
+
document.
|
|
72
|
+
|
|
73
|
+
4. Combined Works.
|
|
74
|
+
|
|
75
|
+
You may convey a Combined Work under terms of your choice that, taken together,
|
|
76
|
+
effectively do not restrict modification of the portions of the Library
|
|
77
|
+
contained in the Combined Work and reverse engineering for debugging such
|
|
78
|
+
modifications, if you also do each of the following:
|
|
79
|
+
|
|
80
|
+
* a) Give prominent notice with each copy of the Combined Work that the
|
|
81
|
+
Library is used in it and that the Library and its use are covered by
|
|
82
|
+
this License.
|
|
83
|
+
* b) Accompany the Combined Work with a copy of the GNU GPL and this
|
|
84
|
+
license document.
|
|
85
|
+
* c) For a Combined Work that displays copyright notices during execution,
|
|
86
|
+
include the copyright notice for the Library among these notices, as
|
|
87
|
+
well as a reference directing the user to the copies of the GNU GPL
|
|
88
|
+
and this license document.
|
|
89
|
+
* d) Do one of the following:
|
|
90
|
+
o 0) Convey the Minimal Corresponding Source under the terms of this
|
|
91
|
+
License, and the Corresponding Application Code in a form
|
|
92
|
+
suitable for, and under terms that permit, the user to recombine
|
|
93
|
+
or relink the Application with a modified version of the Linked
|
|
94
|
+
Version to produce a modified Combined Work, in the manner
|
|
95
|
+
specified by section 6 of the GNU GPL for conveying
|
|
96
|
+
Corresponding Source.
|
|
97
|
+
o 1) Use a suitable shared library mechanism for linking with the
|
|
98
|
+
Library. A suitable mechanism is one that (a) uses at run time a
|
|
99
|
+
copy of the Library already present on the user's computer
|
|
100
|
+
system, and (b) will operate properly with a modified version of
|
|
101
|
+
the Library that is interface-compatible with the Linked Version.
|
|
102
|
+
* e) Provide Installation Information, but only if you would otherwise be
|
|
103
|
+
required to provide such information under section 6 of the GNU GPL,
|
|
104
|
+
and only to the extent that such information is necessary to install
|
|
105
|
+
and execute a modified version of the Combined Work produced by
|
|
106
|
+
recombining or relinking the Application with a modified version of the
|
|
107
|
+
Linked Version. (If you use option 4d0, the Installation Information
|
|
108
|
+
must accompany the Minimal Corresponding Source and Corresponding
|
|
109
|
+
Application Code. If you use option 4d1, you must provide the
|
|
110
|
+
Installation Information in the manner specified by section 6 of the
|
|
111
|
+
GNU GPL for conveying Corresponding Source.)
|
|
112
|
+
|
|
113
|
+
5. Combined Libraries.
|
|
114
|
+
|
|
115
|
+
You may place library facilities that are a work based on the Library side by
|
|
116
|
+
side in a single library together with other library facilities that are not
|
|
117
|
+
Applications and are not covered by this License, and convey such a combined
|
|
118
|
+
library under terms of your choice, if you do both of the following:
|
|
119
|
+
|
|
120
|
+
* a) Accompany the combined library with a copy of the same work based on
|
|
121
|
+
the Library, uncombined with any other library facilities, conveyed
|
|
122
|
+
under the terms of this License.
|
|
123
|
+
* b) Give prominent notice with the combined library that part of it is a
|
|
124
|
+
work based on the Library, and explaining where to find the
|
|
125
|
+
accompanying uncombined form of the same work.
|
|
126
|
+
|
|
127
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
128
|
+
|
|
129
|
+
The Free Software Foundation may publish revised and/or new versions of the GNU
|
|
130
|
+
Lesser General Public License from time to time. Such new versions will be
|
|
131
|
+
similar in spirit to the present version, but may differ in detail to address
|
|
132
|
+
new problems or concerns.
|
|
133
|
+
|
|
134
|
+
Each version is given a distinguishing version number. If the Library as you
|
|
135
|
+
received it specifies that a certain numbered version of the GNU Lesser General
|
|
136
|
+
Public License “or any later version” applies to it, you have the option of
|
|
137
|
+
following the terms and conditions either of that published version or of any
|
|
138
|
+
later version published by the Free Software Foundation. If the Library as you
|
|
139
|
+
received it does not specify a version number of the GNU Lesser General Public
|
|
140
|
+
License, you may choose any version of the GNU Lesser General Public License
|
|
141
|
+
ever published by the Free Software Foundation.
|
|
142
|
+
|
|
143
|
+
If the Library as you received it specifies that a proxy can decide whether
|
|
144
|
+
future versions of the GNU Lesser General Public License shall apply, that
|
|
145
|
+
proxy's public statement of acceptance of any version is permanent
|
|
146
|
+
authorization for you to choose that version for the Library.
|
|
147
|
+
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pynotas-br
|
|
3
|
+
Version: 0.8.0
|
|
4
|
+
Summary: Emissão de NF-e e NFC-e em Python, com Reforma Tributária (IBS/CBS) e Simples Nacional
|
|
5
|
+
Author: Marinho Brandão
|
|
6
|
+
Author-email: TadaSoftware <tadasoftware@gmail.com>
|
|
7
|
+
Maintainer-email: Wendel Siqueira <wendel.don@gmail.com>
|
|
8
|
+
Project-URL: Homepage, https://github.com/WendelSiqueira/pyNotas
|
|
9
|
+
Project-URL: Repository, https://github.com/WendelSiqueira/pyNotas
|
|
10
|
+
Project-URL: Issues, https://github.com/WendelSiqueira/pyNotas/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/WendelSiqueira/pyNotas/blob/main/CHANGELOG.md
|
|
12
|
+
Project-URL: PyNFe original, https://github.com/TadaSoftware/PyNFe
|
|
13
|
+
Keywords: nfe,nfce,nota fiscal,sefaz,reforma tributaria,ibs,cbs
|
|
14
|
+
Classifier: Development Status :: 4 - Beta
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Natural Language :: Portuguese (Brazilian)
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
|
|
24
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
25
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
26
|
+
Classifier: Operating System :: OS Independent
|
|
27
|
+
Requires-Python: <4,>=3.9
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
License-File: LICENSE
|
|
30
|
+
License-File: AUTHORS
|
|
31
|
+
Requires-Dist: requests<3,>=2.32.4
|
|
32
|
+
Requires-Dist: certifi
|
|
33
|
+
Requires-Dist: lxml>=5.4.0
|
|
34
|
+
Requires-Dist: signxml>=4.1.0
|
|
35
|
+
Requires-Dist: cryptography>=43.0.3
|
|
36
|
+
Requires-Dist: pyopenssl<26,>=25.1.0
|
|
37
|
+
Provides-Extra: impressao
|
|
38
|
+
Requires-Dist: brazilfiscalreport[damdfe]; extra == "impressao"
|
|
39
|
+
Dynamic: license-file
|
|
40
|
+
|
|
41
|
+
## pyNotas
|
|
42
|
+
|
|
43
|
+
Biblioteca Python de interface com os webservices de Nota Fiscal Eletrônica (NF-e) e Nota Fiscal de Consumidor Eletrônica (NFC-e) da SEFAZ e Receita Federal do Brasil, e de Manifesto de Documentos Fiscais Eletrônicos (MDF-e).
|
|
44
|
+
|
|
45
|
+
Atualizada para a **Reforma Tributária (IBS/CBS)** e para o **pacote de schemas PL_010h** da NF-e, com foco em **NF-e modelo 55 emitida por empresas do Simples Nacional**.
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
Reforma Tributária
|
|
49
|
+
------------
|
|
50
|
+
|
|
51
|
+
| Item | Situação |
|
|
52
|
+
|---------|----------|
|
|
53
|
+
| Schemas da NF-e atualizados para o **PL_010h** (inclui `DFeTiposBasicos_v1.00.xsd` com os tipos de IBS/CBS) | feito |
|
|
54
|
+
| Testes da Reforma validam o XML gerado contra o schema oficial | feito |
|
|
55
|
+
| **`gRed`**: redução de alíquota em `gIBSUF`, `gIBSMun` e `gCBS` | feito |
|
|
56
|
+
| **`gTribSN`**: IBS e CBS do Simples Nacional, no item e nos totais (`IBSCBSTot`) | feito |
|
|
57
|
+
| Revisão da tabela de CST de IBS/CBS contra os dados oficiais da Receita | a fazer |
|
|
58
|
+
| Demais grupos da Reforma: `gDif`, `gDevTrib`, `gIBSCBSMono`, `gEstornoCred`, `gCredPresOper` | a fazer |
|
|
59
|
+
|
|
60
|
+
Detalhes, campos e exemplos de XML em [docs/reforma_tributaria.md](https://github.com/WendelSiqueira/pyNotas/blob/main/docs/reforma_tributaria.md).
|
|
61
|
+
|
|
62
|
+
A lib **serializa** os valores de IBS/CBS informados, mas **não calcula** alíquotas nem valores. Para o cálculo, a Receita Federal publicou calculadoras oficiais em código aberto:
|
|
63
|
+
|
|
64
|
+
- [calculadora-rtc-regime-regular](https://github.com/ReceitaFederal/calculadora-rtc-regime-regular): regime regular, com tabelas oficiais de CST, cClassTrib, NCM e alíquotas
|
|
65
|
+
- [calculadora-rtc-simples-nacional](https://github.com/ReceitaFederal/calculadora-rtc-simples-nacional): Simples Nacional
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
Características
|
|
69
|
+
------------
|
|
70
|
+
|
|
71
|
+
* NF-e e NFC-e:
|
|
72
|
+
* Versão 4.00, schemas PL_010h
|
|
73
|
+
* Reforma Tributária: grupos `IBSCBS`, `gRed`, `gTribSN` e totais `IBSCBSTot`
|
|
74
|
+
* CEST, com indicador de escala relevante e CNPJ do fabricante
|
|
75
|
+
* Modelo de Documento fiscal 55 e 65
|
|
76
|
+
* Configuração para utilização em ambiente de produção e homologação (testes)
|
|
77
|
+
* Emissão de notas fiscais normal e em contingência
|
|
78
|
+
* Consulta Status do Serviço
|
|
79
|
+
* Consultar Cadastro de contribuinte
|
|
80
|
+
* Consultar nota fiscal pela chave de acesso
|
|
81
|
+
* Consultar protocolo
|
|
82
|
+
* Evento de cancelamento de notas
|
|
83
|
+
* Evento de carta de correção
|
|
84
|
+
* Evento de inutilizar de notas
|
|
85
|
+
* Evento de manifestação do destinatário
|
|
86
|
+
* Consultar Distribuição DF-e
|
|
87
|
+
|
|
88
|
+
* MDF-e:
|
|
89
|
+
* Versão 3.00, modelo 58
|
|
90
|
+
* Emissão de Manifesto, consultas e eventos (cancelamento, encerramento, inclusão de condutor e de DF-e, pagamento)
|
|
91
|
+
|
|
92
|
+
* CT-e: Consultar Distribuição DF-e
|
|
93
|
+
|
|
94
|
+
NFS-e (nota de serviço) não é suportada. Os provedores municipais Betha e Ginfes foram removidos; o caminho para NFS-e seria o padrão nacional.
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
Instalação
|
|
98
|
+
-----------
|
|
99
|
+
|
|
100
|
+
O pacote se chama `pynotas-br` (o nome `pynotas` já é de outro projeto) e o import é `pynotas`. A versão 0.8.0 está no **TestPyPI**, o índice de testes do PyPI:
|
|
101
|
+
|
|
102
|
+
```sh
|
|
103
|
+
uv pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ pynotas-br
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Direto do repositório, como dependência de outro projeto:
|
|
107
|
+
|
|
108
|
+
```sh
|
|
109
|
+
uv add "pynotas-br @ git+https://github.com/WendelSiqueira/pyNotas.git@v0.8.0"
|
|
110
|
+
uv add "pynotas-br[impressao] @ git+https://github.com/WendelSiqueira/pyNotas.git@v0.8.0" # DANFE (brazilfiscalreport)
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Com pip, o mesmo endereço funciona: `pip install "pynotas-br @ git+https://github.com/WendelSiqueira/pyNotas.git@v0.8.0"`. O histórico de versões está no [CHANGELOG](https://github.com/WendelSiqueira/pyNotas/blob/main/CHANGELOG.md).
|
|
114
|
+
|
|
115
|
+
Dependências principais: `lxml` (XML), `signxml` (assinatura), `pyopenssl` e `cryptography` (certificado A1) e `requests` (webservices da SEFAZ).
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
Exemplo de uso
|
|
119
|
+
-----------
|
|
120
|
+
|
|
121
|
+
Consulta de status do serviço:
|
|
122
|
+
|
|
123
|
+
```python
|
|
124
|
+
from pynotas.processamento.comunicacao import ComunicacaoSefaz
|
|
125
|
+
|
|
126
|
+
certificado = "/home/user/certificado.pfx"
|
|
127
|
+
senha = 'senha'
|
|
128
|
+
uf = 'pr'
|
|
129
|
+
homologacao = True
|
|
130
|
+
|
|
131
|
+
con = ComunicacaoSefaz(uf, certificado, senha, homologacao)
|
|
132
|
+
xml = con.status_servico('nfe')
|
|
133
|
+
print(xml.text)
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
A conexão com a SEFAZ verifica o certificado do servidor usando as CAs padrão (`certifi`) e as da ICP-Brasil, que vêm com a lib (`pynotas/data/certificados/icp-brasil.pem`). Para usar outra cadeia, passe o caminho em `verificar_ssl="/caminho/cas.pem"`. `verificar_ssl=False` desliga a verificação, mas deixa a conexão sujeita a interceptação.
|
|
137
|
+
|
|
138
|
+
Exemplos de emissão com IBS/CBS em [docs/reforma_tributaria.md](https://github.com/WendelSiqueira/pyNotas/blob/main/docs/reforma_tributaria.md). O que a lib valida, e as rejeições da SEFAZ já verificadas em homologação, estão em [docs/regras_sefaz.md](https://github.com/WendelSiqueira/pyNotas/blob/main/docs/regras_sefaz.md). Mais exemplos gerais no [Wiki](https://github.com/TadaSoftware/PyNFe/wiki).
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
Desenvolvimento
|
|
142
|
+
-----------
|
|
143
|
+
|
|
144
|
+
As dependências são gerenciadas com o [uv](https://docs.astral.sh/uv/) (`pyproject.toml` e `uv.lock`).
|
|
145
|
+
|
|
146
|
+
```sh
|
|
147
|
+
# Ambiente com as dependências de desenvolvimento
|
|
148
|
+
uv sync
|
|
149
|
+
|
|
150
|
+
# Testes
|
|
151
|
+
uv run pytest
|
|
152
|
+
|
|
153
|
+
# Lint e formatação (ruff fixado no grupo dev do pyproject.toml)
|
|
154
|
+
uv run ruff check .
|
|
155
|
+
uv run ruff format .
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Para testar contra a SEFAZ em **homologação** (notas sem valor fiscal) com o seu certificado A1, use `scripts/homologacao.py`. A configuração fica fora do repositório, em `~/.config/pynotas/homologacao.env` (caminho do certificado, senha e UF), e os dados do emitente vêm do certificado e da consulta de cadastro da SEFAZ:
|
|
159
|
+
|
|
160
|
+
```sh
|
|
161
|
+
uv run python scripts/homologacao.py status # status da SEFAZ e cadastro do emitente
|
|
162
|
+
uv run python scripts/homologacao.py emitir # emite uma NF-e de teste
|
|
163
|
+
uv run python scripts/homologacao.py emitir --reforma
|
|
164
|
+
uv run python scripts/homologacao.py emitir --cest 2003800 --escala N --cnpj-fabricante 11222333000181
|
|
165
|
+
uv run python scripts/homologacao.py notas # notas emitidas pela ferramenta
|
|
166
|
+
uv run python scripts/homologacao.py consultar # sem chave: ultima nota emitida
|
|
167
|
+
uv run python scripts/homologacao.py cce --correcao "texto da correcao"
|
|
168
|
+
uv run python scripts/homologacao.py cancelar
|
|
169
|
+
uv run python scripts/homologacao.py inutilizar --inicio 10 --fim 12
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Para atualizar as ACs da ICP-Brasil a partir do pacote oficial do ITI: `uv run python scripts/atualizar_cadeia_icp_brasil.py`. Testes que acessam a SEFAZ só rodam com `PYNOTAS_TESTES_REDE=1`.
|
|
173
|
+
|
|
174
|
+
Orientações para agentes de IA que trabalham no código estão no [AGENTS.md](https://github.com/WendelSiqueira/pyNotas/blob/main/AGENTS.md).
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
Referências
|
|
178
|
+
-----------
|
|
179
|
+
|
|
180
|
+
- Portal da NF-e: http://www.nfe.fazenda.gov.br/
|
|
181
|
+
- Tabela de classificação tributária (cClassTrib): https://dfe-portal.svrs.rs.gov.br/DFE/TabelaClassificacaoTributaria
|
|
182
|
+
- MDF-e: https://dfe-portal.svrs.rs.gov.br/mdfe
|
|
183
|
+
- Validador de XML da NF-e: https://www.sefaz.rs.gov.br/NFE/NFE-VAL.aspx
|
|
184
|
+
- Validador de assinaturas: https://servicos.receita.fazenda.gov.br/servicos/assinadoc/ValidadorAssinaturas.app/valida.aspx
|
|
185
|
+
- Impressão de documentos fiscais: https://github.com/Engenere/BrazilFiscalReport
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
Créditos e licença
|
|
189
|
+
-----------
|
|
190
|
+
|
|
191
|
+
Baseado no [PyNFe](https://github.com/TadaSoftware/PyNFe), da TadaSoftware e colaboradores. Autoria original e créditos em [AUTHORS](https://github.com/WendelSiqueira/pyNotas/blob/main/AUTHORS).
|
|
192
|
+
|
|
193
|
+
Licenciado sob a [LGPL-3.0](https://github.com/WendelSiqueira/pyNotas/blob/main/LICENSE).
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
## pyNotas
|
|
2
|
+
|
|
3
|
+
Biblioteca Python de interface com os webservices de Nota Fiscal Eletrônica (NF-e) e Nota Fiscal de Consumidor Eletrônica (NFC-e) da SEFAZ e Receita Federal do Brasil, e de Manifesto de Documentos Fiscais Eletrônicos (MDF-e).
|
|
4
|
+
|
|
5
|
+
Atualizada para a **Reforma Tributária (IBS/CBS)** e para o **pacote de schemas PL_010h** da NF-e, com foco em **NF-e modelo 55 emitida por empresas do Simples Nacional**.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Reforma Tributária
|
|
9
|
+
------------
|
|
10
|
+
|
|
11
|
+
| Item | Situação |
|
|
12
|
+
|---------|----------|
|
|
13
|
+
| Schemas da NF-e atualizados para o **PL_010h** (inclui `DFeTiposBasicos_v1.00.xsd` com os tipos de IBS/CBS) | feito |
|
|
14
|
+
| Testes da Reforma validam o XML gerado contra o schema oficial | feito |
|
|
15
|
+
| **`gRed`**: redução de alíquota em `gIBSUF`, `gIBSMun` e `gCBS` | feito |
|
|
16
|
+
| **`gTribSN`**: IBS e CBS do Simples Nacional, no item e nos totais (`IBSCBSTot`) | feito |
|
|
17
|
+
| Revisão da tabela de CST de IBS/CBS contra os dados oficiais da Receita | a fazer |
|
|
18
|
+
| Demais grupos da Reforma: `gDif`, `gDevTrib`, `gIBSCBSMono`, `gEstornoCred`, `gCredPresOper` | a fazer |
|
|
19
|
+
|
|
20
|
+
Detalhes, campos e exemplos de XML em [docs/reforma_tributaria.md](https://github.com/WendelSiqueira/pyNotas/blob/main/docs/reforma_tributaria.md).
|
|
21
|
+
|
|
22
|
+
A lib **serializa** os valores de IBS/CBS informados, mas **não calcula** alíquotas nem valores. Para o cálculo, a Receita Federal publicou calculadoras oficiais em código aberto:
|
|
23
|
+
|
|
24
|
+
- [calculadora-rtc-regime-regular](https://github.com/ReceitaFederal/calculadora-rtc-regime-regular): regime regular, com tabelas oficiais de CST, cClassTrib, NCM e alíquotas
|
|
25
|
+
- [calculadora-rtc-simples-nacional](https://github.com/ReceitaFederal/calculadora-rtc-simples-nacional): Simples Nacional
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
Características
|
|
29
|
+
------------
|
|
30
|
+
|
|
31
|
+
* NF-e e NFC-e:
|
|
32
|
+
* Versão 4.00, schemas PL_010h
|
|
33
|
+
* Reforma Tributária: grupos `IBSCBS`, `gRed`, `gTribSN` e totais `IBSCBSTot`
|
|
34
|
+
* CEST, com indicador de escala relevante e CNPJ do fabricante
|
|
35
|
+
* Modelo de Documento fiscal 55 e 65
|
|
36
|
+
* Configuração para utilização em ambiente de produção e homologação (testes)
|
|
37
|
+
* Emissão de notas fiscais normal e em contingência
|
|
38
|
+
* Consulta Status do Serviço
|
|
39
|
+
* Consultar Cadastro de contribuinte
|
|
40
|
+
* Consultar nota fiscal pela chave de acesso
|
|
41
|
+
* Consultar protocolo
|
|
42
|
+
* Evento de cancelamento de notas
|
|
43
|
+
* Evento de carta de correção
|
|
44
|
+
* Evento de inutilizar de notas
|
|
45
|
+
* Evento de manifestação do destinatário
|
|
46
|
+
* Consultar Distribuição DF-e
|
|
47
|
+
|
|
48
|
+
* MDF-e:
|
|
49
|
+
* Versão 3.00, modelo 58
|
|
50
|
+
* Emissão de Manifesto, consultas e eventos (cancelamento, encerramento, inclusão de condutor e de DF-e, pagamento)
|
|
51
|
+
|
|
52
|
+
* CT-e: Consultar Distribuição DF-e
|
|
53
|
+
|
|
54
|
+
NFS-e (nota de serviço) não é suportada. Os provedores municipais Betha e Ginfes foram removidos; o caminho para NFS-e seria o padrão nacional.
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
Instalação
|
|
58
|
+
-----------
|
|
59
|
+
|
|
60
|
+
O pacote se chama `pynotas-br` (o nome `pynotas` já é de outro projeto) e o import é `pynotas`. A versão 0.8.0 está no **TestPyPI**, o índice de testes do PyPI:
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
uv pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ pynotas-br
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Direto do repositório, como dependência de outro projeto:
|
|
67
|
+
|
|
68
|
+
```sh
|
|
69
|
+
uv add "pynotas-br @ git+https://github.com/WendelSiqueira/pyNotas.git@v0.8.0"
|
|
70
|
+
uv add "pynotas-br[impressao] @ git+https://github.com/WendelSiqueira/pyNotas.git@v0.8.0" # DANFE (brazilfiscalreport)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Com pip, o mesmo endereço funciona: `pip install "pynotas-br @ git+https://github.com/WendelSiqueira/pyNotas.git@v0.8.0"`. O histórico de versões está no [CHANGELOG](https://github.com/WendelSiqueira/pyNotas/blob/main/CHANGELOG.md).
|
|
74
|
+
|
|
75
|
+
Dependências principais: `lxml` (XML), `signxml` (assinatura), `pyopenssl` e `cryptography` (certificado A1) e `requests` (webservices da SEFAZ).
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
Exemplo de uso
|
|
79
|
+
-----------
|
|
80
|
+
|
|
81
|
+
Consulta de status do serviço:
|
|
82
|
+
|
|
83
|
+
```python
|
|
84
|
+
from pynotas.processamento.comunicacao import ComunicacaoSefaz
|
|
85
|
+
|
|
86
|
+
certificado = "/home/user/certificado.pfx"
|
|
87
|
+
senha = 'senha'
|
|
88
|
+
uf = 'pr'
|
|
89
|
+
homologacao = True
|
|
90
|
+
|
|
91
|
+
con = ComunicacaoSefaz(uf, certificado, senha, homologacao)
|
|
92
|
+
xml = con.status_servico('nfe')
|
|
93
|
+
print(xml.text)
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
A conexão com a SEFAZ verifica o certificado do servidor usando as CAs padrão (`certifi`) e as da ICP-Brasil, que vêm com a lib (`pynotas/data/certificados/icp-brasil.pem`). Para usar outra cadeia, passe o caminho em `verificar_ssl="/caminho/cas.pem"`. `verificar_ssl=False` desliga a verificação, mas deixa a conexão sujeita a interceptação.
|
|
97
|
+
|
|
98
|
+
Exemplos de emissão com IBS/CBS em [docs/reforma_tributaria.md](https://github.com/WendelSiqueira/pyNotas/blob/main/docs/reforma_tributaria.md). O que a lib valida, e as rejeições da SEFAZ já verificadas em homologação, estão em [docs/regras_sefaz.md](https://github.com/WendelSiqueira/pyNotas/blob/main/docs/regras_sefaz.md). Mais exemplos gerais no [Wiki](https://github.com/TadaSoftware/PyNFe/wiki).
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
Desenvolvimento
|
|
102
|
+
-----------
|
|
103
|
+
|
|
104
|
+
As dependências são gerenciadas com o [uv](https://docs.astral.sh/uv/) (`pyproject.toml` e `uv.lock`).
|
|
105
|
+
|
|
106
|
+
```sh
|
|
107
|
+
# Ambiente com as dependências de desenvolvimento
|
|
108
|
+
uv sync
|
|
109
|
+
|
|
110
|
+
# Testes
|
|
111
|
+
uv run pytest
|
|
112
|
+
|
|
113
|
+
# Lint e formatação (ruff fixado no grupo dev do pyproject.toml)
|
|
114
|
+
uv run ruff check .
|
|
115
|
+
uv run ruff format .
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Para testar contra a SEFAZ em **homologação** (notas sem valor fiscal) com o seu certificado A1, use `scripts/homologacao.py`. A configuração fica fora do repositório, em `~/.config/pynotas/homologacao.env` (caminho do certificado, senha e UF), e os dados do emitente vêm do certificado e da consulta de cadastro da SEFAZ:
|
|
119
|
+
|
|
120
|
+
```sh
|
|
121
|
+
uv run python scripts/homologacao.py status # status da SEFAZ e cadastro do emitente
|
|
122
|
+
uv run python scripts/homologacao.py emitir # emite uma NF-e de teste
|
|
123
|
+
uv run python scripts/homologacao.py emitir --reforma
|
|
124
|
+
uv run python scripts/homologacao.py emitir --cest 2003800 --escala N --cnpj-fabricante 11222333000181
|
|
125
|
+
uv run python scripts/homologacao.py notas # notas emitidas pela ferramenta
|
|
126
|
+
uv run python scripts/homologacao.py consultar # sem chave: ultima nota emitida
|
|
127
|
+
uv run python scripts/homologacao.py cce --correcao "texto da correcao"
|
|
128
|
+
uv run python scripts/homologacao.py cancelar
|
|
129
|
+
uv run python scripts/homologacao.py inutilizar --inicio 10 --fim 12
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Para atualizar as ACs da ICP-Brasil a partir do pacote oficial do ITI: `uv run python scripts/atualizar_cadeia_icp_brasil.py`. Testes que acessam a SEFAZ só rodam com `PYNOTAS_TESTES_REDE=1`.
|
|
133
|
+
|
|
134
|
+
Orientações para agentes de IA que trabalham no código estão no [AGENTS.md](https://github.com/WendelSiqueira/pyNotas/blob/main/AGENTS.md).
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
Referências
|
|
138
|
+
-----------
|
|
139
|
+
|
|
140
|
+
- Portal da NF-e: http://www.nfe.fazenda.gov.br/
|
|
141
|
+
- Tabela de classificação tributária (cClassTrib): https://dfe-portal.svrs.rs.gov.br/DFE/TabelaClassificacaoTributaria
|
|
142
|
+
- MDF-e: https://dfe-portal.svrs.rs.gov.br/mdfe
|
|
143
|
+
- Validador de XML da NF-e: https://www.sefaz.rs.gov.br/NFE/NFE-VAL.aspx
|
|
144
|
+
- Validador de assinaturas: https://servicos.receita.fazenda.gov.br/servicos/assinadoc/ValidadorAssinaturas.app/valida.aspx
|
|
145
|
+
- Impressão de documentos fiscais: https://github.com/Engenere/BrazilFiscalReport
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
Créditos e licença
|
|
149
|
+
-----------
|
|
150
|
+
|
|
151
|
+
Baseado no [PyNFe](https://github.com/TadaSoftware/PyNFe), da TadaSoftware e colaboradores. Autoria original e créditos em [AUTHORS](https://github.com/WendelSiqueira/pyNotas/blob/main/AUTHORS).
|
|
152
|
+
|
|
153
|
+
Licenciado sob a [LGPL-3.0](https://github.com/WendelSiqueira/pyNotas/blob/main/LICENSE).
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
__version__ = "0.8.0"
|
|
2
|
+
__author__ = "Marinho Brandao, Junior Tada, Leonardo Tada"
|
|
3
|
+
__maintainer__ = "Wendel Siqueira"
|
|
4
|
+
__license__ = "GNU Lesser General Public License (LGPL)"
|
|
5
|
+
__url__ = "https://github.com/WendelSiqueira/pyNotas"
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def get_version():
|
|
9
|
+
"""Versao da lib. Fonte unica: o pyproject.toml le __version__ deste arquivo."""
|
|
10
|
+
return __version__
|