Skip to main content

Biblioteca para geração dos arquivos do Sistema Público de Escrituração Digital (SPED) para Python

Project description

SPED para python

Biblioteca para geração dos arquivos do Sistema Público de Escrituração Digital (SPED) para Python.

Essa biblioteca é originado da ramificação do projeto python-sped de contribuição de Sergio Garcia (sergio@ginx.com.br)

Requisitos

  • python
  • six

Como instalar

$ pip install spedpy

Objetivos do Projeto

A ideia inicial do projeto e unificar em uma única biblioteca módulos para facilitar a geração dos arquivos do SPED, diminuido o retrabalho necessário para isso e tentando ao máximo garantir que o arquivo gerado seja considerado válido pelo validador do SPED.

Não é objetivo deste projeto, remover a necessidade do programador em conhecer o SPED, bem como sua legislação e saber informar adequadamente todas as informações corretamente.

Exemplos de uso

efd = ArquivoDigital()
efd.readfile("efd.txt")
efd.prepare()
print(efd)

Resultado 'efd.txt':

|0000|016|0|01072022|31072022|TESTE LTDA|11111111000191||MG|111111111111|3125101|||B|0| |0001|0| |0002|09| |0005|TESTE LTDA|37640000|ESTM XXX XXX XXX|1300||DOS XXXX|3531979985||| |0015|RJ|111111111| |0015|SP|111111111111| |0100|XXXX XXX XXXX XXXX|11111111111|SPXXXXXXX||12914001|AVENIDA ANTONIO PIRES PIMENTEL|XXXX||CENTRO|111111111|111111111|xxxx@xxxx.com.br|3507605| |0150|CLI000000503|CONSTRUTONI MATERIAIS PARA CON|1058|05923344000196||7012595100085|3170107||AVENIDA ORLANDO RODRIGUES DA CUNHA|35||VL SAO VICENTE| |0150|FOR000028800|TRANSPORTADORA Y23 EIRELI|1058|39848198000101||0039007510061|3125101||RUA ANTONIO MOREIRA FILHO|50||DOS TENENTES| |0150|FOR000026707|EFIZI AZU COMERCIO LTDA|1058|34229157000105||083582452|3205002||RUA 7 A|69|SETOR B SALA 1|CIVIT II| |0200|DESP00191|BIODIGESTOR 700L - FORTLEV|||156|07|||00||18|| |0990|12| |B001|1| |B990|2| |C001|0| |C100|1|0|CLI000000503|55|00|001|38111|31220737008145000149550010000381111212144153|11072022|11072022|4155,75|1|0|0|3582,24|0|0|0|0|3582,24|429,87|5574,32|573,51|0|52,01|239,58|0|0| |C190|010|5401|12|4155,75|3582,24|429,87|5574,32|573,51|0|0|| |C195|8|Debito para a sub-apuracao| |C100|1|0|FOR000026707|55|00|001|37862|31220737008145000149550010000378621423637667|05072022|05072022|949,5|1|0|0|949,5|9|0|0|0|949,5|66,47|0|0|0|14,57|67,11|0|0| |C190|000|6118|7|949,5|949,5|66,47|0|0|0|0|| |C195|8|Debito para a sub-apuracao| |C197|MG23000999|Debito para a sub-apuracao do produto 500133|500133|949,5|7|66,47|0| |C197|MG24000999|Debito para a sub-apuracao do produto 500180|500180|3582,24|12|429,87|0| |C990|10| |D001|0| |D100|0|1|FOR000028800|57|00|001||870|31220739848198000101570010000008701000000007|05072022|13072022|0||1851,86|0|9|1851,86|0|0|1851,86||4214|3125101|3205101| |D190|000|2352|0|1851,86|0|0|0|| |D990|4| |E001|1| |E990|2| |G001|1| |G990|2| |H001|1| |H990|2| |K001|1| |K990|2| |1001|1| |1990|2| |9001|0| |9900|0001|1| |9900|0002|1| |9900|0005|1| |9900|0015|2| |9900|0100|1| |9900|0150|3| |9900|0200|1| |9900|0990|1| |9900|0000|1| |9900|B001|1| |9900|B990|1| |9900|C001|1| |9900|C100|2| |9900|C190|2| |9900|C195|2| |9900|C197|2| |9900|C990|1| |9900|D001|1| |9900|D100|1| |9900|D190|1| |9900|D990|1| |9900|E001|1| |9900|E990|1| |9900|G001|1| |9900|G990|1| |9900|H001|1| |9900|H990|1| |9900|K001|1| |9900|K990|1| |9900|1001|1| |9900|1990|1| |9900|9001|1| |9900|9900|35| |9900|9990|1| |9900|9999|1| |9990|38| |9999||

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

spedpy-1.2.0.tar.gz (188.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spedpy-1.2.0-py3-none-any.whl (199.6 kB view details)

Uploaded Python 3

File details

Details for the file spedpy-1.2.0.tar.gz.

File metadata

  • Download URL: spedpy-1.2.0.tar.gz
  • Upload date:
  • Size: 188.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for spedpy-1.2.0.tar.gz
Algorithm Hash digest
SHA256 b7bf882535b6511e68919737ad2b0cf864beb0f9968457cfc6d4fe5f11292276
MD5 4800f8599ce8ab5de61a222bdb2a6a44
BLAKE2b-256 66a537f22b742f8c47c17fb96e9d1e96e2d0491623644c6923fc61ba9aba9578

See more details on using hashes here.

File details

Details for the file spedpy-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: spedpy-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 199.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for spedpy-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67e505734ae193058a23fbae55ba77dbfb8ab0b7ae67873602fa3743b01ebc6c
MD5 88d1abb69a895dd01ac81cc46d098213
BLAKE2b-256 90d402551d8555abe076b7b0414194f401205d71e57224716ec75a4ba321aec6

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