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.2.tar.gz (15.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: pyspedfiscal-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 0ca090adea30d9e370cf8c965d159994012a437f17d9d55958b558ebe2c08ec2
MD5 fef55419dc9a0b95930ab998424074b4
BLAKE2b-256 aca8e3247a8d85cde81966e528bf09bb29a9bf3a1dfc8e15e6aa647c951e31a0

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