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.4.tar.gz (21.2 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.4-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spedreader-0.1.4.tar.gz
  • Upload date:
  • Size: 21.2 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.4.tar.gz
Algorithm Hash digest
SHA256 8775a309b2e2f9f29a7c51c54a1cbc4d80206a6a794f7ef171a637db705d683f
MD5 61ac6a767910043bdf6cb9d342bdbce5
BLAKE2b-256 a9b5efc94c289abead5e61224d51db80cb653ec3795341135261cbe2e0005e8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spedreader-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f6b0402c001b069af7ed5b22847d6d5fc43ad9a3dc02dcc55b6352b7cd37cdee
MD5 18bda1f2ac0d256b16033e6a4f582044
BLAKE2b-256 ad266722758f52459db429083befdb32bd13abed7607cb5a978dc77b0a7fe5dd

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