Um pacote para leitura de arquivos XML e converter para DataFrames
Project description
Pacote Ler XML SETRABH python - lerxmlspy
Sobre o Pacote
O pacote consta com duas funções principais sendo:
-
retorna_chave_acesso:
- Esta função recebe apenas um argunto, o "xml_content" no qual deve ser informado a variável que contém o xml logo após ser aberto
Exemplo
with open(arquivo_xml, 'rb') as f: xml_content = f.read() lerxmlspy.retorna_chave_acesso()
-
DataFrameFromXML:
- Esta função contém 4 argumentos, sendo apenas um obrigatorio obrigatórios
- path (obrigatório) bytes: Caminho do arquivo XML
- nome_documento (opcional) string: Inseri coluna com o nome do documento xml
- list_manter (opcional) list: Se não for informada utiliza a lista padronizada
- dic_names (opcional) dict: Se não for informada utiliza o dicionário padrão
Exemplo
lerxmlspy.DataFrameFromXML(caminho_arquivo)
- Esta função contém 4 argumentos, sendo apenas um obrigatorio obrigatórios
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lerxmlspy-0.0.2.tar.gz
(4.1 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 lerxmlspy-0.0.2.tar.gz.
File metadata
- Download URL: lerxmlspy-0.0.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c968e7e124e00d1b262f7d3f317e04185dca0874e878a7b73fd927a53b4c49a
|
|
| MD5 |
91e279761ebe1d648dc8b951995657f6
|
|
| BLAKE2b-256 |
aec716f441337eb46ead78d2a6294e3b83da108731530631dfe657fc7ced5554
|
File details
Details for the file lerxmlspy-0.0.2-py3-none-any.whl.
File metadata
- Download URL: lerxmlspy-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39a70f67e03bcfd191381059093878e8c050662979d6421da6d4ae44c3f068bd
|
|
| MD5 |
683cd8bdb64f75872c474437c99e77f3
|
|
| BLAKE2b-256 |
7cc74bc05d4349307ad4d178ee267b7cfd1f1658cc9cd3da3f6ad413f29d1cf5
|