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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8775a309b2e2f9f29a7c51c54a1cbc4d80206a6a794f7ef171a637db705d683f
|
|
| MD5 |
61ac6a767910043bdf6cb9d342bdbce5
|
|
| BLAKE2b-256 |
a9b5efc94c289abead5e61224d51db80cb653ec3795341135261cbe2e0005e8e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6b0402c001b069af7ed5b22847d6d5fc43ad9a3dc02dcc55b6352b7cd37cdee
|
|
| MD5 |
18bda1f2ac0d256b16033e6a4f582044
|
|
| BLAKE2b-256 |
ad266722758f52459db429083befdb32bd13abed7607cb5a978dc77b0a7fe5dd
|