Skip to main content

Serializa um arquivo do tipo SPED Fiscal

Project description

PySpedFiscal

Lê e serializa um arquivo do tipo Sped Fiscal

Exemplo

Utilização básica:

# Importe a classe SpedFiscal
from pyspedfiscal import SpedFiscal

# Utilize o metodo da classe `importar` para carregar um arquivo sped
sped_fiscal = SpedFiscal.importar('caminho_arquivo')

# Utilize a hierarquia do arquivo para percorrer os registros
registros_0200 = sped_fiscal.bloco_0.resgistro_0001.registros_0200

for registro in registros_0200:
  ...

Registros Implementados

Bloco 0 Bloco B Bloco C Bloco D Bloco E Bloco G Bloco H Bloco G Bloco K Bloco 1 Bloco 9
0000 C001 E001 9001
0001 C100 E100 9999
0200 C101 E110
0460 C105 E115
C110
C111
C112
C113
C114
C115
C116
C120
C130
C140
C160
C170
C180
C190
C195
C197

Instalação

  • pip install pyspedfiscal

Dependencias

  • Pydantic

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

pyspedfiscal-0.2.1.tar.gz (15.6 kB view details)

Uploaded Source

File details

Details for the file pyspedfiscal-0.2.1.tar.gz.

File metadata

  • Download URL: pyspedfiscal-0.2.1.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for pyspedfiscal-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f9af68431ba73942218595e5aafa820904fa2931365d7b15842283c8e5897f55
MD5 688361302b3c7e536de1ecb82f612baf
BLAKE2b-256 e8cc78025dadcbad9d9aa26a38fc9b7d345c96484182d1df5294ae13ce557b85

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