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

Uploaded Source

File details

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

File metadata

  • Download URL: pyspedfiscal-0.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 9a08e9fbc8b79dfa610121cdc1a7825234a17865dec8046a1bb25d27b6308173
MD5 190eda2f3856f7aa3cc39bb92842fd89
BLAKE2b-256 d646bb4cbed160269761e4105f0c2b32c6405938162c037a8ade1b56183b500e

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