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

Uploaded Source

File details

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

File metadata

  • Download URL: pyspedfiscal-0.2.4.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.4.tar.gz
Algorithm Hash digest
SHA256 89dcee1fa77070b49a9e89967f625dbd1a7852e91c8d681852e700611a6246df
MD5 2672b62ce0708535f458cce64620be10
BLAKE2b-256 5434ea3cd79b8e79fddd6deb95e15ff2d458215b17154f7c6310245d2dd71a41

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