Skip to main content

Leitor de arquivos SPED brasileiros.

Project description

SPED Reader

Um leitor de arquivos SPED em formato txt.

Instalação

pip install spedReader

Uso

from spedReader import SpedReader

spedReader = SpedReader('caminho/para/arquivo.txt')
sped = spedReader.read_sped()

parent_id = 3
# Retorna todos os registros C100 que tem pai C010 número 3.
result = sped["Bloco C"]["C100"].query("id_c010 == @parent_id")
print(result)

sped.write_sped('caminho/para/novo/arquivo.txt')

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

spedreader-0.1.5.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

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

spedreader-0.1.5-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file spedreader-0.1.5.tar.gz.

File metadata

  • Download URL: spedreader-0.1.5.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for spedreader-0.1.5.tar.gz
Algorithm Hash digest
SHA256 e29b952f96cb94abafc4aa438280d9d11e8a84dfadfc0c39fe56478e68bb66ab
MD5 37ae7654ee8482e8345a0d19be184ccd
BLAKE2b-256 aefa5d4c72f9459e30c33a1ce218bbfc3f04a24b06e86d513a5b4cc2b790ba97

See more details on using hashes here.

File details

Details for the file spedreader-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: spedreader-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for spedreader-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3fb7949a6e9da6646890e55763dacd0adcd6c731bd81407e4448ee4c1c677fda
MD5 623e839b28a651232caa668e9d0354d7
BLAKE2b-256 78251aae8f00367569bebda7e4d5aea9edd57cb1d0c2dafd250d0873625e4769

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