YuuDaniel GitHub avatar

Extracao-e-Tratamento

YuuDaniel

A desktop application that automates the extraction of two operational reports, validates time periods, transforms metrics, and updates a Microsoft Excel control sheet.

Stars

3

7-day growth

No data

Forks

0

Open issues

0

License

MIT

Last updated

2026-07-29

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It demonstrates a practical, end-to-end automation pipeline using Playwright, pandas, and xlwings, packaged as a portable Windows executable with a Tkinter GUI.

Who it is for

  • Operations analysts who regularly extract and consolidate reports
  • Excel users seeking to automate repetitive data entry
  • Developers looking for a template to build browser‑based automation tools
  • IT professionals needing a self‑contained, no‑installation solution

Use cases

  • Automating the daily or weekly retrieval of system reports from a web portal
  • Validating report periods and applying business rules before updating a shared Excel file
  • Creating a portable tool for non‑technical users to run report updates without manual steps
  • Maintaining a history of downloaded reports and execution logs for auditing

Strengths

  • Uses Playwright for reliable browser automation and xlwings for safe Excel updates
  • Includes time‑period validation, weekend model selection, and organized log traces
  • Packaged as a single portable executable via PyInstaller, no runtime dependencies
  • Anonymized configuration template prevents accidental credential exposure

Considerations

  • Requires manual calibration of selectors and URLs for each target system
  • Only tested on Windows – no cross‑platform support mentioned
  • Depends on local Excel templates and folder structure that must be set up beforehand
  • The repository itself provides no live system – it is a portfolio illustration with fake data

README quick start

Extração e Tratamento

Aplicação desktop para automatizar a extração de dois relatórios operacionais, validar os períodos, transformar as métricas e atualizar uma planilha de controle no Microsoft Excel.

Esta é uma versão anonimizada para portfólio. URLs, seletores reais, credenciais, nomes de organizações, campanhas, relatórios e planilhas operacionais não fazem parte do repositório.

Funcionalidades

  • interface desktop em Tkinter;
  • automação do navegador com Playwright;
  • leitura e tratamento dos relatórios com pandas;
  • atualização segura do Excel com xlwings;
  • validação de período e regras de horário;
  • seleção automática de modelo para sábado;
  • histórico de relatórios organizado por data;
  • logs de execução com traceback para diagnóstico;
  • empacotamento para Windows com PyInstaller.

Estrutura principal

  • App_Agent_HangUp.py: interface e orquestração;
  • Extrator_Sistema.py: navegação e download dos relatórios;
  • Automacao_Agent_HangUp.py: validação, ETL e atualização do Excel;
  • config_sistema.example.ini: exemplo de configuração sem dados reais;
  • build_app.ps1: geração da aplicação portátil;
  • requirements_app.txt: dependências Python.

Configuração local

  1. Copie config_sistema.example.ini para config_sistema.ini.
  2. Preencha URLs, seletores e opções do sistema utilizado.
  3. Crie 01 - ENTRADA e adicione localmente os modelos Excel necessários.
  4. Instale as dependências com py -m pip install -r requirements_app.txt.
  5. Instale o navegador com py -m playwright install chromium.
  6. Execute py App_Agent_HangUp.py.

Os arquivos locais citados acima são ignorados pelo Git. Nunca publique credenciais, planilhas reais, relatórios baixados, logs ou capturas de tela do sistema de produção.

Build para Windows

Com o aplicativo fechado, execute:

powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\build_app.ps1

O pacote será criado em dist\Agent_x_HangUp.

Observação

Os seletores do arquivo de exemplo são ilustrativos. Cada sistema possui uma estrutura própria e exige calibração antes do uso.

Créditos

Projeto original criado por Daniel Rodrigues Yu.

Versões derivadas devem preservar o arquivo LICENSE e este aviso de autoria.

Description

Automação de extração, tratamento e consolidação de relatórios operacionais em Excel, utilizando Python, Playwright, pandas, xlwings e Tkinter.

Related repositories

Similar projects matched by category, topics, and programming language.

lopopolo
Featured
lopopolo GitHub avatar

harness-engineering

Harness Engineering is a methodology for improving coding agent outputs by carefully crafting the environment around them—providing curated context, tools, and executable constraints that encode an organization’s nonfunctional requirements and cumulative lessons.

AI & Machine LearningAI Agents
2,390
slvDev
Featured
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI & Machine LearningLarge Language Models
1,960
littledivy
Featured
littledivy GitHub avatar

mimic

mimic captures traffic from any iOS or web app and automatically generates a Python client library that lets you call the app's API like a regular library.

AI & Machine Learning
1,482