Skip to main content

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:

  1. retorna_chave_acesso:

    1. 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()
    
  2. DataFrameFromXML:

    1. Esta função contém 4 argumentos, sendo apenas um obrigatorio obrigatórios
      1. path (obrigatório) bytes: Caminho do arquivo XML
      2. nome_documento (opcional) string: Inseri coluna com o nome do documento xml
      3. list_manter (opcional) list: Se não for informada utiliza a lista padronizada
      4. dic_names (opcional) dict: Se não for informada utiliza o dicionário padrão

    Exemplo

    lerxmlspy.DataFrameFromXML(caminho_arquivo)
    

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

lerxmlspy-0.0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

lerxmlspy-0.0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for lerxmlspy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9c968e7e124e00d1b262f7d3f317e04185dca0874e878a7b73fd927a53b4c49a
MD5 91e279761ebe1d648dc8b951995657f6
BLAKE2b-256 aec716f441337eb46ead78d2a6294e3b83da108731530631dfe657fc7ced5554

See more details on using hashes here.

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

Hashes for lerxmlspy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 39a70f67e03bcfd191381059093878e8c050662979d6421da6d4ae44c3f068bd
MD5 683cd8bdb64f75872c474437c99e77f3
BLAKE2b-256 7cc74bc05d4349307ad4d178ee267b7cfd1f1658cc9cd3da3f6ad413f29d1cf5

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