Compare commits

..

23 Commits

Author SHA1 Message Date
fc90d776e7 fix: increase AJAX delay for stability and remove processed entries from expense CSV 2026-08-10 02:09:47 -04:00
4ef4220bc6 feat: add scroll to bottom before processing and enable form submission in save_form 2026-08-10 01:50:06 -04:00
437d70ac1c feat: remove outdated bank expenses, maximize browser window, add ESC key sequences for navigation, and update modal button selectors 2026-08-10 01:44:55 -04:00
4c8ea6dce8 feat: implement automatic dialog handling and enhanced modal confirmation logic during form submission 2026-08-10 01:04:09 -04:00
39ac5340dc refactor: disable calendar navigation for direct keyboard date entry and update Select2 interaction logic 2026-08-09 23:29:57 -04:00
cf12715727 refactor: standardize mouse interactions and enhance Select2 element handling and navigation logic 2026-08-09 23:03:10 -04:00
e74eaaaf50 refactor: improve reliability of UI interactions with robust datepicker month-nav, AJAX Select2 normalization, and fallback fill logic 2026-08-09 22:06:50 -04:00
2fcbdcb4db feat: add fail-fast mechanism with user inspection pause on critical launch errors 2026-08-09 18:47:43 -04:00
1750a08d9a feat: implement tkinter file dialog for CSV selection with terminal fallback 2026-08-09 18:38:39 -04:00
b9ef1178b5 feat: implement CSV batch processing service and CLI confirmation workflow for RPA expenses 2026-08-09 18:34:44 -04:00
712cbe5a2a refactor: update save_form to target button.btn-salvar with improved interaction handling and delay timing 2026-08-09 18:08:13 -04:00
3186bd5ee1 feat: add automated account validation and complete payment history and complement fields in RPA process 2026-08-09 17:58:28 -04:00
735703a600 feat: implement RPA scripts for automated expense entry in SIGA with human-like mouse simulation 2026-08-09 17:41:45 -04:00
43d37f0f0a feat: add persistent browser utility for session management and improve RPA element interaction logging and robustness 2026-05-31 23:59:59 -06:00
b366d914a4 feat: update payment input logic to use valor_atual instead of valor_produtos and improve logging details 2026-03-29 06:27:53 -04:00
a8bdbde453 Conseguiu entrar no formulario e datepicker 2026-03-29 06:05:11 -04:00
ca28118c54 fix: replace direct clicks with JS evaluation and add fallback logic for locality and menu navigation 2026-03-29 05:11:28 -04:00
131036e562 refactor: implement persistent browser context with local profile and improve navigation stability 2026-03-29 04:49:22 -04:00
a43548e51c chore: add VS Code workspace settings and Google Cloud service account credentials 2026-03-29 04:27:51 -04:00
920e0fd279 Ajustes na abertura do fundo biblico 2026-03-29 03:04:06 -04:00
a670bfdca4 refactor: update datepicker interaction, improve destination selection via select2, and add dynamic payment method handling, apos primeiro teste preliminar 2026-03-29 02:12:51 -04:00
ca340bbcdf Ajustes 2026-03-29 02:12:14 -04:00
b5fcdb2e15 Aplicacao inicial ainda sem testes 2026-03-29 01:48:53 -04:00
16 changed files with 2627 additions and 105 deletions

3
.gitignore vendored
View File

@@ -8,4 +8,5 @@ wheels/
# Virtual environments # Virtual environments
.venv .venv
.env .env
perfil_chromium/

5
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/Scripts/python.exe",
"python.terminal.activateEnvInCurrentTerminal": true,
"python.experiments.enabled": false
}

View File

@@ -0,0 +1,15 @@
Data,Lançamento,Documento,Débito (R$)
08/07/2026,TARIFA BANCARIA LIQUIDACAO QRCODE PIX,1,"0,90"
08/07/2026,TARIFA BANCARIA LIQUIDACAO QRCODE PIX,3,"3,08"
09/07/2026,TARIFA BANCARIA LIQUIDACAO QRCODE PIX,3,"3,45"
14/07/2026,TARIFA BANCARIA LIQUIDACAO QRCODE PIX,1,"0,90"
15/07/2026,TARIFA BANCARIA LIQUIDACAO QRCODE PIX,3,"2,70"
15/07/2026,TARIFA BANCARIA LIQUIDACAO QRCODE PIX,9,"8,10"
16/07/2026,TARIFA BANCARIA LIQUIDACAO QRCODE PIX,1,"1,19"
22/07/2026,TARIFA BANCARIA LIQUIDACAO QRCODE PIX,2,"1,80"
22/07/2026,TARIFA BANCARIA LIQUIDACAO QRCODE PIX,3,"2,70"
23/07/2026,TARIFA BANCARIA LIQUIDACAO QRCODE PIX,2,"1,80"
27/07/2026,TARIFA BANCARIA LIQUIDACAO QRCODE PIX,1,"0,90"
28/07/2026,TARIFA BANCARIA LIQUIDACAO QRCODE PIX,1,"0,90"
29/07/2026,TARIFA BANCARIA LIQUIDACAO QRCODE PIX,1,"0,90"
29/07/2026,TARIFA BANCARIA LIQUIDACAO QRCODE PIX,8,"7,56"
1 Data Lançamento Documento Débito (R$)
2 08/07/2026 TARIFA BANCARIA LIQUIDACAO QRCODE PIX 1 0,90
3 08/07/2026 TARIFA BANCARIA LIQUIDACAO QRCODE PIX 3 3,08
4 09/07/2026 TARIFA BANCARIA LIQUIDACAO QRCODE PIX 3 3,45
5 14/07/2026 TARIFA BANCARIA LIQUIDACAO QRCODE PIX 1 0,90
6 15/07/2026 TARIFA BANCARIA LIQUIDACAO QRCODE PIX 3 2,70
7 15/07/2026 TARIFA BANCARIA LIQUIDACAO QRCODE PIX 9 8,10
8 16/07/2026 TARIFA BANCARIA LIQUIDACAO QRCODE PIX 1 1,19
9 22/07/2026 TARIFA BANCARIA LIQUIDACAO QRCODE PIX 2 1,80
10 22/07/2026 TARIFA BANCARIA LIQUIDACAO QRCODE PIX 3 2,70
11 23/07/2026 TARIFA BANCARIA LIQUIDACAO QRCODE PIX 2 1,80
12 27/07/2026 TARIFA BANCARIA LIQUIDACAO QRCODE PIX 1 0,90
13 28/07/2026 TARIFA BANCARIA LIQUIDACAO QRCODE PIX 1 0,90
14 29/07/2026 TARIFA BANCARIA LIQUIDACAO QRCODE PIX 1 0,90
15 29/07/2026 TARIFA BANCARIA LIQUIDACAO QRCODE PIX 8 7,56

272
banco_despesas_rpa.py Normal file
View File

@@ -0,0 +1,272 @@
# -*- coding: utf-8 -*-
"""
SIGA RPA - Banco / Despesas
Automação de Lançamentos de Despesas no SIGA via Playwright.
Estratégia:
1. Inicia navegador e aguarda autenticação manual no SIGA.
2. Navega para Tesouraria >> Caixas e Bancos.
3. Clica em Novo >> Despesa.
4. Aguarda 30s para verificação e encerra o script sem realizar lançamentos.
"""
import asyncio
import logging
import math
import os
import random
from datetime import datetime
from typing import Optional
from dotenv import load_dotenv
from playwright.async_api import async_playwright, Page, TimeoutError as PlaywrightTimeout
# Logging
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s - %(levelname)s - %(message)s",
)
logger = logging.getLogger(__name__)
# ==============================================================================
# CONFIGURAÇÃO
# ==============================================================================
class Config:
"""Centraliza configurações do RPA."""
SIGA_URL = "https://siga.congregacao.org.br/index.aspx"
@classmethod
def load(cls):
load_dotenv()
# ==============================================================================
# MÓDULO ANTI-BOT — Movimentos humanos de mouse
# ==============================================================================
class HumanMouse:
"""
Simula comportamento humano de mouse:
- Trajetória curva (Bézier quadrática)
- Microtremores (jitter)
- Velocidade variável (ease-in-out)
- Pausas aleatórias antes/depois do clique
"""
def __init__(self, page: Page):
self.page = page
self._x = 640.0
self._y = 400.0
@staticmethod
def _ease_in_out(t: float) -> float:
return t * t * (3.0 - 2.0 * t)
@staticmethod
def _bezier(t: float, p0: tuple, p1: tuple, p2: tuple) -> tuple:
x = (1 - t) ** 2 * p0[0] + 2 * (1 - t) * t * p1[0] + t ** 2 * p2[0]
y = (1 - t) ** 2 * p0[1] + 2 * (1 - t) * t * p1[1] + t ** 2 * p2[1]
return x, y
@staticmethod
def _random_control_point(start: tuple, end: tuple) -> tuple:
mx = (start[0] + end[0]) / 2
my = (start[1] + end[1]) / 2
dist = math.hypot(end[0] - start[0], end[1] - start[1]) or 1
perp_x = -(end[1] - start[1]) / dist
perp_y = (end[0] - start[0]) / dist
offset = random.uniform(0.10, 0.30) * dist * random.choice([-1, 1])
return mx + perp_x * offset, my + perp_y * offset
async def move_to(self, x: float, y: float, steps: int = 0):
start = (self._x, self._y)
end = (x + random.uniform(-2, 2), y + random.uniform(-2, 2))
ctrl = self._random_control_point(start, end)
dist = math.hypot(end[0] - start[0], end[1] - start[1])
n = steps or max(8, int(dist / 12))
for i in range(1, n + 1):
t_raw = i / n
t = self._ease_in_out(t_raw)
px, py = self._bezier(t, start, ctrl, end)
jitter_scale = max(0.5, 2.5 * math.sin(math.pi * t_raw))
px += random.gauss(0, jitter_scale)
py += random.gauss(0, jitter_scale)
await self.page.mouse.move(px, py)
speed_factor = 0.4 + 0.6 * math.sin(math.pi * t_raw)
await asyncio.sleep(random.uniform(0.005, 0.022) / speed_factor)
self._x, self._y = end
async def click(self, x: float, y: float, button: str = "left"):
await self.move_to(x, y)
await asyncio.sleep(random.uniform(0.05, 0.18))
await self.page.mouse.down(button=button)
await asyncio.sleep(random.uniform(0.04, 0.12))
await self.page.mouse.up(button=button)
await asyncio.sleep(random.uniform(0.08, 0.25))
async def click_element(self, locator, offset_x: float = 0, offset_y: float = 0):
await locator.scroll_into_view_if_needed()
box = await locator.bounding_box()
if box is None:
raise RuntimeError(f"Elemento sem bounding box visível: {locator}")
cx = box["x"] + box["width"] / 2 + offset_x + random.uniform(-3, 3)
cy = box["y"] + box["height"] / 2 + offset_y + random.uniform(-2, 2)
await self.click(cx, cy)
async def human_delay(min_ms: int = 300, max_ms: int = 900):
await asyncio.sleep(random.uniform(min_ms, max_ms) / 1000)
# ==============================================================================
# AUTOMAÇÃO SIGA
# ==============================================================================
class SigaAutomation:
"""Automação do sistema SIGA via Playwright."""
TIMEOUT = 30_000
AUTH_TIMEOUT = 3_600_000 # 1 hora
def __init__(self):
self.playwright = None
self.context = None
self.page: Optional[Page] = None
self.mouse: Optional[HumanMouse] = None
async def launch(self):
self.playwright = await async_playwright().start()
project_root = os.path.dirname(os.path.abspath(__file__))
user_data_dir = os.path.join(project_root, "perfil_chromium")
self.context = await self.playwright.chromium.launch_persistent_context(
user_data_dir=user_data_dir,
headless=False,
user_agent=(
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
"AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/124.0.0.0 Safari/537.36"
),
args=["--disable-blink-features=AutomationControlled"],
ignore_default_args=["--enable-automation"],
viewport={"width": 1366, "height": 768},
locale="pt-BR",
timezone_id="America/Cuiaba",
)
self.page = self.context.pages[0] if self.context.pages else await self.context.new_page()
self.page.set_default_timeout(self.TIMEOUT)
self.mouse = HumanMouse(self.page)
await self.page.add_init_script(
"Object.defineProperty(navigator, 'webdriver', {get: () => undefined})"
)
logger.info(f"🌐 Navegador iniciado com perfil: {user_data_dir}")
async def close(self):
if self.context:
await self.context.close()
if self.playwright:
await self.playwright.stop()
logger.info("🌐 Navegador fechado.")
# ---------- AUTENTICAÇÃO ----------
async def navigate_and_wait_auth(self):
page = self.page
await page.goto(Config.SIGA_URL)
logger.info("⏳ Aguardando login manual + reCAPTCHA...")
await page.locator(
"a:has-text('PRIMAVERA DO LESTE DL -'), "
"a:has-text('BR 09-0231 - PRIMAVERA DO')"
).first.wait_for(state="visible", timeout=self.AUTH_TIMEOUT)
logger.info("✅ Login detectado!")
await human_delay(800, 1500)
# ---------- NAVEGAÇÃO ----------
async def navigate_to_caixas_e_bancos(self):
"""Navega no menu lateral para Tesouraria >> Caixas e Bancos."""
page = self.page
mouse = self.mouse
logger.info("📂 Navegando para Tesouraria >> Caixas e Bancos...")
# Verifica se 'Caixas e Bancos' já está visível ou expande 'Tesouraria'
caixas_link = page.locator("a:has-text('Caixas e Bancos')").first
if not await caixas_link.is_visible():
tesouraria_menu = page.locator("a:has-text('Tesouraria')").first
if await tesouraria_menu.is_visible():
await mouse.click_element(tesouraria_menu)
await human_delay(500, 1000)
await caixas_link.wait_for(state="visible", timeout=15000)
await mouse.click_element(caixas_link)
await human_delay(1000, 2000)
logger.info("✅ Navegado com sucesso para Caixas e Bancos.")
async def open_nova_despesa(self):
"""Clica no botão Novo e depois seleciona Despesa."""
page = self.page
mouse = self.mouse
logger.info("➕ Clicando no botão Novo...")
novo_btn = page.locator("a:has-text('Novo'), button:has-text('Novo')").first
await novo_btn.wait_for(state="visible", timeout=15000)
await mouse.click_element(novo_btn)
await human_delay(600, 1200)
logger.info("📝 Selecionando a opção Despesa...")
despesa_option = page.locator("a:has-text('Despesa')").filter(has_text="Despesa").first
await despesa_option.wait_for(state="visible", timeout=10000)
await mouse.click_element(despesa_option)
await human_delay(1500, 2500)
logger.info("✅ Tela de Nova Despesa aberta com sucesso!")
# ==============================================================================
# APLICAÇÃO
# ==============================================================================
class Application:
def __init__(self):
Config.load()
async def run(self):
logger.info(f"\n{'='*60}")
logger.info("🚀 INICIANDO RPA - DESPESAS BANCÁRIAS (SIGA)")
logger.info(f"{'='*60}\n")
siga = SigaAutomation()
try:
await siga.launch()
await siga.navigate_and_wait_auth()
await siga.navigate_to_caixas_e_bancos()
await siga.open_nova_despesa()
logger.info("⏳ Aguardando 30 segundos conforme solicitado antes de encerrar...")
await asyncio.sleep(30)
logger.info("✅ Tempo concluído. Encerrando script.")
except Exception as e:
logger.critical(f"💥 Erro crítico durante a execução: {e}")
raise
finally:
await siga.close()
# ==============================================================================
# MAIN
# ==============================================================================
if __name__ == "__main__":
asyncio.run(Application().run())

View File

@@ -0,0 +1,959 @@
# -*- coding: utf-8 -*-
"""
Banco Despesas RPA (Guiado) - Automação de Lançamento de Despesa no SIGA
========================================================================
Este script executa o fluxo completo e automatizado de lançamento em lote
de Despesas em Caixas e Bancos no SIGA via Playwright a partir de um arquivo CSV.
Funcionalidades:
- Leitura interativa de arquivo CSV (suporta separador vírgula ',' e ponto-e-vírgula ';').
- Resumo formatado dos registros no terminal com confirmação do usuário antes de iniciar.
- Inicialização de navegador Chromium com perfil persistente e evasaõ de detecção anti-bot (HumanMouse).
- Autenticação e aguardo de login manual/reCAPTCHA com orientação em tela.
- Seleção/validação do Mês de Trabalho (ex: 07/2026).
- Loop de lançamentos em lote:
* Navegação para Tesouraria >> Caixas e Bancos >> + Novo >> Despesa (TES01702.aspx).
* Preenchimento de Data Documento (Datepicker Bootstrap).
* Seleção de Tipo Documento ('AVISO DE DÉBITO').
* N° Documento e Valor Documento (Cálculo automático de rateio e total).
* Seleção de Despesa ('3030 - DESPESAS BANCARIAS').
* Pesquisa AJAX de Fornecedor ('BRADESCO' -> 'BANCO BRADESCO S.A').
* Preenchimento de Histórico e Complemento (Rateio e Pagamento).
* Seleção de Data Pagamento (Datepicker) e Forma Pagamento ('DÉBITO AUTOMÁTICO').
* Clique no botão Salvar (button.btn-salvar), redirecionando para a lista e reiniciando o loop para o próximo registro.
"""
import asyncio
import csv
import logging
import math
import os
import random
import unicodedata
from dataclasses import dataclass
from datetime import datetime, date
from typing import Optional, List
from dotenv import load_dotenv
from playwright.async_api import async_playwright, Page, TimeoutError as PlaywrightTimeout
import sys
if hasattr(sys.stdout, "reconfigure"):
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
if hasattr(sys.stderr, "reconfigure"):
sys.stderr.reconfigure(encoding="utf-8", errors="replace")
# ==============================================================================
# LOGGING & CONFIGURAÇÃO
# ==============================================================================
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s - %(levelname)s - %(message)s",
)
logger = logging.getLogger("BancoDespesasRPA")
class Config:
"""Centraliza as configurações da automação."""
SIGA_URL = "https://siga.congregacao.org.br/index.aspx"
AUTH_TIMEOUT = 3_600_000 # 1 hora para login manual + reCAPTCHA
DEFAULT_TIMEOUT = 30_000 # 30 segundos para ações do Playwright
@classmethod
def load(cls):
load_dotenv()
# ==============================================================================
# ESTRUTURA DE DADOS DA DESPESA (DTO)
# ==============================================================================
@dataclass
class ExpenseRecord:
data_documento: date # Ex: date(2026, 7, 1)
tipo_documento: str # Ex: "AVISO DE DÉBITO"
numero_documento: str # Ex: "1"
valor_documento: float # Ex: 0.90
codigo_despesa: str # Ex: "3030"
fornecedor_busca: str # Ex: "BRADESCO"
fornecedor_alvo: str # Ex: "BANCO BRADESCO S.A"
complemento: str # Ex: "TARIFA BANCARIA LIQUIDACAO QRCODE PIX"
data_pagamento: date # Ex: date(2026, 7, 1)
forma_pagamento: str # Ex: "DÉBITO AUTOMÁTICO"
numero_doc_pagamento: str # Ex: "1"
# ==============================================================================
# SERVICE DE LEITURA E PARSING DE CSV
# ==============================================================================
class CSVReaderService:
"""Lê e parseia arquivos CSV de extrato de despesas com suporte a ',' e ';'."""
@staticmethod
def detect_delimiter(filepath: str) -> str:
"""Identifica se o CSV utiliza vírgula (',') ou ponto-e-vírgula (';') como separador."""
with open(filepath, "r", encoding="utf-8-sig", errors="replace") as f:
first_line = f.readline()
if ";" in first_line:
return ";"
return ","
@classmethod
def load_expenses_from_csv(cls, filepath: str) -> List[ExpenseRecord]:
if not os.path.exists(filepath):
raise FileNotFoundError(f"Arquivo CSV não encontrado no caminho: {filepath}")
delimiter = cls.detect_delimiter(filepath)
logger.info(f"📖 Lendo arquivo CSV com separador '{delimiter}': {filepath}")
records: List[ExpenseRecord] = []
with open(filepath, "r", encoding="utf-8-sig", errors="replace") as f:
reader = csv.DictReader(f, delimiter=delimiter)
for row_idx, row in enumerate(reader, start=2):
try:
# Mapeia chaves normalizadas (sem acentos e maiúsculas) para os valores correspondentes
norm_row = {}
for k, v in row.items():
if k is not None:
key_norm = normalize_text(str(k))
norm_row[key_norm] = str(v).strip().strip('"')
data_str = ""
lancamento = ""
documento = "1"
debito_str = ""
for k_norm, val in norm_row.items():
if "DATA" in k_norm:
data_str = val
elif "LANCAMENTO" in k_norm or "DESCRICAO" in k_norm or "HISTORICO" in k_norm:
lancamento = val
elif "DOCUMENTO" in k_norm or "DOC" in k_norm:
documento = val
elif "DEBITO" in k_norm or "VALOR" in k_norm:
debito_str = val
if not data_str or not debito_str:
continue
# Parse da Data (DD/MM/YYYY)
dt_obj = datetime.strptime(data_str, "%d/%m/%Y").date()
# Parse do Valor Monetário (ex: "0,90" ou "6,22" -> float)
clean_val_str = debito_str.replace("R$", "").replace(".", "").replace(",", ".").strip()
valor_float = abs(float(clean_val_str))
if valor_float <= 0:
continue
rec = ExpenseRecord(
data_documento=dt_obj,
tipo_documento="AVISO DE DÉBITO",
numero_documento=documento,
valor_documento=valor_float,
codigo_despesa="3030",
fornecedor_busca="BRADESCO",
fornecedor_alvo="BANCO BRADESCO S.A",
complemento=lancamento,
data_pagamento=dt_obj,
forma_pagamento="DÉBITO AUTOMÁTICO",
numero_doc_pagamento=documento,
)
records.append(rec)
except Exception as err:
logger.warning(f"⚠️ Linha {row_idx} ignorada devido a erro de parse: {row} | Erro: {err}")
logger.info(f"✅ total de {len(records)} registro(s) válido(s) carregado(s) do CSV.")
return records
# ==============================================================================
# INTERACTION & CONFIRMATION HELPER (CLI)
# ==============================================================================
def get_csv_filepath() -> str:
"""Abre uma janela nativa do Windows (filedialog) para seleção do arquivo CSV.
Caso seja cancelado ou indisponível, cai para a seleção via terminal."""
default_csv = "Extrato_Bradesco_Julho_2026_v3.xlsx - despesas.csv"
print("\n" + "=" * 75)
print(" 📊 AUTOMAÇÃO DE DESPESAS SIGA - SELEÇÃO DE ARQUIVO CSV")
print("=" * 75)
# 1. Tenta abrir a janela nativa de escolha de arquivos do Windows
try:
import tkinter as tk
from tkinter import filedialog
logger.info("🗔 Abrindo janela do Windows para seleção do arquivo CSV...")
root = tk.Tk()
root.withdraw()
root.attributes("-topmost", True)
selected_file = filedialog.askopenfilename(
title="Selecione o arquivo CSV de Despesas para o SIGA",
filetypes=[("Arquivos CSV (*.csv)", "*.csv"), ("Todos os arquivos (*.*)", "*.*")],
initialdir=os.getcwd(),
)
root.destroy()
if selected_file and os.path.exists(selected_file):
print(f" Arquivo selecionado na janela: '{selected_file}'")
return selected_file
except Exception as gui_err:
logger.debug(f"Interface gráfica tkinter não iniciada: {gui_err}")
# 2. Fallback para prompt de terminal
if os.path.exists(default_csv):
print(f" Arquivo padrão detectado no diretório: '{default_csv}'")
user_input = input(f"\nDigite o caminho do arquivo .csv [Pressione ENTER para usar '{default_csv}']: ").strip().strip('"').strip("'")
if not user_input:
user_input = default_csv
if not os.path.exists(user_input):
raise FileNotFoundError(f"Arquivo CSV não encontrado no caminho: '{user_input}'")
return user_input
def print_records_preview(records: List[ExpenseRecord], filepath: str):
"""Exibe um resumo tabular formatado dos registros lidos do CSV."""
print("\n" + "=" * 75)
print(f" 📋 REGISTROS CARREGADOS DO ARQUIVO: {os.path.basename(filepath)} ({len(records)} itens)")
print("=" * 75)
print(f"{'#':<4} | {'Data':<10} | {'Doc':<8} | {'Valor (R$)':<12} | {'Complemento / Lançamento'}")
print("-" * 75)
total_val = 0.0
for idx, rec in enumerate(records, start=1):
total_val += rec.valor_documento
val_fmt = f"{rec.valor_documento:,.2f}".replace(",", "X").replace(".", ",").replace("X", ".")
comp_trunc = rec.complemento[:32] + "..." if len(rec.complemento) > 32 else rec.complemento
print(f"{idx:<4} | {rec.data_documento.strftime('%d/%m/%Y'):<10} | {rec.numero_documento:<8} | R$ {val_fmt:<9} | {comp_trunc}")
print("-" * 75)
total_val_fmt = f"{total_val:,.2f}".replace(",", "X").replace(".", ",").replace("X", ".")
print(f" TOTAL: {len(records)} registros | Soma dos Débitos: R$ {total_val_fmt}")
print("=" * 75)
def prompt_user_confirmation() -> bool:
"""Exibe aviso sobre login/senha no SIGA e solicita confirmação explícita."""
print("\n" + "⚠️ " * 15)
print(" INSTRUÇÃO IMPORTANTE DE AUTENTICAÇÃO NO SIGA:")
print(" Ao iniciar a automação, a janela do navegador Chromium será exibida.")
print(" Por favor, digite seu NOME DE USUÁRIO e SENHA no sistema SIGA")
print(" e resolva a verificação do reCAPTCHA ('Não sou um robô') se solicitado.")
print("⚠️ " * 15 + "\n")
confirm = input("Deseja iniciar o processamento em lote no SIGA agora? (S/n): ").strip().upper()
return confirm in ["S", "SIM", "Y", "YES", ""]
# ==============================================================================
# HELPER DE NORMALIZAÇÃO DE TEXTO
# ==============================================================================
def normalize_text(text: str) -> str:
"""Remove acentos e converte para maiúsculas para comparações permissivas."""
if not text:
return ""
nfkd = unicodedata.normalize("NFKD", text)
unaccented = "".join([c for c in nfkd if not unicodedata.combining(c)])
return unaccented.strip().upper()
# ==============================================================================
# MÓDULO ANTI-BOT — MOVIMENTOS HUMANOS DE MOUSE E TECLADO
# ==============================================================================
class HumanMouse:
"""Simula comportamento humano com curva de Bézier, jitter e delays imperfeitos."""
def __init__(self, page: Page):
self.page = page
self._x = 640.0
self._y = 400.0
@staticmethod
def _ease_in_out(t: float) -> float:
return t * t * (3.0 - 2.0 * t)
@staticmethod
def _bezier(t: float, p0: tuple, p1: tuple, p2: tuple) -> tuple:
x = (1 - t) ** 2 * p0[0] + 2 * (1 - t) * t * p1[0] + t ** 2 * p2[0]
y = (1 - t) ** 2 * p0[1] + 2 * (1 - t) * t * p1[1] + t ** 2 * p2[1]
return x, y
@staticmethod
def _random_control_point(start: tuple, end: tuple) -> tuple:
mx = (start[0] + end[0]) / 2
my = (start[1] + end[1]) / 2
dist = math.hypot(end[0] - start[0], end[1] - start[1]) or 1
perp_x = -(end[1] - start[1]) / dist
perp_y = (end[0] - start[0]) / dist
offset = random.uniform(0.10, 0.30) * dist * random.choice([-1, 1])
return mx + perp_x * offset, my + perp_y * offset
async def move_to(self, x: float, y: float, steps: int = 0):
start = (self._x, self._y)
end = (x + random.uniform(-2, 2), y + random.uniform(-2, 2))
ctrl = self._random_control_point(start, end)
dist = math.hypot(end[0] - start[0], end[1] - start[1])
n = steps or max(8, int(dist / 12))
for i in range(1, n + 1):
t_raw = i / n
t = self._ease_in_out(t_raw)
px, py = self._bezier(t, start, ctrl, end)
jitter_scale = max(0.5, 2.5 * math.sin(math.pi * t_raw))
px += random.gauss(0, jitter_scale)
py += random.gauss(0, jitter_scale)
await self.page.mouse.move(px, py)
speed_factor = 0.4 + 0.6 * math.sin(math.pi * t_raw)
await asyncio.sleep(random.uniform(0.005, 0.022) / speed_factor)
self._x, self._y = end
async def click(self, x: float, y: float, button: str = "left"):
await self.move_to(x, y)
await asyncio.sleep(random.uniform(0.05, 0.18))
await self.page.mouse.down(button=button)
await asyncio.sleep(random.uniform(0.04, 0.12))
await self.page.mouse.up(button=button)
await asyncio.sleep(random.uniform(0.08, 0.25))
async def click_element(self, locator, offset_x: float = 0, offset_y: float = 0, timeout: float = 5000):
await locator.wait_for(state="visible", timeout=timeout)
await locator.scroll_into_view_if_needed(timeout=timeout)
box = await locator.bounding_box()
if box is None:
raise RuntimeError(f"Elemento não visível para clique: {locator}")
cx = box["x"] + box["width"] / 2 + offset_x + random.uniform(-3, 3)
cy = box["y"] + box["height"] / 2 + offset_y + random.uniform(-2, 2)
await self.click(cx, cy)
async def human_type(self, locator, text: str, clear_first: bool = True):
if clear_first:
await self.click_element(locator)
await asyncio.sleep(random.uniform(0.1, 0.2))
await self.page.keyboard.press("Control+a")
await asyncio.sleep(random.uniform(0.05, 0.1))
await self.page.keyboard.press("Delete")
await asyncio.sleep(random.uniform(0.05, 0.15))
for i, char in enumerate(text):
await locator.type(char, delay=0)
if char == " ":
await asyncio.sleep(random.uniform(0.08, 0.18))
elif i > 0 and random.random() < 0.04:
await asyncio.sleep(random.uniform(0.3, 0.7))
else:
await asyncio.sleep(random.uniform(0.04, 0.13))
async def human_type2(self, locator, text: str, clear_first: bool = True):
if clear_first:
#await self.click_element2(locator)
await asyncio.sleep(random.uniform(0.1, 0.2))
await self.page.keyboard.press("Control+a")
await asyncio.sleep(random.uniform(0.05, 0.1))
await self.page.keyboard.press("Delete")
await asyncio.sleep(random.uniform(0.05, 0.15))
for i, char in enumerate(text):
await locator.type(char, delay=0)
if char == " ":
await asyncio.sleep(random.uniform(0.08, 0.18))
elif i > 0 and random.random() < 0.04:
await asyncio.sleep(random.uniform(0.3, 0.7))
else:
await asyncio.sleep(random.uniform(0.04, 0.13))
async def human_delay(min_ms: int = 400, max_ms: int = 1000):
await asyncio.sleep(random.uniform(min_ms, max_ms) / 1000)
# ==============================================================================
# AUTOMAÇÃO DE BANCO E DESPESAS (SIGA)
# ==============================================================================
class SigaDespesasAutomation:
"""Gerencia a navegação e o preenchimento guiado do formulário de Despesa no SIGA."""
def __init__(self):
self.playwright = None
self.context = None
self.page: Optional[Page] = None
self.mouse: Optional[HumanMouse] = None
async def launch(self):
self.playwright = await async_playwright().start()
project_root = os.path.dirname(os.path.abspath(__file__))
user_data_dir = os.path.join(project_root, "perfil_chromium")
self.context = await self.playwright.chromium.launch_persistent_context(
user_data_dir=user_data_dir,
headless=False,
user_agent=(
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
"AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/124.0.0.0 Safari/537.36"
),
args=["--disable-blink-features=AutomationControlled", "--start-maximized"],
ignore_default_args=["--enable-automation"],
#viewport={"width": 1366, "height": 768},
locale="pt-BR",
timezone_id="America/Cuiaba",
)
self.page = self.context.pages[0] if self.context.pages else await self.context.new_page()
self.page.set_default_timeout(Config.DEFAULT_TIMEOUT)
self.mouse = HumanMouse(self.page)
# Handler para dialogs nativos de alert/confirm
self.page.on("dialog", lambda dialog: asyncio.create_task(dialog.accept()))
# Anti-bot: limpa flag webdriver
await self.page.add_init_script(
"Object.defineProperty(navigator, 'webdriver', {get: () => undefined})"
)
logger.info(f"🌐 Navegador iniciado com perfil: {user_data_dir}")
async def close(self):
if self.context:
await self.context.close()
if self.playwright:
await self.playwright.stop()
logger.info("🌐 Navegador encerrado.")
# --------------------------------------------------------------------------
# 1. LOGIN E NAVEGAÇÃO INICIAL
# --------------------------------------------------------------------------
async def navigate_and_wait_auth(self):
page = self.page
logger.info(f"🔗 Acessando URL: {Config.SIGA_URL}")
await page.goto(Config.SIGA_URL)
logger.info("⏳ Aguardando login manual do usuário e reCAPTCHA...")
# Aguarda indicador da sessão ativa na barra superior
await page.locator(
"a:has-text('PRIMAVERA DO LESTE DL -'), "
"a:has-text('BR 09-0231 - PRIMAVERA DO'), "
"a:has-text('Mês de Trabalho')"
).first.wait_for(state="visible", timeout=Config.AUTH_TIMEOUT)
logger.info("✅ Login detectado com sucesso!")
await human_delay(1000, 2000)
async def set_work_month(self, target_month_str: str = "07/2026"):
"""Garante que o Mês de Trabalho no menu superior seja o mês desejado."""
page = self.page
mouse = self.mouse
logger.info(f"📅 Verificando Mês de Trabalho (Alvo: {target_month_str})...")
month_dropdown = page.locator("a#a_competencia, a:has-text('Mês de Trabalho')").first
await month_dropdown.wait_for(state="visible", timeout=15000)
current_text = await month_dropdown.inner_text()
if target_month_str in current_text:
logger.info(f"✅ Mês de trabalho já está ajustado para {target_month_str}.")
return
logger.info(f"🔄 Alterando Mês de Trabalho (Atual: '{current_text.strip()}') para '{target_month_str}'...")
await mouse.click_element(month_dropdown)
await human_delay(600, 1200)
# Seleciona a opção exata a.f_competencia_master com a competência alvo (ex: 07/2026)
month_option = page.locator(f"a.f_competencia_master:has-text('{target_month_str}'), a:has-text('{target_month_str}')").first
await month_option.wait_for(state="visible", timeout=5000)
await mouse.click_element(month_option)
await page.wait_for_load_state("networkidle", timeout=10000)
await human_delay(1500, 2500)
logger.info(f"✅ Mês de trabalho alterado com sucesso para {target_month_str}.")
async def navigate_to_caixas_e_bancos(self):
"""Navega pelo menu lateral: Tesouraria >> Caixas e Bancos."""
page = self.page
mouse = self.mouse
logger.info("📂 Navegando para Tesouraria >> Caixas e Bancos...")
tesouraria_menu = page.locator("a:has-text('Tesouraria')").first
await mouse.click_element(tesouraria_menu)
await human_delay(500, 1000)
caixas_bancos_link = page.get_by_role("link", name="Caixas e Bancos").first
await mouse.click_element(caixas_bancos_link)
await human_delay(1200, 2000)
logger.info("✅ Página Caixas e Bancos carregada.")
async def open_novo_despesa(self):
"""Clica no botão '+ Novo' e seleciona a opção 'Despesa'."""
page = self.page
mouse = self.mouse
logger.info("➕ Clicando no botão '+ Novo' >> 'Despesa'...")
novo_btn = page.get_by_role("button", name=" Novo ").first
await mouse.click_element(novo_btn)
await human_delay(400, 800)
despesa_option = page.get_by_role("link", name="Despesa").first
await mouse.click_element(despesa_option)
await human_delay(1500, 2500)
await page.wait_for_url("**/TES01702.aspx**", timeout=15000)
logger.info("✅ Formulário de Despesa (TES01702.aspx) aberto.")
# --------------------------------------------------------------------------
# 2. HELPERS DE INTERAÇÃO COM COMPONENTES SIGA
# --------------------------------------------------------------------------
async def _select_date_in_datepicker(self, input_locator, target_date: date):
"""
Interage com o Datepicker Bootstrap do SIGA:
Garante que o calendário esteja exibindo o mês correto (usando a seta esquerda th.prev se necessário)
e clica na célula td.day referente ao dia.
"""
page = self.page
mouse = self.mouse
portuguese_months = {
1: "JANEIRO", 2: "FEVEREIRO", 3: "MARCO", 4: "ABRIL",
5: "MAIO", 6: "JUNHO", 7: "JULHO", 8: "AGOSTO",
9: "SETEMBRO", 10: "OUTUBRO", 11: "NOVEMBRO", 12: "DEZEMBRO"
}
await input_locator.scroll_into_view_if_needed()
await mouse.click_element(input_locator)
await human_delay(400, 800)
dp = page.locator(".datepicker-days, .datepicker").first
try:
await dp.wait_for(state="visible", timeout=4000)
except PlaywrightTimeout:
logger.warning("⚠️ Popover do Datepicker não visível no primeiro clique, tentando novamente...")
await mouse.click_element(input_locator)
await human_delay(400, 800)
await dp.wait_for(state="visible", timeout=4000)
# # Ajusta o mês no calendário clicando na seta esquerda (th.prev) até exibir o mês alvo (ex: JULHO)
# header_month = page.locator(".datepicker-days th.switch, .datepicker th.switch").first
# target_month_name = portuguese_months.get(target_date.month, "JULHO")
# for attempt in range(6):
# if not await header_month.is_visible():
# break
# current_header = normalize_text(await header_month.inner_text())
# if target_month_name in current_header:
# logger.info(f"📅 Datepicker exibindo o mês correto: '{current_header}'")
# break
# logger.info(f"⏪ Datepicker exibe '{current_header}' (Esperado: '{target_month_name}'). Clicando na seta esquerda (th.prev) para voltar 1 mês...")
# prev_arrow = page.locator(".datepicker-days th.prev, .datepicker th.prev").first
# await mouse.click_element(prev_arrow)
# await human_delay(500, 900)
# # Clica no dia exato das células do mês corrente (ignora .old e .new)
# cells = page.locator(".datepicker-days td.day:not(.old):not(.new)")
# count = await cells.count()
# day_str = str(target_date.day)
# for i in range(count):
# cell = cells.nth(i)
# if (await cell.inner_text()).strip() == day_str:
# try:
# await mouse.click_element(cell)
# logger.info(f"📅 Data selecionada no datepicker: {target_date.strftime('%d/%m/%Y')}")
# await human_delay(400, 700)
# return
# except Exception as cell_err:
# logger.warning(f"⚠️ Clique direto no dia falhou ({cell_err}). Acionando digitação direta...")
# break
# Fallback: preenchimento direto da data se o clique no calendário não fechar
logger.warning(f"⚠️ Preenchendo a data {target_date.strftime('%d/%m/%Y')} diretamente via teclado...")
await input_locator.fill("")
await mouse.human_type(input_locator, target_date.strftime("%d/%m/%Y"))
await page.keyboard.press("Tab")
async def _select_select2_option(
self,
container_selector: str,
search_text: str,
target_option_text: str,
press_enter_for_ajax: bool = False,
):
"""
Preenche dropdowns pesquisáveis baseados em Select2:
1. Clica na âncora a.select2-choice dentro do container especificado.
2. Digita o texto de pesquisa na caixa #select2-drop .select2-input.
3. Pressiona Enter se for busca AJAX (ex: Fornecedor).
4. Localiza e clica na opção correspondente de forma permissiva.
"""
page = self.page
mouse = self.mouse
container = page.locator(container_selector).first
await human_delay(400, 800)
try:
choice_btn = container.locator("a.select2-choice").first
logger.info("Select2: Verificando se o botão de escolha 'a.select2-choice' está visível...")
# is_visible() does not support timeout in standard Playwright, we do a quick check
if await choice_btn.is_visible():
logger.info("Select2: Botão de escolha visível. Clicando...")
await mouse.click_element(choice_btn)
else:
logger.info("Select2: Botão de escolha não visível. Clicando no container principal...")
await mouse.click_element(container)
except Exception as e:
logger.warning(f"⚠️ Clique não foi possível no select2 choice/container: {e}")
await human_delay(400, 800)
#await human_delay(400, 800)
search_input = page.locator("#select2-drop input.select2-input").first
logger.info("Select2: Aguardando campo de busca '#select2-drop input.select2-input' ficar visível (timeout 5s)...")
try:
await search_input.wait_for(state="visible", timeout=5000)
except PlaywrightTimeout as e:
logger.info("❌ Timeout: Campo de busca do select2 não ficou visível dentro de 5s.")
raise e
# 2. Clica no campo de busca e preenche com fill + press ("Enter") se for AJAX ou seleciona da li
clean_search = normalize_text(search_text)
logger.info("Select2: Clicando no campo de busca...")
#await mouse.click_element(search_input)
logger.info(f"Select2: Preenchendo campo de busca com '{clean_search}'...")
await search_input.fill(clean_search)
await search_input.dispatch_event("input")
await human_delay(300, 600)
if press_enter_for_ajax:
logger.info(f"🔍 Disparando busca AJAX Select2 via ENTER para '{clean_search}'...")
await page.keyboard.press("Enter")
await human_delay(7500, 9500)
else:
await human_delay(400, 800)
#Jhony todo: Adicione a verificação se realmente o item clean_search foi encontrado com caracteres permissivos.
# 3. Localiza e clica no item da lista (#select2-drop .select2-results li)
results = page.locator("#select2-drop .select2-results li.select2-result-selectable")
logger.info("Select2: Aguardando resultados da busca (timeout 5s)...")
try:
await results.first.wait_for(state="attached", timeout=5000)
except PlaywrightTimeout as e:
logger.info("❌ Timeout: Nenhum resultado select2-result-selectable ficou anexado ao DOM dentro de 5s.")
raise e
count = await results.count()
logger.info(f"Select2: Encontrados {count} itens de resultado.")
target_norm = normalize_text(target_option_text)
for i in range(count):
item = results.nth(i)
logger.info(f"Select2: Obtendo texto do item {i+1}/{count}...")
item_text = await item.inner_text()
item_norm = normalize_text(item_text)
if target_norm in item_norm or item_norm in target_norm:
logger.info(f"Select2: Item correspondente encontrado ('{item_text.strip()}'). Clicando...")
await mouse.click_element(item)
logger.info(f"✅ Opção Select2 selecionada com sucesso: '{item_text.strip()}'")
await human_delay(400, 800)
await page.keyboard.press("Enter")
return
# # Fallback: se houver opção destacada ou primeira opção clicável
# logger.warning(f"⚠️ Seleção exata por texto não casou ('{target_norm}'), clicando na primeira opção visível...")
# first_opt = results.first
# if await first_opt.is_visible():
# await mouse.click_element(first_opt)
# else:
# await page.keyboard.press("Enter")
# await human_delay(500, 900)
# --------------------------------------------------------------------------
# 3. PREENCHIMENTO COMPLETO DO FORMULÁRIO DE DESPESA
# --------------------------------------------------------------------------
async def process_expense(self, expense: ExpenseRecord):
"""Executa todos os passos de preenchimento gravados no formulário TES01702."""
page = self.page
mouse = self.mouse
logger.info("\n" + "=" * 60)
logger.info(f"📝 PREENCHENDO DESPESA: Data {expense.data_documento.strftime('%d/%m/%Y')} | N° {expense.numero_documento} | R$ {expense.valor_documento:.2f}")
logger.info("=" * 60)
# 1. Data Documento
logger.info("1️⃣ Preenchendo Data Documento...")
data_doc_input = page.locator("#f_data").first
await self._select_date_in_datepicker(data_doc_input, expense.data_documento)
# 2. Tipo Documento (Busca permissiva sem acentos)
logger.info(f"2️⃣ Selecionando Tipo Documento: '{expense.tipo_documento}'...")
await self._select_select2_option(
container_selector="#s2id_f_id_tipo_documento, #s2id_f_tipo_documento",
search_text="AVISO DE DEBITO",
target_option_text=expense.tipo_documento,
)
# 3. N° Documento (Dados do Documento)
logger.info(f"3️⃣ Preenchendo N° Documento: '{expense.numero_documento}'...")
num_doc_input = page.locator("#f_documento").first
await mouse.human_type(num_doc_input, expense.numero_documento)
await human_delay(300, 600)
# 4. Valor Documento
valor_str = f"{expense.valor_documento:.2f}".replace(".", ",")
logger.info(f"4️⃣ Preenchendo Valor Documento: '{valor_str}'...")
valor_input = page.locator("#f_valor").first
await mouse.human_type(valor_input, valor_str)
await page.keyboard.press("Tab")
await human_delay(600, 1200)
# 5. Despesa (Rateio)
logger.info(f"5️⃣ Selecionando Despesa: '{expense.codigo_despesa}'...")
await self._select_select2_option(
container_selector="#s2id_f_id_despesa, #s2id_f_despesa",
search_text=expense.codigo_despesa,
target_option_text="3030 - DESPESAS BANCARIAS",
)
# 6. Fornecedor (AJAX)
logger.info(f"6️⃣ Pesquisando e selecionando Fornecedor: '{expense.fornecedor_alvo}'...")
await self._select_select2_option(
container_selector="#s2id_f_id_fornecedor, #s2id_f_fornecedor",
search_text=expense.fornecedor_busca,
target_option_text=expense.fornecedor_alvo,
press_enter_for_ajax=True,
)
# Faça com que seja apertado a tecla ESC
await page.keyboard.press("Escape", delay=400)
await human_delay(300, 600)
await page.keyboard.press("Escape", delay=500)
await human_delay(300, 600)
# 7. Validação do Histórico (Rateio)
logger.info(f"7️⃣ Validando Histórico...")
historico_select = page.locator("#f_historico_debito").first
if await historico_select.is_visible():
selected_option = page.locator("#f_historico_debito option:selected").first
hist_text = await selected_option.text_content() or ""
if "12 - DESP.BANC" in hist_text:
logger.info(f"7️⃣ Histórico de Rateio Validado: '{hist_text.strip()}'")
# Faça com que seja apertado a tecla ESC
await page.keyboard.press("Escape", delay=400)
await human_delay(300, 600)
await page.keyboard.press("Escape", delay=500)
await human_delay(300, 600)
# 8. Complemento (Rateio)
logger.info(f"8️⃣ Preenchendo Complemento (Rateio): '{expense.complemento}'...")
complemento_input = page.locator("#f_complemento2").first
await human_delay(300, 600)
await complemento_input.click()
await mouse.human_type2(complemento_input, expense.complemento)
await human_delay(300, 600)
# 9. Data Pagamento
logger.info("9️⃣ Preenchendo Data Pagamento...")
data_pagamento_input = page.locator("#f_datapagamento").first
await self._select_date_in_datepicker(data_pagamento_input, expense.data_pagamento)
# 10. Forma Pagamento
logger.info(f"🔟 Selecionando Forma Pagamento: '{expense.forma_pagamento}'...")
await self._select_select2_option(
container_selector="#s2id_f_formapagamento, #s2id_f_id_forma_pagamento",
search_text="DEBITO AUTO",
target_option_text=expense.forma_pagamento,
)
# Faça scroll to bottom
await page.mouse.wheel(0, 10000)
await human_delay(300, 600)
# 10.1 Validação do Campo Conta (Auto-preenchido pelo SIGA ao escolher DÉBITO AUTOMÁTICO)
conta_field = page.locator("#s2id_f_conta .select2-chosen, #s2id_f_id_conta .select2-chosen").first
if await conta_field.is_visible():
conta_text = await conta_field.inner_text()
logger.info(f"🏦 Validando Campo Conta: '{conta_text.strip()}' (Esperado: 10130 - BRADESCO...)")
# 11. N° Documento (Pagamento)
logger.info(f"1️⃣1️⃣ Preenchendo N° Documento (Pagamento): '{expense.numero_doc_pagamento}'...")
num_doc_pag_input = page.locator("#f_documento2").first
await mouse.human_type(num_doc_pag_input, expense.numero_doc_pagamento)
await human_delay(300, 600)
# 12. Histórico (Pagamento)
logger.info("1️⃣2️⃣ Selecionando Histórico (Pagamento)...")
await self._select_select2_option(
container_selector="#s2id_f_historico",
search_text="012",
target_option_text="012 - DESP.BANCÁRIAS",
)
# 13. Complemento (Pagamento)
logger.info(f"1️⃣3️⃣ Preenchendo Complemento (Pagamento): '{expense.complemento}'...")
complemento_pag_input = page.locator("#f_complemento").first
await mouse.human_type(complemento_pag_input, expense.complemento)
await human_delay(500, 1000)
logger.info("✨ Todos os campos da despesa foram preenchidos e validados com sucesso!")
async def save_form(self, click_save: bool = True):
"""Clica no botão 'Salvar' (button.btn-salvar), confirma os diálogos/modais ('Sim' e depois 'OK') e aguarda o retorno para TES01701.aspx."""
page = self.page
if click_save:
logger.info("💾 Clicando no botão 'Salvar' (button.btn-salvar)...")
salvar_btn = page.locator("button.btn-salvar, button[data-comando='F']").first
await salvar_btn.scroll_into_view_if_needed()
await self.mouse.click_element(salvar_btn)
await human_delay(1000, 1500)
# 1. Confirmação do modal ("Sim")
sim_btn = page.locator("button:has-text('Sim'), button.btn-primary:has-text('Sim'), button[data-bb-handler='confirm'], .modal-footer button:has-text('Sim')").first
try:
await sim_btn.wait_for(state="visible", timeout=6000)
logger.info("❓ Modal de confirmação detectada. Clicando em 'Sim'...")
await self.mouse.click_element(sim_btn)
await human_delay(1000, 1800)
except PlaywrightTimeout:
logger.info("ℹ️ Modal 'Sim' não foi solicitada ou fechou automaticamente.")
# 2. Confirmação de mensagem de sucesso ("OK")
ok_btn = page.locator("button:has-text('Ok'), button.btn-primary:has-text('Ok'), button[data-bb-handler='botao'], .modal-footer button:has-text('Ok')").first
try:
await ok_btn.wait_for(state="visible", timeout=6000)
logger.info("ℹ️ Modal de sucesso detectada. Clicando em 'OK'...")
await self.mouse.click_element(ok_btn)
await human_delay(1000, 1800)
except PlaywrightTimeout:
logger.info("ℹ️ Modal 'OK' não foi solicitada ou fechou automaticamente.")
# 3. Aguarda o processamento e o redirecionamento de volta para a lista de Caixas e Bancos
try:
await page.wait_for_url("**/TES01701.aspx**", timeout=15000)
except PlaywrightTimeout:
logger.warning("⚠️ Redirecionamento automático para TES01701.aspx não ocorreu em 15s. Redirecionando manualmente...")
await self.navigate_to_caixas_e_bancos()
await human_delay(1000, 1800)
logger.info("✅ Lançamento de despesa salvo no SIGA com sucesso! Retornado para a lista de Caixas e Bancos.")
else:
logger.info("ℹ️ Modo de simulação: formulário preenchido sem submeter (Salvar não clicado).")
async def wait_for_user_or_timeout(timeout_seconds: int = 30):
"""Pausa o encerramento do navegador por até timeout_seconds ou até o usuário pressionar ENTER."""
print("\n" + "🛑 " * 15)
print(" FALHA CRÍTICA DETECTADA NO LANÇAMENTO!")
print(f" O navegador permanecerá aberto por até {timeout_seconds} segundos")
print(" (ou até você pressionar a tecla ENTER no terminal) para inspeção.")
print("🛑 " * 15 + "\n")
loop = asyncio.get_running_loop()
async def wait_key():
try:
await loop.run_in_executor(None, input, "Pressione ENTER no terminal para encerrar o navegador e abortar...")
except Exception:
pass
try:
await asyncio.wait_for(wait_key(), timeout=timeout_seconds)
except asyncio.TimeoutError:
logger.info(f"⏳ Tempo limite de {timeout_seconds}s para inspeção concluído.")
# ==============================================================================
# ENTRYPOINT PRINCIPAL (FLUXO EM LOTE VIA CSV)
# ==============================================================================
async def main():
Config.load()
try:
# 1. Solicita e lê o arquivo CSV
csv_file = get_csv_filepath()
records = CSVReaderService.load_expenses_from_csv(csv_file)
if not records:
logger.error("❌ Nenhum registro válido encontrado no CSV para processamento.")
return
# 2. Exibe a prévia no terminal
print_records_preview(records, csv_file)
# 3. Solicita confirmação explícita e orienta sobre login/senha
if not prompt_user_confirmation():
logger.info("🛑 Execução cancelada pelo usuário.")
return
automation = SigaDespesasAutomation()
try:
# 4. Inicia o navegador e aguarda login manual + reCAPTCHA
await automation.launch()
await automation.navigate_and_wait_auth()
# 5. Define o Mês de Trabalho com base na data do primeiro registro
first_date = records[0].data_documento
target_month_str = f"{first_date.month:02d}/{first_date.year}"
await automation.set_work_month(target_month_str)
# 6. Navega para a lista inicial de Caixas e Bancos (TES01701.aspx)
await automation.navigate_to_caixas_e_bancos()
total_records = len(records)
success_count = 0
failed_count = 0
# 7. Loop de lançamentos em lote (Redirecionamento ao Salvar)
for idx, rec in enumerate(records, start=1):
logger.info(f"\n🔄 [{idx}/{total_records}] Iniciando lançamento do registro...")
try:
# A. Clica em '+ Novo' >> 'Despesa' para abrir um formulário limpo (TES01702.aspx)
await automation.open_novo_despesa()
# B. Preenche todos os campos da despesa a partir do registro do CSV
await automation.process_expense(rec)
# C. Clica em Salvar (Modo Simulação: MANTIDO click_save=False para NUNCA submeter em produção)
await automation.save_form(click_save=True)
success_count += 1
logger.info(f"🎉 [{idx}/{total_records}] SUCESSO: Data {rec.data_documento.strftime('%d/%m/%Y')} | Doc {rec.numero_documento} | R$ {rec.valor_documento:.2f}")
except Exception as item_err:
failed_count += 1
logger.error(f"\n❌ [{idx}/{total_records}] ERRO AO PROCESSAR REGISTRO (Doc {rec.numero_documento}, Data {rec.data_documento.strftime('%d/%m/%Y')}): {item_err}", exc_info=True)
# Pausa para inspeção visual no navegador (30s ou tecla ENTER no terminal)
await wait_for_user_or_timeout(30)
logger.error("🛑 POLÍTICA FAIL-FAST: Execução do lote abortada imediatamente. Nenhum outro registro será processado.")
break
logger.info("\n" + "🏁 " * 15)
logger.info(" PROCESSAMENTO EM LOTE FINALIZADO!")
logger.info(f" Total Solicitado: {total_records}")
logger.info(f" Sucessos: {success_count}")
logger.info(f" Falhas: {failed_count}")
logger.info("🏁 " * 15 + "\n")
await asyncio.sleep(2)
finally:
await automation.close()
except KeyboardInterrupt:
logger.warning("\n🛑 Execução interrompida pelo usuário via terminal.")
except Exception as e:
logger.error(f"❌ Erro fatal na execução do RPA: {e}", exc_info=True)
if __name__ == "__main__":
asyncio.run(main())

13
credentials.json Normal file
View File

@@ -0,0 +1,13 @@
{
"type": "service_account",
"project_id": "gen-lang-client-0779671256",
"private_key_id": "ffc852205a4971fff66a3ba546657003f9f49e1c",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCvzmVX3VcyALOi\nUWoyFaxeZAje8gMqoZnB/rmfn1UdwNtsBUBvEuEKvzdKv3By/TeDITVKJxINtXjX\nCkgiKyotcV+dj8jnNvBG1FPvJDngCVodzqLd5FiUGjOYNGEypczGOeBQNNJsmnMa\nvYBNs8NE0vu9ZsTN/7+W2eZj0+V2w7cgzLA7e4mwaC7TosBrf/S2cCrpaSLUtW/f\nw7RnAzS577TQnWtJOaX9Zf3NUp1uhLAgCWHQilqfqdYN7iLP6ReVpVdxiTKtb+41\nVi4A12aXU/LuWthym2rAFoy5gSFRZVR54QphK2p6UuBwoILfDARWsuMtTZiJ4C6y\nE+n5V7jNAgMBAAECggEAF23ARDIXW27MAaLrbdLFFowqwXlLkjwYd0mot5y+dVlc\n9HuLr3G641mBtxillfFoWzWK+j+UMJcBTFkOrV0GwSkVdrQxcBy6bxn/OIShoNlm\nNMgznLIAWvZV71/1nxAI5tbSLaYob7gyhDsCVPiSmoKqcT53lkNRpzsRMLcNoqKw\nH4zuBLBJJJqu5aP3Dx0z9b70K9i6Ttsx6o55hDCEbibz1IyekgM91BW/qxb9w6FD\n0vAc7YH/j4ukZaQbJklmSAP+sNq61FzQFLB7qCm2B9z3T97gyfDcryz+JlFDN207\n1XDEkpV/21v3osgxOM5+8SRScalF0IuqFWYWgwsVcQKBgQDpnuo3PZcnB8hvmUSS\nwFfBz3+Y24t2M/qvZLrcMimzk2dY24/6OIbRWYBU3vnUhutUyT1qZK6GK5NvUFi4\nhgHT+a7sqxwO6BvDLkoOunI0IprSz3Q462MaLf/1ec2dnJPLZxbn67xnG2Ll2gCg\nIU/Odd8PgsyW/qZmJBRG9wzTHQKBgQDApbHMeZmd0ev6ohGnmFiRbvZvbaqb6RPl\nInrqbvV217AdEbaf5Ni8Mw9XQlHfHKq0CYpkofo1lzvEmGMdhlmIhfLkxjk1eOjJ\naZ7NQ6TVjPxj8fXtLCx9vRrpfO+JSN2LqZC8HUbm6dfCo9HegXMV348vFP5uVO8X\n/pnvfmFdcQKBgGJUQMB/a99Bp1tRZ0tdKZKpg0sTHN/jgN/RxdRoSKUMpbMAttja\nceQrh5gxQXXyU5qcGP1u4wYV0ThI2Q7RWHOf48A5RNYBW64LDaClWOwYpJGWP5S1\nfkDGm7T2T1THUm2KNlnnHqVHIZkc6KZ9XtnHQtuEchgblm3nQaGc2gkBAoGBAIgW\nhLtFS1dJa8Hpqz8RR7+0+zFL7zGkPQGokdv59jy1sRtX4AKjztdj2npxxxQtVAlK\nlBDyu6YP55DBdYLt3WGr/iHORauYdhmSGzQ1jMOujLytuGSKyAMrC0/VigEZECgQ\n6MV6iROmLVy6DQ95sqrI+oTv96xJI313xZaBWJaBAoGALhofgGtEquGWYN+z8dgW\nDW9jr/GoocfnP+rponpD6i9udaiWTp0g6lT8oNGsc8X35DZ78Qg2edtBG3qky22V\nLGGCOCAe9Nc1vJOTVt0d4ghTnV5Ylk7CyEnSykFGFHn1OnNQgnK0phoyzl3+PpxQ\nWHbGRIFDkNri7JQV4mYQc9E=\n-----END PRIVATE KEY-----\n",
"client_email": "fundobiblicoccb-rpa@gen-lang-client-0779671256.iam.gserviceaccount.com",
"client_id": "111394066995703039503",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/fundobiblicoccb-rpa%40gen-lang-client-0779671256.iam.gserviceaccount.com",
"universe_domain": "googleapis.com"
}

849
fundo_biblico_rpa.py Normal file
View File

@@ -0,0 +1,849 @@
# -- coding: utf-8 --
"""
Fundo Bíblico RPA - Automação de Lançamentos no SIGA
Lê vendas do Google Sheets, agrupa por dia+meio de pagamento,
e lança como SAÍDAs no sistema SIGA via Playwright.
Anti-bot: movimentos humanos de mouse, delays variáveis, jitter.
"""
import asyncio
import logging
import math
import os
import random
from collections import defaultdict
from dataclasses import dataclass, field
from datetime import datetime, date, timedelta
from typing import List, Set, Optional
from dotenv import load_dotenv
import gspread
from google.oauth2.service_account import Credentials
from playwright.async_api import async_playwright, Page, TimeoutError as PlaywrightTimeout
# Logging
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s - %(levelname)s - %(message)s",
)
logger = logging.getLogger(__name__)
# ==============================================================================
# CONFIGURAÇÃO
# ==============================================================================
class Config:
"""Centraliza configurações e variáveis de ambiente."""
SIGA_URL = "https://siga.congregacao.org.br/index.aspx"
SPREADSHEET_ID = "1tuOfcMhiUa-VKT1COWtUV4QB6DgUOxzyOx-LJGIHH1A"
VENDAS_TAB = "Vendas"
LANCAMENTOS_TAB = "SIGA"
GOOGLE_CREDENTIALS_FILE: str = ""
SIGA_ORIGIN_CODE: str = "0231"
SIGA_DEST_CODE: str = "0231"
@classmethod
def load(cls):
load_dotenv()
cls.GOOGLE_CREDENTIALS_FILE = os.getenv("GOOGLE_CREDENTIALS_FILE", "credentials.json")
cls.SIGA_ORIGIN_CODE = os.getenv("SIGA_ORIGIN_CODE", "0231")
cls.SIGA_DEST_CODE = os.getenv("SIGA_DEST_CODE", "0231")
if not os.path.exists(cls.GOOGLE_CREDENTIALS_FILE):
raise FileNotFoundError(
f"Arquivo de credenciais não encontrado: {cls.GOOGLE_CREDENTIALS_FILE}\n"
"Configure GOOGLE_CREDENTIALS_FILE no .env"
)
# ==============================================================================
# DTOs
# ==============================================================================
@dataclass
class SaleItem:
id: int
data_venda: date
item_code: str
quantidade: int
valor_final: float
meio_pag: str
@dataclass
class AggregatedProduct:
code: str
total_qty: int
total_valor: float
sale_ids: List[int]
@dataclass
class SaleGroup:
data_venda: date
meio_pag: str
items: List[SaleItem] = field(default_factory=list)
@property
def total_valor(self) -> float:
return sum(i.valor_final for i in self.items)
@property
def all_ids(self) -> List[int]:
return [i.id for i in self.items]
def get_aggregated_products(self) -> List[AggregatedProduct]:
agg: dict[str, AggregatedProduct] = {}
for item in self.items:
if item.item_code not in agg:
agg[item.item_code] = AggregatedProduct(
code=item.item_code, total_qty=0, total_valor=0.0, sale_ids=[]
)
agg[item.item_code].total_qty += item.quantidade
agg[item.item_code].total_valor += item.valor_final
agg[item.item_code].sale_ids.append(item.id)
return list(agg.values())
# ==============================================================================
# UTILITÁRIOS
# ==============================================================================
def parse_date(date_val) -> Optional[date]:
if date_val is None:
return None
if isinstance(date_val, (int, float)):
return (datetime(1899, 12, 30) + timedelta(days=int(date_val))).date()
date_str = str(date_val).strip()
if not date_str:
return None
for fmt in (
"%Y-%m-%dT%H:%M:%S",
"%Y-%m-%d",
"%d/%m/%Y",
"%m/%d/%Y",
"%d/%m/%Y %H:%M:%S",
"%m/%d/%Y %H:%M:%S",
):
try:
return datetime.strptime(date_str.split(".")[0], fmt).date()
except ValueError:
continue
return None
# ==============================================================================
# GOOGLE SHEETS SERVICE
# ==============================================================================
class GoogleSheetsService:
def __init__(self, credentials_file: str, spreadsheet_id: str):
scopes = [
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/drive.readonly",
]
creds = Credentials.from_service_account_file(credentials_file, scopes=scopes)
gc = gspread.authorize(creds)
self.spreadsheet = gc.open_by_key(spreadsheet_id)
self.vendas_ws = self.spreadsheet.worksheet(Config.VENDAS_TAB)
self.lancamentos_ws = self.spreadsheet.worksheet(Config.LANCAMENTOS_TAB)
logger.info("✅ Conectado ao Google Sheets.")
def read_vendas(self, target_month: int, target_year: int) -> List[SaleItem]:
records = self.vendas_ws.get_all_records()
sales: List[SaleItem] = []
for rec in records:
try:
dt = parse_date(rec.get("DataVenda"))
if dt is None or dt.month != target_month or dt.year != target_year:
continue
sales.append(
SaleItem(
id=int(rec["ID"]),
data_venda=dt,
item_code=str(rec["Item"]).strip(),
quantidade=int(rec["Qtd"]),
valor_final=float(rec["ValorFinal"]),
meio_pag=str(rec["MeioPag"]).strip().upper(),
)
)
except Exception as e:
logger.warning(f"Erro ao parsear registro: {rec} → {e}")
logger.info(f"📊 {len(sales)} vendas do mês {target_month:02d}/{target_year}.")
return sales
def read_lancamentos(self) -> Set[int]:
records = self.lancamentos_ws.get_all_records()
launched = {
int(r["ID"])
for r in records
if str(r.get("LancadoSiga", "")).upper() == "SIM"
}
logger.info(f"📋 {len(launched)} IDs já lançados.")
return launched
def mark_as_launched(self, ids: List[int]):
timestamp = datetime.now().strftime("%d/%m/%Y %H:%M:%S")
rows = [[id_val, "SIM", timestamp] for id_val in ids]
self.lancamentos_ws.append_rows(rows, value_input_option="USER_ENTERED")
logger.info(f"✅ Marcados como lançados: {ids}")
# ==============================================================================
# AGRUPAMENTO
# ==============================================================================
def group_sales(sales: List[SaleItem], launched_ids: Set[int]) -> List[SaleGroup]:
pending = [s for s in sales if s.id not in launched_ids]
if not pending:
logger.info("✅ Todas as vendas já foram lançadas!")
return []
logger.info(f"📦 {len(pending)} vendas pendentes.")
groups_dict: dict[tuple, list] = defaultdict(list)
for sale in pending:
groups_dict[(sale.data_venda, sale.meio_pag)].append(sale)
groups = [
SaleGroup(data_venda=k[0], meio_pag=k[1], items=v)
for k, v in sorted(groups_dict.items())
]
for g in groups:
prods = ", ".join(f"{p.code}x{p.total_qty}" for p in g.get_aggregated_products())
logger.info(f" 📅 {g.data_venda} | {g.meio_pag} | {prods} | R${g.total_valor:.2f}")
return groups
# ==============================================================================
# MÓDULO ANTI-BOT — Movimentos humanos de mouse
# ==============================================================================
class HumanMouse:
"""
Simula comportamento humano de mouse:
- Trajetória curva (Bézier quadrática) entre dois pontos
- Microtremores (jitter) ao longo do caminho
- Velocidade variável com aceleração/desaceleração (ease-in-out)
- Pausas aleatórias antes/depois do clique
"""
def __init__(self, page: Page):
self.page = page
# Posição corrente estimada (começa no centro da tela)
self._x = 640.0
self._y = 400.0
# ------------------------------------------------------------------
# Helpers internos
# ------------------------------------------------------------------
@staticmethod
def _ease_in_out(t: float) -> float:
"""Curva de aceleração suave: devagar → rápido → devagar."""
return t * t * (3.0 - 2.0 * t)
@staticmethod
def _bezier(t: float, p0: tuple, p1: tuple, p2: tuple) -> tuple:
"""Ponto na curva Bézier quadrática em t ∈ [0, 1]."""
x = (1 - t) ** 2 * p0[0] + 2 * (1 - t) * t * p1[0] + t ** 2 * p2[0]
y = (1 - t) ** 2 * p0[1] + 2 * (1 - t) * t * p1[1] + t ** 2 * p2[1]
return x, y
@staticmethod
def _random_control_point(start: tuple, end: tuple) -> tuple:
"""
Ponto de controle aleatório deslocado perpendicularmente
à linha start→end (entre 10 % e 30 % do comprimento).
"""
mx = (start[0] + end[0]) / 2
my = (start[1] + end[1]) / 2
dist = math.hypot(end[0] - start[0], end[1] - start[1]) or 1
perp_x = -(end[1] - start[1]) / dist
perp_y = (end[0] - start[0]) / dist
offset = random.uniform(0.10, 0.30) * dist * random.choice([-1, 1])
return mx + perp_x * offset, my + perp_y * offset
# ------------------------------------------------------------------
# API pública
# ------------------------------------------------------------------
async def move_to(self, x: float, y: float, steps: int = 0):
"""
Move o mouse da posição atual até (x, y) em trajetória curva.
steps=0 → calculado automaticamente pela distância.
"""
start = (self._x, self._y)
end = (x + random.uniform(-2, 2), y + random.uniform(-2, 2))
ctrl = self._random_control_point(start, end)
dist = math.hypot(end[0] - start[0], end[1] - start[1])
n = steps or max(8, int(dist / 12))
for i in range(1, n + 1):
t_raw = i / n
t = self._ease_in_out(t_raw)
px, py = self._bezier(t, start, ctrl, end)
# Jitter suave (microtremor)
jitter_scale = max(0.5, 2.5 * math.sin(math.pi * t_raw))
px += random.gauss(0, jitter_scale)
py += random.gauss(0, jitter_scale)
await self.page.mouse.move(px, py)
# Velocidade variável: mais devagar nas extremidades
speed_factor = 0.4 + 0.6 * math.sin(math.pi * t_raw)
await asyncio.sleep(random.uniform(0.005, 0.022) / speed_factor)
self._x, self._y = end
async def click(self, x: float, y: float, button: str = "left"):
"""Move até (x, y) e clica com pausa humana."""
await self.move_to(x, y)
await asyncio.sleep(random.uniform(0.05, 0.18)) # pausa pré-clique
await self.page.mouse.down(button=button)
await asyncio.sleep(random.uniform(0.04, 0.12)) # duração do clique
await self.page.mouse.up(button=button)
await asyncio.sleep(random.uniform(0.08, 0.25)) # pausa pós-clique
async def click_element(self, locator, offset_x: float = 0, offset_y: float = 0):
"""
Obtém o bounding box de um locator e clica no centro (com desvio opcional),
usando trajetória humana de mouse.
Faz scroll automático para o elemento ficar visível antes de clicar.
"""
await locator.scroll_into_view_if_needed()
box = await locator.bounding_box()
if box is None:
raise RuntimeError(f"Elemento sem bounding box visível: {locator}")
# Clica numa área levemente aleatória dentro do elemento
cx = box["x"] + box["width"] / 2 + offset_x + random.uniform(-3, 3)
cy = box["y"] + box["height"] / 2 + offset_y + random.uniform(-2, 2)
await self.click(cx, cy)
async def human_type(self, locator, text: str, clear_first: bool = True):
"""
Digita texto caractere a caractere com delay humano variável.
Inclui ocasionais micro-pausas como se a pessoa estivesse pensando.
"""
if clear_first:
await locator.click()
await asyncio.sleep(random.uniform(0.1, 0.2))
await self.page.keyboard.press("Control+a")
await asyncio.sleep(random.uniform(0.05, 0.1))
await self.page.keyboard.press("Delete")
await asyncio.sleep(random.uniform(0.05, 0.15))
for i, char in enumerate(text):
await locator.type(char, delay=0)
# Delay entre teclas: mais rápido no meio das palavras
if char == " ":
await asyncio.sleep(random.uniform(0.08, 0.18))
elif i > 0 and random.random() < 0.04:
# 4 % de chance de pausa longa (distração)
await asyncio.sleep(random.uniform(0.3, 0.7))
else:
await asyncio.sleep(random.uniform(0.04, 0.13))
async def idle_wiggle(self, duration_ms: int = 500):
"""Mexe o mouse levemente durante uma espera (simula impaciência)."""
end_time = asyncio.get_event_loop().time() + duration_ms / 1000
while asyncio.get_event_loop().time() < end_time:
dx = random.uniform(-8, 8)
dy = random.uniform(-5, 5)
await self.move_to(self._x + dx, self._y + dy, steps=4)
await asyncio.sleep(random.uniform(0.08, 0.20))
async def human_delay(min_ms: int = 300, max_ms: int = 900):
"""Pausa aleatória entre ações (em milissegundos)."""
await asyncio.sleep(random.uniform(min_ms, max_ms) / 1000)
# ==============================================================================
# AUTOMAÇÃO SIGA
# ==============================================================================
class SigaAutomation:
"""Automação do sistema SIGA via Playwright com comportamento humano."""
TIMEOUT = 30_000
AUTH_TIMEOUT = 3_600_000 # 1 hora
def __init__(self):
self.playwright = None
self.context = None
self.page: Optional[Page] = None
self.mouse: Optional[HumanMouse] = None
async def launch(self):
self.playwright = await async_playwright().start()
project_root = os.path.dirname(os.path.abspath(__file__))
user_data_dir = os.path.join(project_root, "perfil_chromium")
self.context = await self.playwright.chromium.launch_persistent_context(
user_data_dir=user_data_dir,
headless=False,
# Passa por checagens simples de user-agent
user_agent=(
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
"AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/124.0.0.0 Safari/537.36"
),
# Remove a flag que identifica automação
args=["--disable-blink-features=AutomationControlled"],
ignore_default_args=["--enable-automation"],
viewport={"width": 1366, "height": 768},
locale="pt-BR",
timezone_id="America/Cuiaba",
)
self.page = self.context.pages[0] if self.context.pages else await self.context.new_page()
self.page.set_default_timeout(self.TIMEOUT)
self.mouse = HumanMouse(self.page)
# Remove propriedade webdriver do navigator
await self.page.add_init_script(
"Object.defineProperty(navigator, 'webdriver', {get: () => undefined})"
)
logger.info(f"🌐 Navegador iniciado com perfil: {user_data_dir}")
async def close(self):
if self.context:
await self.context.close()
if self.playwright:
await self.playwright.stop()
logger.info("🌐 Navegador fechado.")
# ---------- AUTENTICAÇÃO ----------
async def navigate_and_wait_auth(self):
page = self.page
await page.goto(Config.SIGA_URL)
logger.info("⏳ Aguardando login manual + reCAPTCHA...")
await page.locator(
"a:has-text('PRIMAVERA DO LESTE DL -'), "
"a:has-text('BR 09-0231 - PRIMAVERA DO')"
).first.wait_for(state="visible", timeout=self.AUTH_TIMEOUT)
logger.info("✅ Login detectado!")
await human_delay(800, 1500)
async def check_session(self):
try:
login_field = self.page.get_by_role("textbox", name="Email/Usuário:")
if await login_field.is_visible(timeout=2000):
logger.warning("⚠️ Sessão expirada! Aguardando re-login...")
await self.navigate_and_wait_auth()
await self.navigate_to_fundo_biblico()
await self.validate_and_enter_month()
except PlaywrightTimeout:
pass
# ---------- NAVEGAÇÃO ----------
async def navigate_to_fundo_biblico(self):
page = self.page
mouse = self.mouse
try:
locality_dropdown = page.locator(
'//*[@id="navbar-container"]/div[2]/ul/li[3]/a'
)
if await locality_dropdown.is_visible(timeout=5000):
await mouse.click_element(locality_dropdown)
await human_delay(600, 1200)
localidades_menu = page.locator(
'//*[@id="navbar-container"]/div[2]/ul/li[3]/ul/li[2]/a'
)
await mouse.click_element(localidades_menu)
await human_delay(400, 800)
target_locality = page.locator('//*[@id="5044"]/a')
if await target_locality.count() > 0:
await target_locality.first.evaluate("el => el.click()")
else:
fallback = page.locator(f'a:has-text("{Config.SIGA_DEST_CODE}")').last
if await fallback.count() > 0:
await fallback.evaluate("el => el.click()")
# Wiggle enquanto o SIGA recarrega
await mouse.idle_wiggle(3500)
except Exception as e:
logger.warning(f"⚠️ Erro ao tentar mudar localidade: {e}")
fundo_link = page.get_by_role("link", name="Fundo Bíblico", exact=False).first
await fundo_link.wait_for(state="attached", timeout=15000)
await mouse.click_element(fundo_link)
await human_delay(1000, 2000)
logger.info("📂 Navegou para Fundo Bíblico.")
async def validate_and_enter_month(self):
page = self.page
now = datetime.now() #- timedelta(days=1)
month_text = f"Mês de Trabalho {now.month:02d}/{now.year}"
month_link = page.get_by_role("link", name=month_text)
try:
await month_link.wait_for(state="visible", timeout=10000)
await self.mouse.click_element(month_link)
await human_delay(1000, 2000)
logger.info(f"📅 Entrou no {month_text}")
except PlaywrightTimeout:
raise RuntimeError(
f"❌ '{month_text}' não encontrado! "
"Certifique-se de que o mês atual está criado no SIGA."
)
# ---------- LANÇAMENTO DE SAÍDA ----------
async def process_group(self, group: SaleGroup) -> List[int]:
page = self.page
mouse = self.mouse
products = group.get_aggregated_products()
logger.info(f"\n{'='*60}")
logger.info(f"📦 SAÍDA: {group.data_venda} | {group.meio_pag} | {len(products)} produto(s)")
logger.info(f"{'='*60}")
await self.check_session()
# 1. Novo → Saída
novo_btn = page.get_by_role("button", name=" Novo ")
await mouse.click_element(novo_btn)
await human_delay(700, 1300)
saida_link = page.get_by_role("link", name="Saída")
await mouse.click_element(saida_link)
await human_delay(1000, 1800)
# 2. Datepicker
await self._select_date(group.data_venda)
# Aguardar spinner
await human_delay(500, 1000)
try:
await page.locator("text=Aguarde...").wait_for(state="hidden", timeout=10000)
except PlaywrightTimeout:
pass
await human_delay(800, 1500)
# 3. Inserir produtos
successful_ids: List[int] = []
failed_products: List[AggregatedProduct] = []
for product in products:
ok = await self._add_product(product.code, product.total_qty)
if ok:
successful_ids.extend(product.sale_ids)
else:
failed_products.append(product)
if not successful_ids:
logger.error("❌ Todos produtos falharam! Cancelando SAÍDA...")
await self._cancel_saida()
return []
if failed_products:
logger.warning(f"⚠️ Produtos não encontrados: {[p.code for p in failed_products]}")
# 4. Pagamento
await self._fill_payment_value(group.meio_pag)
# 5. Confirmar
await self._confirm()
logger.info(f"✅ SAÍDA confirmada! IDs: {successful_ids}")
return successful_ids
# ---------- DATEPICKER ----------
async def _select_date(self, target: date):
"""
Aguarda o datepicker Bootstrap abrir e clica no dia desejado.
O mês exibido é sempre o mês de trabalho do SIGA — sem navegação.
Dias de meses adjacentes têm classe 'old' ou 'new' e são ignorados.
"""
page = self.page
mouse = self.mouse
# Aguarda o datepicker aparecer (o SIGA abre automaticamente)
dp = page.locator(".datepicker-days")
try:
await dp.wait_for(state="visible", timeout=5_000)
except PlaywrightTimeout:
# Fallback: tenta abrir clicando em algum input de data visível
logger.warning("⚠️ Datepicker não abriu automaticamente, tentando campo...")
input_data = page.locator(
"input.datepicker, input[name*='data'], input[id*='data']"
).first
try:
await mouse.click_element(input_data)
await human_delay(400, 700)
await dp.wait_for(state="visible", timeout=5_000)
except PlaywrightTimeout:
logger.warning("⚠️ Datepicker não encontrado, continuando sem selecionar data.")
return
# Aproxima o mouse do calendário antes de interagir (comportamento humano)
dp_box = await dp.bounding_box()
if dp_box:
await mouse.move_to(
dp_box["x"] + dp_box["width"] / 2,
dp_box["y"] - 20,
)
await human_delay(150, 350)
# Localiza todas as células do mês atual (sem .old e sem .new)
# prev_month = dp.locator(".icon-arrow-left")
# await mouse.click_element(prev_month)
# await human_delay(250, 550)
cells = dp.locator("td.day:not(.old):not(.new)")
count = await cells.count()
for i in range(count):
cell = cells.nth(i)
if (await cell.inner_text()).strip() == str(target.day):
await mouse.click_element(cell)
logger.info(f"📅 Data selecionada: {target.strftime('%d/%m/%Y')}")
return
raise RuntimeError(
f"Dia {target.day} não encontrado no datepicker "
f"({target.month:02d}/{target.year})."
)
# ---------- AÇÕES INTERNAS ----------
async def _add_product(self, code: str, qty: int) -> bool:
page = self.page
mouse = self.mouse
try:
# Abrir dropdown
select_btn = page.get_by_role("link", name="* Selecione * ")
await mouse.click_element(select_btn)
await human_delay(400, 700)
# Buscar produto
search = page.get_by_label("", exact=True)
await mouse.click_element(search)
await human_delay(150, 300)
await mouse.human_type(search, code, clear_first=False)
await asyncio.sleep(random.uniform(0.3, 0.6))
await page.keyboard.press("Enter")
await human_delay(1200, 2000)
# Selecionar produto
selected = await self._select_exact_product(code)
if not selected:
logger.warning(f" ❌ Produto '{code}' não encontrado no catálogo.")
await page.keyboard.press("Escape")
await human_delay(300, 600)
return False
await human_delay(400, 700)
# Quantidade
qty_field = page.locator("#f_quantidade")
await mouse.click_element(qty_field)
await mouse.human_type(qty_field, str(qty))
# Inserir
inserir_btn = page.locator("#btn-inserir-produto")
await mouse.click_element(inserir_btn)
await human_delay(1000, 1800)
logger.info(f" ✅ {code} x{qty} inserido.")
return True
except Exception as e:
logger.error(f" ❌ Erro ao inserir '{code}': {e}")
try:
await page.keyboard.press("Escape")
except Exception:
pass
return False
async def _select_exact_product(self, code: str) -> bool:
page = self.page
mouse = self.mouse
code_upper = code.strip().upper()
# Estratégia 1: texto exato
try:
exact = page.locator("#select2-drop").get_by_text(code, exact=True)
logger.info(f" Buscando {code_upper} no catalogo.")
if await exact.count() > 0 and await exact.first.is_visible(timeout=2000):
logger.info(f" ✅ {code_upper} encontrado.")
await mouse.click_element(exact.first)
return True
except Exception:
pass
# Estratégia 2: texto que começa com o código
try:
results = page.locator("#select2-drop .select2-results li")
count = await results.count()
for i in range(count):
item = results.nth(i)
text = (await item.inner_text()).strip().upper()
if text.startswith(code_upper + " ") or text == code_upper:
await mouse.click_element(item)
return True
except Exception:
pass
# Estratégia 3: role option
try:
options = page.get_by_role("option")
count = await options.count()
for i in range(count):
opt = options.nth(i)
text = (await opt.inner_text()).strip().upper()
if text.startswith(code_upper):
await mouse.click_element(opt)
return True
except Exception:
pass
return False
async def _cancel_saida(self):
cancel = self.page.locator(
'button.btn.btn-link').get_by_text("Cancelar", exact=True)
mouse = self.mouse
cancel_box = await cancel.bounding_box()
if cancel_box:
await mouse.move_to(
cancel_box["x"] + cancel_box["width"] / 2,
cancel_box["y"] - 20,
)
await human_delay(150, 350)
await self.mouse.click_element(cancel)
await human_delay(1000, 2000)
logger.info("🚫 SAÍDA cancelada.")
async def _fill_payment_value(self, meio_pag: str):
page = self.page
mouse = self.mouse
try:
valor_produtos = await page.locator("#f_valorproduto").input_value()
valor_atual = await page.locator("#f_valoratual").input_value()
except Exception:
valor_produtos = "0,00"
if not valor_produtos or valor_produtos.strip() == "":
valor_produtos = "0,00"
# Pausa humana antes de preencher pagamento
await human_delay(400, 900)
if meio_pag == "DINHEIRO":
field = page.locator("#f_valorcaixa")
await mouse.click_element(field)
await mouse.human_type(field, valor_atual)
logger.info(f"💰 Valor Produtos: {valor_produtos}")
logger.info(f"💰 Dinheiro no Caixa: {valor_atual}")
elif meio_pag == "PIX":
field = page.locator("#f_valorcaixa") #f_valorQrcodePix
await mouse.click_element(field)
await mouse.human_type(field, valor_atual)
logger.info(f"💰 Valor Produtos: {valor_produtos}")
logger.info(f"💰 PIX/QRCode lançado como DINHEIRO: {valor_atual}")
else:
field = page.locator("#f_valorcaixa")
await mouse.click_element(field)
await mouse.human_type(field, valor_atual)
logger.info(f"💰 Valor Produtos: {valor_produtos}")
logger.info(f"💰 Fallback dinheiro: {valor_produtos}")
async def _confirm(self):
page = self.page
mouse = self.mouse
await human_delay(500, 1000)
confirmar = page.get_by_role("button", name=" Confirmar")
await mouse.click_element(confirmar)
await human_delay(1200, 2200)
ok_btn = page.get_by_role("button", name="Ok")
await ok_btn.wait_for(state="visible", timeout=10_000)
await mouse.click_element(ok_btn)
await human_delay(1000, 2000)
# ==============================================================================
# APLICAÇÃO
# ==============================================================================
class Application:
def __init__(self):
Config.load()
async def run(self):
now = datetime.now()
month, year = now.month, now.year
logger.info(f"\n{'='*60}")
logger.info(f"🚀 FUNDO BÍBLICO RPA")
logger.info(f"📅 Mês: {month:02d}/{year}")
logger.info(f"{'='*60}\n")
sheets = GoogleSheetsService(Config.GOOGLE_CREDENTIALS_FILE, Config.SPREADSHEET_ID)
vendas = sheets.read_vendas(month, year)
launched_ids = sheets.read_lancamentos()
groups = group_sales(vendas, launched_ids)
if not groups:
return
siga = SigaAutomation()
try:
await siga.launch()
await siga.navigate_and_wait_auth()
await siga.navigate_to_fundo_biblico()
await siga.validate_and_enter_month()
total_ok: List[int] = []
total_fail: List[int] = []
for i, group in enumerate(groups, 1):
logger.info(f"\n🔄 Grupo {i}/{len(groups)}")
ids_ok = await siga.process_group(group)
if ids_ok:
total_ok.extend(ids_ok)
sheets.mark_as_launched(ids_ok)
else:
total_fail.extend(group.all_ids)
logger.info(f"\n{'='*60}")
logger.info(f"📊 RESUMO FINAL")
logger.info(f" ✅ Lançados: {len(total_ok)} vendas")
logger.info(f" ❌ Falhas: {len(total_fail)} vendas")
if total_fail:
logger.info(f" IDs falhos: {total_fail}")
logger.info(f"{'='*60}")
except Exception as e:
logger.critical(f"💥 Erro crítico: {e}")
raise
finally:
await siga.close()
# ==============================================================================
# MAIN
# ==============================================================================
if __name__ == "__main__":
asyncio.run(Application().run())

48
open_browser.py Normal file
View File

@@ -0,0 +1,48 @@
import asyncio
import os
from playwright.async_api import async_playwright
async def main():
playwright = await async_playwright().start()
project_root = os.path.dirname(os.path.abspath(__file__))
user_data_dir = os.path.join(project_root, "perfil_chromium")
print(f"\n============================================================")
print(f"INICIANDO CHROMIUM COM PERFIL PERSISTENTE")
print(f"Perfil: {user_data_dir}")
print(f"============================================================\n")
print("-> O navegador foi aberto na pagina do SIGA.")
print("-> Voce pode fazer login, resolver o reCAPTCHA ou salvar sessoes a vontade.")
print("-> Para fechar, basta fechar a janela do navegador ou pressionar Ctrl+C aqui no terminal.\n")
context = await playwright.chromium.launch_persistent_context(
user_data_dir=user_data_dir,
headless=False,
user_agent=(
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
"AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/124.0.0.0 Safari/537.36"
),
args=["--disable-blink-features=AutomationControlled"],
ignore_default_args=["--enable-automation"],
viewport={"width": 1366, "height": 768},
locale="pt-BR",
timezone_id="America/Cuiaba",
)
page = context.pages[0] if context.pages else await context.new_page()
await page.goto("https://siga.congregacao.org.br/index.aspx")
# Mantem o script rodando enquanto o navegador estiver aberto
try:
while len(context.pages) > 0:
await asyncio.sleep(1)
except (KeyboardInterrupt, asyncio.CancelledError):
pass
finally:
await context.close()
await playwright.stop()
print("\n[INFO] Navegador fechado e recursos liberados.")
if __name__ == "__main__":
asyncio.run(main())

View File

@@ -7,4 +7,6 @@ requires-python = ">=3.12"
dependencies = [ dependencies = [
"playwright>=1.58.0", "playwright>=1.58.0",
"python-dotenv>=1.2.2", "python-dotenv>=1.2.2",
"gspread>=6.0.0",
"google-auth>=2.0.0",
] ]

View File

@@ -1,27 +0,0 @@
import openpyxl
# Read Vendas
wb = openpyxl.load_workbook('FundoBiblicoVendasv2.xlsx')
ws = wb.active
print("=" * 80)
print(f"VENDAS - Sheet: {ws.title} | Rows: {ws.max_row} | Cols: {ws.max_column}")
print("=" * 80)
headers = [cell.value for cell in ws[1]]
print(f"Headers: {headers}")
print("-" * 80)
for row in ws.iter_rows(min_row=2, max_row=ws.max_row, values_only=True):
print(list(row))
print("\n\n")
# Read Lancamentos
wb2 = openpyxl.load_workbook('FundoBiblicoLancamentos.xlsx')
ws2 = wb2.active
print("=" * 80)
print(f"LANCAMENTOS - Sheet: {ws2.title} | Rows: {ws2.max_row} | Cols: {ws2.max_column}")
print("=" * 80)
headers2 = [cell.value for cell in ws2[1]]
print(f"Headers: {headers2}")
print("-" * 80)
for row in ws2.iter_rows(min_row=2, max_row=ws2.max_row, values_only=True):
print(list(row))

20
test.html Normal file
View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/css/bootstrap-datepicker.min.css">
</head>
<body>
<input type="text" class="datepicker1" id="dp1">
<input type="text" class="datepicker2" id="dp2">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js"></script>
<script>
$('.datepicker1').datepicker();
$('.datepicker2').datepicker();
// open the first one
$('.datepicker1').datepicker('show');
</script>
</body>
</html>

19
test2.html Normal file
View File

@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/css/bootstrap-datepicker.min.css">
</head>
<body>
<input type="text" class="datepicker1">
<input type="text" class="datepicker2">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js"></script>
<script>
$('.datepicker1').datepicker();
$('.datepicker2').datepicker();
$('.datepicker2').datepicker('show'); // show the second one
</script>
</body>
</html>

59
test_datepicker.py Normal file
View File

@@ -0,0 +1,59 @@
import asyncio
from playwright.async_api import async_playwright
import os
html_content = """
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/css/bootstrap-datepicker.min.css">
</head>
<body>
<input type="text" class="datepicker1" id="dp1">
<input type="text" class="datepicker2" id="dp2">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js"></script>
<script>
$('.datepicker1').datepicker();
$('.datepicker2').datepicker();
// open the first one
$('.datepicker1').datepicker('show');
</script>
</body>
</html>
"""
async def test_date():
with open("test.html", "w") as f:
f.write(html_content)
async with async_playwright() as p:
browser = await p.chromium.launch(headless=True)
page = await browser.new_page()
await page.goto(f"file://{os.path.abspath('test.html')}")
day = 15
# Original logic
try:
dp = page.locator(".datepicker-days")
await dp.wait_for(state="visible", timeout=5000)
cells = dp.locator("td.day:not(.old):not(.new)")
count = await cells.count()
print(f"Total cells found: {count}")
for i in range(count):
text = (await cells.nth(i).inner_text()).strip()
if text == str(day):
print(f"Trying to click cell {i} with text {text}")
await cells.nth(i).click(timeout=1000)
print(f"📅 Dia {day} selecionado.")
return
except Exception as e:
print(f"ERROR: {type(e).__name__}: {str(e)}")
await browser.close()
if __name__ == "__main__":
asyncio.run(test_date())

44
test_datepicker2.py Normal file
View File

@@ -0,0 +1,44 @@
import asyncio
from playwright.async_api import async_playwright
import os
html_content = '''
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/css/bootstrap-datepicker.min.css">
</head>
<body>
<input type="text" class="datepicker1">
<input type="text" class="datepicker2">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js"></script>
<script>
$('.datepicker1').datepicker();
$('.datepicker2').datepicker();
$('.datepicker2').datepicker('show'); // show the second one
</script>
</body>
</html>
'''
async def main():
with open('test2.html', 'w') as f:
f.write(html_content)
async with async_playwright() as p:
browser = await p.chromium.launch()
page = await browser.new_page()
await page.goto(f"file://{os.path.abspath('test2.html')}")
try:
dp = page.locator('.datepicker-days')
await dp.wait_for(state='visible', timeout=3000)
print('WAIT FOR COM SUCESSO')
except Exception as e:
print(f'ERRO ESPERADO: {type(e).__name__} - {str(e)}')
await browser.close()
if __name__ == '__main__':
asyncio.run(main())

320
uv.lock generated
View File

@@ -1,21 +1,243 @@
version = 1 version = 1
requires-python = ">=3.12" requires-python = ">=3.12"
[[package]]
name = "certifi"
version = "2026.2.25"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/af/2d/7bf41579a8986e348fa033a31cdd0e4121114f6bce2457e8876010b092dd/certifi-2026.2.25.tar.gz", hash = "sha256:e887ab5cee78ea814d3472169153c2d12cd43b14bd03329a39a9c6e2e80bfba7", size = 155029 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/9a/3c/c17fb3ca2d9c3acff52e30b309f538586f9f5b9c9cf454f3845fc9af4881/certifi-2026.2.25-py3-none-any.whl", hash = "sha256:027692e4402ad994f1c42e52a4997a9763c646b73e4096e4d5d6db8af1d6f0fa", size = 153684 },
]
[[package]]
name = "cffi"
version = "2.0.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "pycparser", marker = "implementation_name != 'PyPy'" },
]
sdist = { url = "https://files.pythonhosted.org/packages/eb/56/b1ba7935a17738ae8453301356628e8147c79dbb825bcbc73dc7401f9846/cffi-2.0.0.tar.gz", hash = "sha256:44d1b5909021139fe36001ae048dbdde8214afa20200eda0f64c068cac5d5529", size = 523588 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/ea/47/4f61023ea636104d4f16ab488e268b93008c3d0bb76893b1b31db1f96802/cffi-2.0.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:6d02d6655b0e54f54c4ef0b94eb6be0607b70853c45ce98bd278dc7de718be5d", size = 185271 },
{ url = "https://files.pythonhosted.org/packages/df/a2/781b623f57358e360d62cdd7a8c681f074a71d445418a776eef0aadb4ab4/cffi-2.0.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8eca2a813c1cb7ad4fb74d368c2ffbbb4789d377ee5bb8df98373c2cc0dee76c", size = 181048 },
{ url = "https://files.pythonhosted.org/packages/ff/df/a4f0fbd47331ceeba3d37c2e51e9dfc9722498becbeec2bd8bc856c9538a/cffi-2.0.0-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:21d1152871b019407d8ac3985f6775c079416c282e431a4da6afe7aefd2bccbe", size = 212529 },
{ url = "https://files.pythonhosted.org/packages/d5/72/12b5f8d3865bf0f87cf1404d8c374e7487dcf097a1c91c436e72e6badd83/cffi-2.0.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:b21e08af67b8a103c71a250401c78d5e0893beff75e28c53c98f4de42f774062", size = 220097 },
{ url = "https://files.pythonhosted.org/packages/c2/95/7a135d52a50dfa7c882ab0ac17e8dc11cec9d55d2c18dda414c051c5e69e/cffi-2.0.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:1e3a615586f05fc4065a8b22b8152f0c1b00cdbc60596d187c2a74f9e3036e4e", size = 207983 },
{ url = "https://files.pythonhosted.org/packages/3a/c8/15cb9ada8895957ea171c62dc78ff3e99159ee7adb13c0123c001a2546c1/cffi-2.0.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:81afed14892743bbe14dacb9e36d9e0e504cd204e0b165062c488942b9718037", size = 206519 },
{ url = "https://files.pythonhosted.org/packages/78/2d/7fa73dfa841b5ac06c7b8855cfc18622132e365f5b81d02230333ff26e9e/cffi-2.0.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:3e17ed538242334bf70832644a32a7aae3d83b57567f9fd60a26257e992b79ba", size = 219572 },
{ url = "https://files.pythonhosted.org/packages/07/e0/267e57e387b4ca276b90f0434ff88b2c2241ad72b16d31836adddfd6031b/cffi-2.0.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3925dd22fa2b7699ed2617149842d2e6adde22b262fcbfada50e3d195e4b3a94", size = 222963 },
{ url = "https://files.pythonhosted.org/packages/b6/75/1f2747525e06f53efbd878f4d03bac5b859cbc11c633d0fb81432d98a795/cffi-2.0.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:2c8f814d84194c9ea681642fd164267891702542f028a15fc97d4674b6206187", size = 221361 },
{ url = "https://files.pythonhosted.org/packages/7b/2b/2b6435f76bfeb6bbf055596976da087377ede68df465419d192acf00c437/cffi-2.0.0-cp312-cp312-win32.whl", hash = "sha256:da902562c3e9c550df360bfa53c035b2f241fed6d9aef119048073680ace4a18", size = 172932 },
{ url = "https://files.pythonhosted.org/packages/f8/ed/13bd4418627013bec4ed6e54283b1959cf6db888048c7cf4b4c3b5b36002/cffi-2.0.0-cp312-cp312-win_amd64.whl", hash = "sha256:da68248800ad6320861f129cd9c1bf96ca849a2771a59e0344e88681905916f5", size = 183557 },
{ url = "https://files.pythonhosted.org/packages/95/31/9f7f93ad2f8eff1dbc1c3656d7ca5bfd8fb52c9d786b4dcf19b2d02217fa/cffi-2.0.0-cp312-cp312-win_arm64.whl", hash = "sha256:4671d9dd5ec934cb9a73e7ee9676f9362aba54f7f34910956b84d727b0d73fb6", size = 177762 },
{ url = "https://files.pythonhosted.org/packages/4b/8d/a0a47a0c9e413a658623d014e91e74a50cdd2c423f7ccfd44086ef767f90/cffi-2.0.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:00bdf7acc5f795150faa6957054fbbca2439db2f775ce831222b66f192f03beb", size = 185230 },
{ url = "https://files.pythonhosted.org/packages/4a/d2/a6c0296814556c68ee32009d9c2ad4f85f2707cdecfd7727951ec228005d/cffi-2.0.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:45d5e886156860dc35862657e1494b9bae8dfa63bf56796f2fb56e1679fc0bca", size = 181043 },
{ url = "https://files.pythonhosted.org/packages/b0/1e/d22cc63332bd59b06481ceaac49d6c507598642e2230f201649058a7e704/cffi-2.0.0-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:07b271772c100085dd28b74fa0cd81c8fb1a3ba18b21e03d7c27f3436a10606b", size = 212446 },
{ url = "https://files.pythonhosted.org/packages/a9/f5/a2c23eb03b61a0b8747f211eb716446c826ad66818ddc7810cc2cc19b3f2/cffi-2.0.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d48a880098c96020b02d5a1f7d9251308510ce8858940e6fa99ece33f610838b", size = 220101 },
{ url = "https://files.pythonhosted.org/packages/f2/7f/e6647792fc5850d634695bc0e6ab4111ae88e89981d35ac269956605feba/cffi-2.0.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:f93fd8e5c8c0a4aa1f424d6173f14a892044054871c771f8566e4008eaa359d2", size = 207948 },
{ url = "https://files.pythonhosted.org/packages/cb/1e/a5a1bd6f1fb30f22573f76533de12a00bf274abcdc55c8edab639078abb6/cffi-2.0.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:dd4f05f54a52fb558f1ba9f528228066954fee3ebe629fc1660d874d040ae5a3", size = 206422 },
{ url = "https://files.pythonhosted.org/packages/98/df/0a1755e750013a2081e863e7cd37e0cdd02664372c754e5560099eb7aa44/cffi-2.0.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c8d3b5532fc71b7a77c09192b4a5a200ea992702734a2e9279a37f2478236f26", size = 219499 },
{ url = "https://files.pythonhosted.org/packages/50/e1/a969e687fcf9ea58e6e2a928ad5e2dd88cc12f6f0ab477e9971f2309b57c/cffi-2.0.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:d9b29c1f0ae438d5ee9acb31cadee00a58c46cc9c0b2f9038c6b0b3470877a8c", size = 222928 },
{ url = "https://files.pythonhosted.org/packages/36/54/0362578dd2c9e557a28ac77698ed67323ed5b9775ca9d3fe73fe191bb5d8/cffi-2.0.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6d50360be4546678fc1b79ffe7a66265e28667840010348dd69a314145807a1b", size = 221302 },
{ url = "https://files.pythonhosted.org/packages/eb/6d/bf9bda840d5f1dfdbf0feca87fbdb64a918a69bca42cfa0ba7b137c48cb8/cffi-2.0.0-cp313-cp313-win32.whl", hash = "sha256:74a03b9698e198d47562765773b4a8309919089150a0bb17d829ad7b44b60d27", size = 172909 },
{ url = "https://files.pythonhosted.org/packages/37/18/6519e1ee6f5a1e579e04b9ddb6f1676c17368a7aba48299c3759bbc3c8b3/cffi-2.0.0-cp313-cp313-win_amd64.whl", hash = "sha256:19f705ada2530c1167abacb171925dd886168931e0a7b78f5bffcae5c6b5be75", size = 183402 },
{ url = "https://files.pythonhosted.org/packages/cb/0e/02ceeec9a7d6ee63bb596121c2c8e9b3a9e150936f4fbef6ca1943e6137c/cffi-2.0.0-cp313-cp313-win_arm64.whl", hash = "sha256:256f80b80ca3853f90c21b23ee78cd008713787b1b1e93eae9f3d6a7134abd91", size = 177780 },
{ url = "https://files.pythonhosted.org/packages/92/c4/3ce07396253a83250ee98564f8d7e9789fab8e58858f35d07a9a2c78de9f/cffi-2.0.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:fc33c5141b55ed366cfaad382df24fe7dcbc686de5be719b207bb248e3053dc5", size = 185320 },
{ url = "https://files.pythonhosted.org/packages/59/dd/27e9fa567a23931c838c6b02d0764611c62290062a6d4e8ff7863daf9730/cffi-2.0.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c654de545946e0db659b3400168c9ad31b5d29593291482c43e3564effbcee13", size = 181487 },
{ url = "https://files.pythonhosted.org/packages/d6/43/0e822876f87ea8a4ef95442c3d766a06a51fc5298823f884ef87aaad168c/cffi-2.0.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:24b6f81f1983e6df8db3adc38562c83f7d4a0c36162885ec7f7b77c7dcbec97b", size = 220049 },
{ url = "https://files.pythonhosted.org/packages/b4/89/76799151d9c2d2d1ead63c2429da9ea9d7aac304603de0c6e8764e6e8e70/cffi-2.0.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:12873ca6cb9b0f0d3a0da705d6086fe911591737a59f28b7936bdfed27c0d47c", size = 207793 },
{ url = "https://files.pythonhosted.org/packages/bb/dd/3465b14bb9e24ee24cb88c9e3730f6de63111fffe513492bf8c808a3547e/cffi-2.0.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:d9b97165e8aed9272a6bb17c01e3cc5871a594a446ebedc996e2397a1c1ea8ef", size = 206300 },
{ url = "https://files.pythonhosted.org/packages/47/d9/d83e293854571c877a92da46fdec39158f8d7e68da75bf73581225d28e90/cffi-2.0.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:afb8db5439b81cf9c9d0c80404b60c3cc9c3add93e114dcae767f1477cb53775", size = 219244 },
{ url = "https://files.pythonhosted.org/packages/2b/0f/1f177e3683aead2bb00f7679a16451d302c436b5cbf2505f0ea8146ef59e/cffi-2.0.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:737fe7d37e1a1bffe70bd5754ea763a62a066dc5913ca57e957824b72a85e205", size = 222828 },
{ url = "https://files.pythonhosted.org/packages/c6/0f/cafacebd4b040e3119dcb32fed8bdef8dfe94da653155f9d0b9dc660166e/cffi-2.0.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:38100abb9d1b1435bc4cc340bb4489635dc2f0da7456590877030c9b3d40b0c1", size = 220926 },
{ url = "https://files.pythonhosted.org/packages/3e/aa/df335faa45b395396fcbc03de2dfcab242cd61a9900e914fe682a59170b1/cffi-2.0.0-cp314-cp314-win32.whl", hash = "sha256:087067fa8953339c723661eda6b54bc98c5625757ea62e95eb4898ad5e776e9f", size = 175328 },
{ url = "https://files.pythonhosted.org/packages/bb/92/882c2d30831744296ce713f0feb4c1cd30f346ef747b530b5318715cc367/cffi-2.0.0-cp314-cp314-win_amd64.whl", hash = "sha256:203a48d1fb583fc7d78a4c6655692963b860a417c0528492a6bc21f1aaefab25", size = 185650 },
{ url = "https://files.pythonhosted.org/packages/9f/2c/98ece204b9d35a7366b5b2c6539c350313ca13932143e79dc133ba757104/cffi-2.0.0-cp314-cp314-win_arm64.whl", hash = "sha256:dbd5c7a25a7cb98f5ca55d258b103a2054f859a46ae11aaf23134f9cc0d356ad", size = 180687 },
{ url = "https://files.pythonhosted.org/packages/3e/61/c768e4d548bfa607abcda77423448df8c471f25dbe64fb2ef6d555eae006/cffi-2.0.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:9a67fc9e8eb39039280526379fb3a70023d77caec1852002b4da7e8b270c4dd9", size = 188773 },
{ url = "https://files.pythonhosted.org/packages/2c/ea/5f76bce7cf6fcd0ab1a1058b5af899bfbef198bea4d5686da88471ea0336/cffi-2.0.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7a66c7204d8869299919db4d5069a82f1561581af12b11b3c9f48c584eb8743d", size = 185013 },
{ url = "https://files.pythonhosted.org/packages/be/b4/c56878d0d1755cf9caa54ba71e5d049479c52f9e4afc230f06822162ab2f/cffi-2.0.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:7cc09976e8b56f8cebd752f7113ad07752461f48a58cbba644139015ac24954c", size = 221593 },
{ url = "https://files.pythonhosted.org/packages/e0/0d/eb704606dfe8033e7128df5e90fee946bbcb64a04fcdaa97321309004000/cffi-2.0.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:92b68146a71df78564e4ef48af17551a5ddd142e5190cdf2c5624d0c3ff5b2e8", size = 209354 },
{ url = "https://files.pythonhosted.org/packages/d8/19/3c435d727b368ca475fb8742ab97c9cb13a0de600ce86f62eab7fa3eea60/cffi-2.0.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:b1e74d11748e7e98e2f426ab176d4ed720a64412b6a15054378afdb71e0f37dc", size = 208480 },
{ url = "https://files.pythonhosted.org/packages/d0/44/681604464ed9541673e486521497406fadcc15b5217c3e326b061696899a/cffi-2.0.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:28a3a209b96630bca57cce802da70c266eb08c6e97e5afd61a75611ee6c64592", size = 221584 },
{ url = "https://files.pythonhosted.org/packages/25/8e/342a504ff018a2825d395d44d63a767dd8ebc927ebda557fecdaca3ac33a/cffi-2.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:7553fb2090d71822f02c629afe6042c299edf91ba1bf94951165613553984512", size = 224443 },
{ url = "https://files.pythonhosted.org/packages/e1/5e/b666bacbbc60fbf415ba9988324a132c9a7a0448a9a8f125074671c0f2c3/cffi-2.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:6c6c373cfc5c83a975506110d17457138c8c63016b563cc9ed6e056a82f13ce4", size = 223437 },
{ url = "https://files.pythonhosted.org/packages/a0/1d/ec1a60bd1a10daa292d3cd6bb0b359a81607154fb8165f3ec95fe003b85c/cffi-2.0.0-cp314-cp314t-win32.whl", hash = "sha256:1fc9ea04857caf665289b7a75923f2c6ed559b8298a1b8c49e59f7dd95c8481e", size = 180487 },
{ url = "https://files.pythonhosted.org/packages/bf/41/4c1168c74fac325c0c8156f04b6749c8b6a8f405bbf91413ba088359f60d/cffi-2.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:d68b6cef7827e8641e8ef16f4494edda8b36104d79773a334beaa1e3521430f6", size = 191726 },
{ url = "https://files.pythonhosted.org/packages/ae/3a/dbeec9d1ee0844c679f6bb5d6ad4e9f198b1224f4e7a32825f47f6192b0c/cffi-2.0.0-cp314-cp314t-win_arm64.whl", hash = "sha256:0a1527a803f0a659de1af2e1fd700213caba79377e27e4693648c2923da066f9", size = 184195 },
]
[[package]]
name = "charset-normalizer"
version = "3.4.6"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/7b/60/e3bec1881450851b087e301bedc3daa9377a4d45f1c26aa90b0b235e38aa/charset_normalizer-3.4.6.tar.gz", hash = "sha256:1ae6b62897110aa7c79ea2f5dd38d1abca6db663687c0b1ad9aed6f6bae3d9d6", size = 143363 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/e5/62/c0815c992c9545347aeea7859b50dc9044d147e2e7278329c6e02ac9a616/charset_normalizer-3.4.6-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:2ef7fedc7a6ecbe99969cd09632516738a97eeb8bd7258bf8a0f23114c057dab", size = 295154 },
{ url = "https://files.pythonhosted.org/packages/a8/37/bdca6613c2e3c58c7421891d80cc3efa1d32e882f7c4a7ee6039c3fc951a/charset_normalizer-3.4.6-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a4ea868bc28109052790eb2b52a9ab33f3aa7adc02f96673526ff47419490e21", size = 199191 },
{ url = "https://files.pythonhosted.org/packages/6c/92/9934d1bbd69f7f398b38c5dae1cbf9cc672e7c34a4adf7b17c0a9c17d15d/charset_normalizer-3.4.6-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:836ab36280f21fc1a03c99cd05c6b7af70d2697e374c7af0b61ed271401a72a2", size = 218674 },
{ url = "https://files.pythonhosted.org/packages/af/90/25f6ab406659286be929fd89ab0e78e38aa183fc374e03aa3c12d730af8a/charset_normalizer-3.4.6-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f1ce721c8a7dfec21fcbdfe04e8f68174183cf4e8188e0645e92aa23985c57ff", size = 215259 },
{ url = "https://files.pythonhosted.org/packages/4e/ef/79a463eb0fff7f96afa04c1d4c51f8fc85426f918db467854bfb6a569ce3/charset_normalizer-3.4.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0e28d62a8fc7a1fa411c43bd65e346f3bce9716dc51b897fbe930c5987b402d5", size = 207276 },
{ url = "https://files.pythonhosted.org/packages/f7/72/d0426afec4b71dc159fa6b4e68f868cd5a3ecd918fec5813a15d292a7d10/charset_normalizer-3.4.6-cp312-cp312-manylinux_2_31_armv7l.whl", hash = "sha256:530d548084c4a9f7a16ed4a294d459b4f229db50df689bfe92027452452943a0", size = 195161 },
{ url = "https://files.pythonhosted.org/packages/bf/18/c82b06a68bfcb6ce55e508225d210c7e6a4ea122bfc0748892f3dc4e8e11/charset_normalizer-3.4.6-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:30f445ae60aad5e1f8bdbb3108e39f6fbc09f4ea16c815c66578878325f8f15a", size = 203452 },
{ url = "https://files.pythonhosted.org/packages/44/d6/0c25979b92f8adafdbb946160348d8d44aa60ce99afdc27df524379875cb/charset_normalizer-3.4.6-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:ac2393c73378fea4e52aa56285a3d64be50f1a12395afef9cce47772f60334c2", size = 202272 },
{ url = "https://files.pythonhosted.org/packages/2e/3d/7fea3e8fe84136bebbac715dd1221cc25c173c57a699c030ab9b8900cbb7/charset_normalizer-3.4.6-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:90ca27cd8da8118b18a52d5f547859cc1f8354a00cd1e8e5120df3e30d6279e5", size = 195622 },
{ url = "https://files.pythonhosted.org/packages/57/8a/d6f7fd5cb96c58ef2f681424fbca01264461336d2a7fc875e4446b1f1346/charset_normalizer-3.4.6-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:8e5a94886bedca0f9b78fecd6afb6629142fd2605aa70a125d49f4edc6037ee6", size = 220056 },
{ url = "https://files.pythonhosted.org/packages/16/50/478cdda782c8c9c3fb5da3cc72dd7f331f031e7f1363a893cdd6ca0f8de0/charset_normalizer-3.4.6-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:695f5c2823691a25f17bc5d5ffe79fa90972cc34b002ac6c843bb8a1720e950d", size = 203751 },
{ url = "https://files.pythonhosted.org/packages/75/fc/cc2fcac943939c8e4d8791abfa139f685e5150cae9f94b60f12520feaa9b/charset_normalizer-3.4.6-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:231d4da14bcd9301310faf492051bee27df11f2bc7549bc0bb41fef11b82daa2", size = 216563 },
{ url = "https://files.pythonhosted.org/packages/a8/b7/a4add1d9a5f68f3d037261aecca83abdb0ab15960a3591d340e829b37298/charset_normalizer-3.4.6-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:a056d1ad2633548ca18ffa2f85c202cfb48b68615129143915b8dc72a806a923", size = 209265 },
{ url = "https://files.pythonhosted.org/packages/6c/18/c094561b5d64a24277707698e54b7f67bd17a4f857bbfbb1072bba07c8bf/charset_normalizer-3.4.6-cp312-cp312-win32.whl", hash = "sha256:c2274ca724536f173122f36c98ce188fd24ce3dad886ec2b7af859518ce008a4", size = 144229 },
{ url = "https://files.pythonhosted.org/packages/ab/20/0567efb3a8fd481b8f34f739ebddc098ed062a59fed41a8d193a61939e8f/charset_normalizer-3.4.6-cp312-cp312-win_amd64.whl", hash = "sha256:c8ae56368f8cc97c7e40a7ee18e1cedaf8e780cd8bc5ed5ac8b81f238614facb", size = 154277 },
{ url = "https://files.pythonhosted.org/packages/15/57/28d79b44b51933119e21f65479d0864a8d5893e494cf5daab15df0247c17/charset_normalizer-3.4.6-cp312-cp312-win_arm64.whl", hash = "sha256:899d28f422116b08be5118ef350c292b36fc15ec2daeb9ea987c89281c7bb5c4", size = 142817 },
{ url = "https://files.pythonhosted.org/packages/1e/1d/4fdabeef4e231153b6ed7567602f3b68265ec4e5b76d6024cf647d43d981/charset_normalizer-3.4.6-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:11afb56037cbc4b1555a34dd69151e8e069bee82e613a73bef6e714ce733585f", size = 294823 },
{ url = "https://files.pythonhosted.org/packages/47/7b/20e809b89c69d37be748d98e84dce6820bf663cf19cf6b942c951a3e8f41/charset_normalizer-3.4.6-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:423fb7e748a08f854a08a222b983f4df1912b1daedce51a72bd24fe8f26a1843", size = 198527 },
{ url = "https://files.pythonhosted.org/packages/37/a6/4f8d27527d59c039dce6f7622593cdcd3d70a8504d87d09eb11e9fdc6062/charset_normalizer-3.4.6-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:d73beaac5e90173ac3deb9928a74763a6d230f494e4bfb422c217a0ad8e629bf", size = 218388 },
{ url = "https://files.pythonhosted.org/packages/f6/9b/4770ccb3e491a9bacf1c46cc8b812214fe367c86a96353ccc6daf87b01ec/charset_normalizer-3.4.6-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d60377dce4511655582e300dc1e5a5f24ba0cb229005a1d5c8d0cb72bb758ab8", size = 214563 },
{ url = "https://files.pythonhosted.org/packages/2b/58/a199d245894b12db0b957d627516c78e055adc3a0d978bc7f65ddaf7c399/charset_normalizer-3.4.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:530e8cebeea0d76bdcf93357aa5e41336f48c3dc709ac52da2bb167c5b8271d9", size = 206587 },
{ url = "https://files.pythonhosted.org/packages/7e/70/3def227f1ec56f5c69dfc8392b8bd63b11a18ca8178d9211d7cc5e5e4f27/charset_normalizer-3.4.6-cp313-cp313-manylinux_2_31_armv7l.whl", hash = "sha256:a26611d9987b230566f24a0a125f17fe0de6a6aff9f25c9f564aaa2721a5fb88", size = 194724 },
{ url = "https://files.pythonhosted.org/packages/58/ab/9318352e220c05efd31c2779a23b50969dc94b985a2efa643ed9077bfca5/charset_normalizer-3.4.6-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:34315ff4fc374b285ad7f4a0bf7dcbfe769e1b104230d40f49f700d4ab6bbd84", size = 202956 },
{ url = "https://files.pythonhosted.org/packages/75/13/f3550a3ac25b70f87ac98c40d3199a8503676c2f1620efbf8d42095cfc40/charset_normalizer-3.4.6-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5f8ddd609f9e1af8c7bd6e2aca279c931aefecd148a14402d4e368f3171769fd", size = 201923 },
{ url = "https://files.pythonhosted.org/packages/1b/db/c5c643b912740b45e8eec21de1bbab8e7fc085944d37e1e709d3dcd9d72f/charset_normalizer-3.4.6-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:80d0a5615143c0b3225e5e3ef22c8d5d51f3f72ce0ea6fb84c943546c7b25b6c", size = 195366 },
{ url = "https://files.pythonhosted.org/packages/5a/67/3b1c62744f9b2448443e0eb160d8b001c849ec3fef591e012eda6484787c/charset_normalizer-3.4.6-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:92734d4d8d187a354a556626c221cd1a892a4e0802ccb2af432a1d85ec012194", size = 219752 },
{ url = "https://files.pythonhosted.org/packages/f6/98/32ffbaf7f0366ffb0445930b87d103f6b406bc2c271563644bde8a2b1093/charset_normalizer-3.4.6-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:613f19aa6e082cf96e17e3ffd89383343d0d589abda756b7764cf78361fd41dc", size = 203296 },
{ url = "https://files.pythonhosted.org/packages/41/12/5d308c1bbe60cabb0c5ef511574a647067e2a1f631bc8634fcafaccd8293/charset_normalizer-3.4.6-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:2b1a63e8224e401cafe7739f77efd3f9e7f5f2026bda4aead8e59afab537784f", size = 215956 },
{ url = "https://files.pythonhosted.org/packages/53/e9/5f85f6c5e20669dbe56b165c67b0260547dea97dba7e187938833d791687/charset_normalizer-3.4.6-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6cceb5473417d28edd20c6c984ab6fee6c6267d38d906823ebfe20b03d607dc2", size = 208652 },
{ url = "https://files.pythonhosted.org/packages/f1/11/897052ea6af56df3eef3ca94edafee410ca699ca0c7b87960ad19932c55e/charset_normalizer-3.4.6-cp313-cp313-win32.whl", hash = "sha256:d7de2637729c67d67cf87614b566626057e95c303bc0a55ffe391f5205e7003d", size = 143940 },
{ url = "https://files.pythonhosted.org/packages/a1/5c/724b6b363603e419829f561c854b87ed7c7e31231a7908708ac086cdf3e2/charset_normalizer-3.4.6-cp313-cp313-win_amd64.whl", hash = "sha256:572d7c822caf521f0525ba1bce1a622a0b85cf47ffbdae6c9c19e3b5ac3c4389", size = 154101 },
{ url = "https://files.pythonhosted.org/packages/01/a5/7abf15b4c0968e47020f9ca0935fb3274deb87cb288cd187cad92e8cdffd/charset_normalizer-3.4.6-cp313-cp313-win_arm64.whl", hash = "sha256:a4474d924a47185a06411e0064b803c68be044be2d60e50e8bddcc2649957c1f", size = 143109 },
{ url = "https://files.pythonhosted.org/packages/25/6f/ffe1e1259f384594063ea1869bfb6be5cdb8bc81020fc36c3636bc8302a1/charset_normalizer-3.4.6-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:9cc6e6d9e571d2f863fa77700701dae73ed5f78881efc8b3f9a4398772ff53e8", size = 294458 },
{ url = "https://files.pythonhosted.org/packages/56/60/09bb6c13a8c1016c2ed5c6a6488e4ffef506461aa5161662bd7636936fb1/charset_normalizer-3.4.6-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ef5960d965e67165d75b7c7ffc60a83ec5abfc5c11b764ec13ea54fbef8b4421", size = 199277 },
{ url = "https://files.pythonhosted.org/packages/00/50/dcfbb72a5138bbefdc3332e8d81a23494bf67998b4b100703fd15fa52d81/charset_normalizer-3.4.6-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:b3694e3f87f8ac7ce279d4355645b3c878d24d1424581b46282f24b92f5a4ae2", size = 218758 },
{ url = "https://files.pythonhosted.org/packages/03/b3/d79a9a191bb75f5aa81f3aaaa387ef29ce7cb7a9e5074ba8ea095cc073c2/charset_normalizer-3.4.6-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5d11595abf8dd942a77883a39d81433739b287b6aa71620f15164f8096221b30", size = 215299 },
{ url = "https://files.pythonhosted.org/packages/76/7e/bc8911719f7084f72fd545f647601ea3532363927f807d296a8c88a62c0d/charset_normalizer-3.4.6-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7bda6eebafd42133efdca535b04ccb338ab29467b3f7bf79569883676fc628db", size = 206811 },
{ url = "https://files.pythonhosted.org/packages/e2/40/c430b969d41dda0c465aa36cc7c2c068afb67177bef50905ac371b28ccc7/charset_normalizer-3.4.6-cp314-cp314-manylinux_2_31_armv7l.whl", hash = "sha256:bbc8c8650c6e51041ad1be191742b8b421d05bbd3410f43fa2a00c8db87678e8", size = 193706 },
{ url = "https://files.pythonhosted.org/packages/48/15/e35e0590af254f7df984de1323640ef375df5761f615b6225ba8deb9799a/charset_normalizer-3.4.6-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:22c6f0c2fbc31e76c3b8a86fba1a56eda6166e238c29cdd3d14befdb4a4e4815", size = 202706 },
{ url = "https://files.pythonhosted.org/packages/5e/bd/f736f7b9cc5e93a18b794a50346bb16fbfd6b37f99e8f306f7951d27c17c/charset_normalizer-3.4.6-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7edbed096e4a4798710ed6bc75dcaa2a21b68b6c356553ac4823c3658d53743a", size = 202497 },
{ url = "https://files.pythonhosted.org/packages/9d/ba/2cc9e3e7dfdf7760a6ed8da7446d22536f3d0ce114ac63dee2a5a3599e62/charset_normalizer-3.4.6-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:7f9019c9cb613f084481bd6a100b12e1547cf2efe362d873c2e31e4035a6fa43", size = 193511 },
{ url = "https://files.pythonhosted.org/packages/9e/cb/5be49b5f776e5613be07298c80e1b02a2d900f7a7de807230595c85a8b2e/charset_normalizer-3.4.6-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:58c948d0d086229efc484fe2f30c2d382c86720f55cd9bc33591774348ad44e0", size = 220133 },
{ url = "https://files.pythonhosted.org/packages/83/43/99f1b5dad345accb322c80c7821071554f791a95ee50c1c90041c157ae99/charset_normalizer-3.4.6-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:419a9d91bd238052642a51938af8ac05da5b3343becde08d5cdeab9046df9ee1", size = 203035 },
{ url = "https://files.pythonhosted.org/packages/87/9a/62c2cb6a531483b55dddff1a68b3d891a8b498f3ca555fbcf2978e804d9d/charset_normalizer-3.4.6-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:5273b9f0b5835ff0350c0828faea623c68bfa65b792720c453e22b25cc72930f", size = 216321 },
{ url = "https://files.pythonhosted.org/packages/6e/79/94a010ff81e3aec7c293eb82c28f930918e517bc144c9906a060844462eb/charset_normalizer-3.4.6-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:0e901eb1049fdb80f5bd11ed5ea1e498ec423102f7a9b9e4645d5b8204ff2815", size = 208973 },
{ url = "https://files.pythonhosted.org/packages/2a/57/4ecff6d4ec8585342f0c71bc03efaa99cb7468f7c91a57b105bcd561cea8/charset_normalizer-3.4.6-cp314-cp314-win32.whl", hash = "sha256:b4ff1d35e8c5bd078be89349b6f3a845128e685e751b6ea1169cf2160b344c4d", size = 144610 },
{ url = "https://files.pythonhosted.org/packages/80/94/8434a02d9d7f168c25767c64671fead8d599744a05d6a6c877144c754246/charset_normalizer-3.4.6-cp314-cp314-win_amd64.whl", hash = "sha256:74119174722c4349af9708993118581686f343adc1c8c9c007d59be90d077f3f", size = 154962 },
{ url = "https://files.pythonhosted.org/packages/46/4c/48f2cdbfd923026503dfd67ccea45c94fd8fe988d9056b468579c66ed62b/charset_normalizer-3.4.6-cp314-cp314-win_arm64.whl", hash = "sha256:e5bcc1a1ae744e0bb59641171ae53743760130600da8db48cbb6e4918e186e4e", size = 143595 },
{ url = "https://files.pythonhosted.org/packages/31/93/8878be7569f87b14f1d52032946131bcb6ebbd8af3e20446bc04053dc3f1/charset_normalizer-3.4.6-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:ad8faf8df23f0378c6d527d8b0b15ea4a2e23c89376877c598c4870d1b2c7866", size = 314828 },
{ url = "https://files.pythonhosted.org/packages/06/b6/fae511ca98aac69ecc35cde828b0a3d146325dd03d99655ad38fc2cc3293/charset_normalizer-3.4.6-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f5ea69428fa1b49573eef0cc44a1d43bebd45ad0c611eb7d7eac760c7ae771bc", size = 208138 },
{ url = "https://files.pythonhosted.org/packages/54/57/64caf6e1bf07274a1e0b7c160a55ee9e8c9ec32c46846ce59b9c333f7008/charset_normalizer-3.4.6-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:06a7e86163334edfc5d20fe104db92fcd666e5a5df0977cb5680a506fe26cc8e", size = 224679 },
{ url = "https://files.pythonhosted.org/packages/aa/cb/9ff5a25b9273ef160861b41f6937f86fae18b0792fe0a8e75e06acb08f1d/charset_normalizer-3.4.6-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:e1f6e2f00a6b8edb562826e4632e26d063ac10307e80f7461f7de3ad8ef3f077", size = 223475 },
{ url = "https://files.pythonhosted.org/packages/fc/97/440635fc093b8d7347502a377031f9605a1039c958f3cd18dcacffb37743/charset_normalizer-3.4.6-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:95b52c68d64c1878818687a473a10547b3292e82b6f6fe483808fb1468e2f52f", size = 215230 },
{ url = "https://files.pythonhosted.org/packages/cd/24/afff630feb571a13f07c8539fbb502d2ab494019492aaffc78ef41f1d1d0/charset_normalizer-3.4.6-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:7504e9b7dc05f99a9bbb4525c67a2c155073b44d720470a148b34166a69c054e", size = 199045 },
{ url = "https://files.pythonhosted.org/packages/e5/17/d1399ecdaf7e0498c327433e7eefdd862b41236a7e484355b8e0e5ebd64b/charset_normalizer-3.4.6-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:172985e4ff804a7ad08eebec0a1640ece87ba5041d565fff23c8f99c1f389484", size = 211658 },
{ url = "https://files.pythonhosted.org/packages/b5/38/16baa0affb957b3d880e5ac2144caf3f9d7de7bc4a91842e447fbb5e8b67/charset_normalizer-3.4.6-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:4be9f4830ba8741527693848403e2c457c16e499100963ec711b1c6f2049b7c7", size = 210769 },
{ url = "https://files.pythonhosted.org/packages/05/34/c531bc6ac4c21da9ddfddb3107be2287188b3ea4b53b70fc58f2a77ac8d8/charset_normalizer-3.4.6-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:79090741d842f564b1b2827c0b82d846405b744d31e84f18d7a7b41c20e473ff", size = 201328 },
{ url = "https://files.pythonhosted.org/packages/fa/73/a5a1e9ca5f234519c1953608a03fe109c306b97fdfb25f09182babad51a7/charset_normalizer-3.4.6-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:87725cfb1a4f1f8c2fc9890ae2f42094120f4b44db9360be5d99a4c6b0e03a9e", size = 225302 },
{ url = "https://files.pythonhosted.org/packages/ba/f6/cd782923d112d296294dea4bcc7af5a7ae0f86ab79f8fefbda5526b6cfc0/charset_normalizer-3.4.6-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:fcce033e4021347d80ed9c66dcf1e7b1546319834b74445f561d2e2221de5659", size = 211127 },
{ url = "https://files.pythonhosted.org/packages/0e/c5/0b6898950627af7d6103a449b22320372c24c6feda91aa24e201a478d161/charset_normalizer-3.4.6-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:ca0276464d148c72defa8bb4390cce01b4a0e425f3b50d1435aa6d7a18107602", size = 222840 },
{ url = "https://files.pythonhosted.org/packages/7d/25/c4bba773bef442cbdc06111d40daa3de5050a676fa26e85090fc54dd12f0/charset_normalizer-3.4.6-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:197c1a244a274bb016dd8b79204850144ef77fe81c5b797dc389327adb552407", size = 216890 },
{ url = "https://files.pythonhosted.org/packages/35/1a/05dacadb0978da72ee287b0143097db12f2e7e8d3ffc4647da07a383b0b7/charset_normalizer-3.4.6-cp314-cp314t-win32.whl", hash = "sha256:2a24157fa36980478dd1770b585c0f30d19e18f4fb0c47c13aa568f871718579", size = 155379 },
{ url = "https://files.pythonhosted.org/packages/5d/7a/d269d834cb3a76291651256f3b9a5945e81d0a49ab9f4a498964e83c0416/charset_normalizer-3.4.6-cp314-cp314t-win_amd64.whl", hash = "sha256:cd5e2801c89992ed8c0a3f0293ae83c159a60d9a5d685005383ef4caca77f2c4", size = 169043 },
{ url = "https://files.pythonhosted.org/packages/23/06/28b29fba521a37a8932c6a84192175c34d49f84a6d4773fa63d05f9aff22/charset_normalizer-3.4.6-cp314-cp314t-win_arm64.whl", hash = "sha256:47955475ac79cc504ef2704b192364e51d0d473ad452caedd0002605f780101c", size = 148523 },
{ url = "https://files.pythonhosted.org/packages/2a/68/687187c7e26cb24ccbd88e5069f5ef00eba804d36dde11d99aad0838ab45/charset_normalizer-3.4.6-py3-none-any.whl", hash = "sha256:947cf925bc916d90adba35a64c82aace04fa39b46b52d4630ece166655905a69", size = 61455 },
]
[[package]]
name = "cryptography"
version = "46.0.6"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "cffi", marker = "platform_python_implementation != 'PyPy'" },
]
sdist = { url = "https://files.pythonhosted.org/packages/a4/ba/04b1bd4218cbc58dc90ce967106d51582371b898690f3ae0402876cc4f34/cryptography-46.0.6.tar.gz", hash = "sha256:27550628a518c5c6c903d84f637fbecf287f6cb9ced3804838a1295dc1fd0759", size = 750542 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/47/23/9285e15e3bc57325b0a72e592921983a701efc1ee8f91c06c5f0235d86d9/cryptography-46.0.6-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:64235194bad039a10bb6d2d930ab3323baaec67e2ce36215fd0952fad0930ca8", size = 7176401 },
{ url = "https://files.pythonhosted.org/packages/60/f8/e61f8f13950ab6195b31913b42d39f0f9afc7d93f76710f299b5ec286ae6/cryptography-46.0.6-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:26031f1e5ca62fcb9d1fcb34b2b60b390d1aacaa15dc8b895a9ed00968b97b30", size = 4275275 },
{ url = "https://files.pythonhosted.org/packages/19/69/732a736d12c2631e140be2348b4ad3d226302df63ef64d30dfdb8db7ad1c/cryptography-46.0.6-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:9a693028b9cbe51b5a1136232ee8f2bc242e4e19d456ded3fa7c86e43c713b4a", size = 4425320 },
{ url = "https://files.pythonhosted.org/packages/d4/12/123be7292674abf76b21ac1fc0e1af50661f0e5b8f0ec8285faac18eb99e/cryptography-46.0.6-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:67177e8a9f421aa2d3a170c3e56eca4e0128883cf52a071a7cbf53297f18b175", size = 4278082 },
{ url = "https://files.pythonhosted.org/packages/5b/ba/d5e27f8d68c24951b0a484924a84c7cdaed7502bac9f18601cd357f8b1d2/cryptography-46.0.6-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:d9528b535a6c4f8ff37847144b8986a9a143585f0540fbcb1a98115b543aa463", size = 4926514 },
{ url = "https://files.pythonhosted.org/packages/34/71/1ea5a7352ae516d5512d17babe7e1b87d9db5150b21f794b1377eac1edc0/cryptography-46.0.6-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:22259338084d6ae497a19bae5d4c66b7ca1387d3264d1c2c0e72d9e9b6a77b97", size = 4457766 },
{ url = "https://files.pythonhosted.org/packages/01/59/562be1e653accee4fdad92c7a2e88fced26b3fdfce144047519bbebc299e/cryptography-46.0.6-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:760997a4b950ff00d418398ad73fbc91aa2894b5c1db7ccb45b4f68b42a63b3c", size = 3986535 },
{ url = "https://files.pythonhosted.org/packages/d6/8b/b1ebfeb788bf4624d36e45ed2662b8bd43a05ff62157093c1539c1288a18/cryptography-46.0.6-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:3dfa6567f2e9e4c5dceb8ccb5a708158a2a871052fa75c8b78cb0977063f1507", size = 4277618 },
{ url = "https://files.pythonhosted.org/packages/dd/52/a005f8eabdb28df57c20f84c44d397a755782d6ff6d455f05baa2785bd91/cryptography-46.0.6-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:cdcd3edcbc5d55757e5f5f3d330dd00007ae463a7e7aa5bf132d1f22a4b62b19", size = 4890802 },
{ url = "https://files.pythonhosted.org/packages/ec/4d/8e7d7245c79c617d08724e2efa397737715ca0ec830ecb3c91e547302555/cryptography-46.0.6-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:d4e4aadb7fc1f88687f47ca20bb7227981b03afaae69287029da08096853b738", size = 4457425 },
{ url = "https://files.pythonhosted.org/packages/1d/5c/f6c3596a1430cec6f949085f0e1a970638d76f81c3ea56d93d564d04c340/cryptography-46.0.6-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:2b417edbe8877cda9022dde3a008e2deb50be9c407eef034aeeb3a8b11d9db3c", size = 4405530 },
{ url = "https://files.pythonhosted.org/packages/7e/c9/9f9cea13ee2dbde070424e0c4f621c091a91ffcc504ffea5e74f0e1daeff/cryptography-46.0.6-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:380343e0653b1c9d7e1f55b52aaa2dbb2fdf2730088d48c43ca1c7c0abb7cc2f", size = 4667896 },
{ url = "https://files.pythonhosted.org/packages/ad/b5/1895bc0821226f129bc74d00eccfc6a5969e2028f8617c09790bf89c185e/cryptography-46.0.6-cp311-abi3-win32.whl", hash = "sha256:bcb87663e1f7b075e48c3be3ecb5f0b46c8fc50b50a97cf264e7f60242dca3f2", size = 3026348 },
{ url = "https://files.pythonhosted.org/packages/c3/f8/c9bcbf0d3e6ad288b9d9aa0b1dee04b063d19e8c4f871855a03ab3a297ab/cryptography-46.0.6-cp311-abi3-win_amd64.whl", hash = "sha256:6739d56300662c468fddb0e5e291f9b4d084bead381667b9e654c7dd81705124", size = 3483896 },
{ url = "https://files.pythonhosted.org/packages/01/41/3a578f7fd5c70611c0aacba52cd13cb364a5dee895a5c1d467208a9380b0/cryptography-46.0.6-cp314-cp314t-macosx_10_9_universal2.whl", hash = "sha256:2ef9e69886cbb137c2aef9772c2e7138dc581fad4fcbcf13cc181eb5a3ab6275", size = 7117147 },
{ url = "https://files.pythonhosted.org/packages/fa/87/887f35a6fca9dde90cad08e0de0c89263a8e59b2d2ff904fd9fcd8025b6f/cryptography-46.0.6-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:7f417f034f91dcec1cb6c5c35b07cdbb2ef262557f701b4ecd803ee8cefed4f4", size = 4266221 },
{ url = "https://files.pythonhosted.org/packages/aa/a8/0a90c4f0b0871e0e3d1ed126aed101328a8a57fd9fd17f00fb67e82a51ca/cryptography-46.0.6-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:d24c13369e856b94892a89ddf70b332e0b70ad4a5c43cf3e9cb71d6d7ffa1f7b", size = 4408952 },
{ url = "https://files.pythonhosted.org/packages/16/0b/b239701eb946523e4e9f329336e4ff32b1247e109cbab32d1a7b61da8ed7/cryptography-46.0.6-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:aad75154a7ac9039936d50cf431719a2f8d4ed3d3c277ac03f3339ded1a5e707", size = 4270141 },
{ url = "https://files.pythonhosted.org/packages/0f/a8/976acdd4f0f30df7b25605f4b9d3d89295351665c2091d18224f7ad5cdbf/cryptography-46.0.6-cp314-cp314t-manylinux_2_28_ppc64le.whl", hash = "sha256:3c21d92ed15e9cfc6eb64c1f5a0326db22ca9c2566ca46d845119b45b4400361", size = 4904178 },
{ url = "https://files.pythonhosted.org/packages/b1/1b/bf0e01a88efd0e59679b69f42d4afd5bced8700bb5e80617b2d63a3741af/cryptography-46.0.6-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:4668298aef7cddeaf5c6ecc244c2302a2b8e40f384255505c22875eebb47888b", size = 4441812 },
{ url = "https://files.pythonhosted.org/packages/bb/8b/11df86de2ea389c65aa1806f331cae145f2ed18011f30234cc10ca253de8/cryptography-46.0.6-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:8ce35b77aaf02f3b59c90b2c8a05c73bac12cea5b4e8f3fbece1f5fddea5f0ca", size = 3963923 },
{ url = "https://files.pythonhosted.org/packages/91/e0/207fb177c3a9ef6a8108f234208c3e9e76a6aa8cf20d51932916bd43bda0/cryptography-46.0.6-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:c89eb37fae9216985d8734c1afd172ba4927f5a05cfd9bf0e4863c6d5465b013", size = 4269695 },
{ url = "https://files.pythonhosted.org/packages/21/5e/19f3260ed1e95bced52ace7501fabcd266df67077eeb382b79c81729d2d3/cryptography-46.0.6-cp314-cp314t-manylinux_2_34_ppc64le.whl", hash = "sha256:ed418c37d095aeddf5336898a132fba01091f0ac5844e3e8018506f014b6d2c4", size = 4869785 },
{ url = "https://files.pythonhosted.org/packages/10/38/cd7864d79aa1d92ef6f1a584281433419b955ad5a5ba8d1eb6c872165bcb/cryptography-46.0.6-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:69cf0056d6947edc6e6760e5f17afe4bea06b56a9ac8a06de9d2bd6b532d4f3a", size = 4441404 },
{ url = "https://files.pythonhosted.org/packages/09/0a/4fe7a8d25fed74419f91835cf5829ade6408fd1963c9eae9c4bce390ecbb/cryptography-46.0.6-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:8e7304c4f4e9490e11efe56af6713983460ee0780f16c63f219984dab3af9d2d", size = 4397549 },
{ url = "https://files.pythonhosted.org/packages/5f/a0/7d738944eac6513cd60a8da98b65951f4a3b279b93479a7e8926d9cd730b/cryptography-46.0.6-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:b928a3ca837c77a10e81a814a693f2295200adb3352395fad024559b7be7a736", size = 4651874 },
{ url = "https://files.pythonhosted.org/packages/cb/f1/c2326781ca05208845efca38bf714f76939ae446cd492d7613808badedf1/cryptography-46.0.6-cp314-cp314t-win32.whl", hash = "sha256:97c8115b27e19e592a05c45d0dd89c57f81f841cc9880e353e0d3bf25b2139ed", size = 3001511 },
{ url = "https://files.pythonhosted.org/packages/c9/57/fe4a23eb549ac9d903bd4698ffda13383808ef0876cc912bcb2838799ece/cryptography-46.0.6-cp314-cp314t-win_amd64.whl", hash = "sha256:c797e2517cb7880f8297e2c0f43bb910e91381339336f75d2c1c2cbf811b70b4", size = 3471692 },
{ url = "https://files.pythonhosted.org/packages/c4/cc/f330e982852403da79008552de9906804568ae9230da8432f7496ce02b71/cryptography-46.0.6-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:12cae594e9473bca1a7aceb90536060643128bb274fcea0fc459ab90f7d1ae7a", size = 7162776 },
{ url = "https://files.pythonhosted.org/packages/49/b3/dc27efd8dcc4bff583b3f01d4a3943cd8b5821777a58b3a6a5f054d61b79/cryptography-46.0.6-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:639301950939d844a9e1c4464d7e07f902fe9a7f6b215bb0d4f28584729935d8", size = 4270529 },
{ url = "https://files.pythonhosted.org/packages/e6/05/e8d0e6eb4f0d83365b3cb0e00eb3c484f7348db0266652ccd84632a3d58d/cryptography-46.0.6-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ed3775295fb91f70b4027aeba878d79b3e55c0b3e97eaa4de71f8f23a9f2eb77", size = 4414827 },
{ url = "https://files.pythonhosted.org/packages/2f/97/daba0f5d2dc6d855e2dcb70733c812558a7977a55dd4a6722756628c44d1/cryptography-46.0.6-cp38-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:8927ccfbe967c7df312ade694f987e7e9e22b2425976ddbf28271d7e58845290", size = 4271265 },
{ url = "https://files.pythonhosted.org/packages/89/06/fe1fce39a37ac452e58d04b43b0855261dac320a2ebf8f5260dd55b201a9/cryptography-46.0.6-cp38-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:b12c6b1e1651e42ab5de8b1e00dc3b6354fdfd778e7fa60541ddacc27cd21410", size = 4916800 },
{ url = "https://files.pythonhosted.org/packages/ff/8a/b14f3101fe9c3592603339eb5d94046c3ce5f7fc76d6512a2d40efd9724e/cryptography-46.0.6-cp38-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:063b67749f338ca9c5a0b7fe438a52c25f9526b851e24e6c9310e7195aad3b4d", size = 4448771 },
{ url = "https://files.pythonhosted.org/packages/01/b3/0796998056a66d1973fd52ee89dc1bb3b6581960a91ad4ac705f182d398f/cryptography-46.0.6-cp38-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:02fad249cb0e090b574e30b276a3da6a149e04ee2f049725b1f69e7b8351ec70", size = 3978333 },
{ url = "https://files.pythonhosted.org/packages/c5/3d/db200af5a4ffd08918cd55c08399dc6c9c50b0bc72c00a3246e099d3a849/cryptography-46.0.6-cp38-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:7e6142674f2a9291463e5e150090b95a8519b2fb6e6aaec8917dd8d094ce750d", size = 4271069 },
{ url = "https://files.pythonhosted.org/packages/d7/18/61acfd5b414309d74ee838be321c636fe71815436f53c9f0334bf19064fa/cryptography-46.0.6-cp38-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:456b3215172aeefb9284550b162801d62f5f264a081049a3e94307fe20792cfa", size = 4878358 },
{ url = "https://files.pythonhosted.org/packages/8b/65/5bf43286d566f8171917cae23ac6add941654ccf085d739195a4eacf1674/cryptography-46.0.6-cp38-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:341359d6c9e68834e204ceaf25936dffeafea3829ab80e9503860dcc4f4dac58", size = 4448061 },
{ url = "https://files.pythonhosted.org/packages/e0/25/7e49c0fa7205cf3597e525d156a6bce5b5c9de1fd7e8cb01120e459f205a/cryptography-46.0.6-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:9a9c42a2723999a710445bc0d974e345c32adfd8d2fac6d8a251fa829ad31cfb", size = 4399103 },
{ url = "https://files.pythonhosted.org/packages/44/46/466269e833f1c4718d6cd496ffe20c56c9c8d013486ff66b4f69c302a68d/cryptography-46.0.6-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:6617f67b1606dfd9fe4dbfa354a9508d4a6d37afe30306fe6c101b7ce3274b72", size = 4659255 },
{ url = "https://files.pythonhosted.org/packages/0a/09/ddc5f630cc32287d2c953fc5d32705e63ec73e37308e5120955316f53827/cryptography-46.0.6-cp38-abi3-win32.whl", hash = "sha256:7f6690b6c55e9c5332c0b59b9c8a3fb232ebf059094c17f9019a51e9827df91c", size = 3010660 },
{ url = "https://files.pythonhosted.org/packages/1b/82/ca4893968aeb2709aacfb57a30dec6fa2ab25b10fa9f064b8882ce33f599/cryptography-46.0.6-cp38-abi3-win_amd64.whl", hash = "sha256:79e865c642cfc5c0b3eb12af83c35c5aeff4fa5c672dc28c43721c2c9fdd2f0f", size = 3471160 },
]
[[package]] [[package]]
name = "fundobiblico-rpa" name = "fundobiblico-rpa"
version = "0.1.0" version = "0.1.0"
source = { virtual = "." } source = { virtual = "." }
dependencies = [ dependencies = [
{ name = "google-auth" },
{ name = "gspread" },
{ name = "playwright" }, { name = "playwright" },
{ name = "python-dotenv" }, { name = "python-dotenv" },
] ]
[package.metadata] [package.metadata]
requires-dist = [ requires-dist = [
{ name = "google-auth", specifier = ">=2.0.0" },
{ name = "gspread", specifier = ">=6.0.0" },
{ name = "playwright", specifier = ">=1.58.0" }, { name = "playwright", specifier = ">=1.58.0" },
{ name = "python-dotenv", specifier = ">=1.2.2" }, { name = "python-dotenv", specifier = ">=1.2.2" },
] ]
[[package]]
name = "google-auth"
version = "2.49.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "cryptography" },
{ name = "pyasn1-modules" },
]
sdist = { url = "https://files.pythonhosted.org/packages/ea/80/6a696a07d3d3b0a92488933532f03dbefa4a24ab80fb231395b9a2a1be77/google_auth-2.49.1.tar.gz", hash = "sha256:16d40da1c3c5a0533f57d268fe72e0ebb0ae1cc3b567024122651c045d879b64", size = 333825 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/e9/eb/c6c2478d8a8d633460be40e2a8a6f8f429171997a35a96f81d3b680dec83/google_auth-2.49.1-py3-none-any.whl", hash = "sha256:195ebe3dca18eddd1b3db5edc5189b76c13e96f29e73043b923ebcf3f1a860f7", size = 240737 },
]
[[package]]
name = "google-auth-oauthlib"
version = "1.3.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "google-auth" },
{ name = "requests-oauthlib" },
]
sdist = { url = "https://files.pythonhosted.org/packages/ac/b4/1b19567e4c567b796f5c593d89895f3cfae5a38e04f27c6af87618fd0942/google_auth_oauthlib-1.3.0.tar.gz", hash = "sha256:cd39e807ac7229d6b8b9c1e297321d36fcc8a9e4857dff4301870985df51a528", size = 21777 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/2f/56/909fd5632226d3fba31d7aeffd4754410735d49362f5809956fe3e9af344/google_auth_oauthlib-1.3.0-py3-none-any.whl", hash = "sha256:386b3fb85cf4a5b819c6ad23e3128d975216b4cac76324de1d90b128aaf38f29", size = 19308 },
]
[[package]] [[package]]
name = "greenlet" name = "greenlet"
version = "3.3.2" version = "3.3.2"
@@ -59,6 +281,37 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/29/4b/45d90626aef8e65336bed690106d1382f7a43665e2249017e9527df8823b/greenlet-3.3.2-cp314-cp314t-win_amd64.whl", hash = "sha256:c04c5e06ec3e022cbfe2cd4a846e1d4e50087444f875ff6d2c2ad8445495cf1a", size = 237086 }, { url = "https://files.pythonhosted.org/packages/29/4b/45d90626aef8e65336bed690106d1382f7a43665e2249017e9527df8823b/greenlet-3.3.2-cp314-cp314t-win_amd64.whl", hash = "sha256:c04c5e06ec3e022cbfe2cd4a846e1d4e50087444f875ff6d2c2ad8445495cf1a", size = 237086 },
] ]
[[package]]
name = "gspread"
version = "6.2.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "google-auth" },
{ name = "google-auth-oauthlib" },
]
sdist = { url = "https://files.pythonhosted.org/packages/91/83/42d1d813822ed016d77aabadc99b09de3b5bd68532fd6bae23fd62347c41/gspread-6.2.1.tar.gz", hash = "sha256:2c7c99f7c32ebea6ec0d36f2d5cbe8a2be5e8f2a48bde87ad1ea203eff32bd03", size = 82590 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/27/76/563fb20dedd0e12794d9a12cfe0198458cc0501fdc7b034eee2166d035d5/gspread-6.2.1-py3-none-any.whl", hash = "sha256:6d4ec9f1c23ae3c704a9219026dac01f2b328ac70b96f1495055d453c4c184db", size = 59977 },
]
[[package]]
name = "idna"
version = "3.11"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/6f/6d/0703ccc57f3a7233505399edb88de3cbd678da106337b9fcde432b65ed60/idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902", size = 194582 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea", size = 71008 },
]
[[package]]
name = "oauthlib"
version = "3.3.1"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/0b/5f/19930f824ffeb0ad4372da4812c50edbd1434f678c90c2733e1188edfc63/oauthlib-3.3.1.tar.gz", hash = "sha256:0f0f8aa759826a193cf66c12ea1af1637f87b9b4622d46e866952bb022e538c9", size = 185918 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/be/9c/92789c596b8df838baa98fa71844d84283302f7604ed565dafe5a6b5041a/oauthlib-3.3.1-py3-none-any.whl", hash = "sha256:88119c938d2b8fb88561af5f6ee0eec8cc8d552b7bb1f712743136eb7523b7a1", size = 160065 },
]
[[package]] [[package]]
name = "playwright" name = "playwright"
version = "1.58.0" version = "1.58.0"
@@ -78,6 +331,36 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/c8/c4/cc0229fea55c87d6c9c67fe44a21e2cd28d1d558a5478ed4d617e9fb0c93/playwright-1.58.0-py3-none-win_arm64.whl", hash = "sha256:32ffe5c303901a13a0ecab91d1c3f74baf73b84f4bedbb6b935f5bc11cc98e1b", size = 33085919 }, { url = "https://files.pythonhosted.org/packages/c8/c4/cc0229fea55c87d6c9c67fe44a21e2cd28d1d558a5478ed4d617e9fb0c93/playwright-1.58.0-py3-none-win_arm64.whl", hash = "sha256:32ffe5c303901a13a0ecab91d1c3f74baf73b84f4bedbb6b935f5bc11cc98e1b", size = 33085919 },
] ]
[[package]]
name = "pyasn1"
version = "0.6.3"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/5c/5f/6583902b6f79b399c9c40674ac384fd9cd77805f9e6205075f828ef11fb2/pyasn1-0.6.3.tar.gz", hash = "sha256:697a8ecd6d98891189184ca1fa05d1bb00e2f84b5977c481452050549c8a72cf", size = 148685 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/5d/a0/7d793dce3fa811fe047d6ae2431c672364b462850c6235ae306c0efd025f/pyasn1-0.6.3-py3-none-any.whl", hash = "sha256:a80184d120f0864a52a073acc6fc642847d0be408e7c7252f31390c0f4eadcde", size = 83997 },
]
[[package]]
name = "pyasn1-modules"
version = "0.4.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "pyasn1" },
]
sdist = { url = "https://files.pythonhosted.org/packages/e9/e6/78ebbb10a8c8e4b61a59249394a4a594c1a7af95593dc933a349c8d00964/pyasn1_modules-0.4.2.tar.gz", hash = "sha256:677091de870a80aae844b1ca6134f54652fa2c8c5a52aa396440ac3106e941e6", size = 307892 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/47/8d/d529b5d697919ba8c11ad626e835d4039be708a35b0d22de83a269a6682c/pyasn1_modules-0.4.2-py3-none-any.whl", hash = "sha256:29253a9207ce32b64c3ac6600edc75368f98473906e8fd1043bd6b5b1de2c14a", size = 181259 },
]
[[package]]
name = "pycparser"
version = "3.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/1b/7d/92392ff7815c21062bea51aa7b87d45576f649f16458d78b7cf94b9ab2e6/pycparser-3.0.tar.gz", hash = "sha256:600f49d217304a5902ac3c37e1281c9fe94e4d0489de643a9504c5cdfdfc6b29", size = 103492 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/0c/c3/44f3fbbfa403ea2a7c779186dc20772604442dde72947e7d01069cbe98e3/pycparser-3.0-py3-none-any.whl", hash = "sha256:b727414169a36b7d524c1c3e31839a521725078d7b2ff038656844266160a992", size = 48172 },
]
[[package]] [[package]]
name = "pyee" name = "pyee"
version = "13.0.1" version = "13.0.1"
@@ -99,6 +382,34 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/0b/d7/1959b9648791274998a9c3526f6d0ec8fd2233e4d4acce81bbae76b44b2a/python_dotenv-1.2.2-py3-none-any.whl", hash = "sha256:1d8214789a24de455a8b8bd8ae6fe3c6b69a5e3d64aa8a8e5d68e694bbcb285a", size = 22101 }, { url = "https://files.pythonhosted.org/packages/0b/d7/1959b9648791274998a9c3526f6d0ec8fd2233e4d4acce81bbae76b44b2a/python_dotenv-1.2.2-py3-none-any.whl", hash = "sha256:1d8214789a24de455a8b8bd8ae6fe3c6b69a5e3d64aa8a8e5d68e694bbcb285a", size = 22101 },
] ]
[[package]]
name = "requests"
version = "2.33.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "certifi" },
{ name = "charset-normalizer" },
{ name = "idna" },
{ name = "urllib3" },
]
sdist = { url = "https://files.pythonhosted.org/packages/34/64/8860370b167a9721e8956ae116825caff829224fbca0ca6e7bf8ddef8430/requests-2.33.0.tar.gz", hash = "sha256:c7ebc5e8b0f21837386ad0e1c8fe8b829fa5f544d8df3b2253bff14ef29d7652", size = 134232 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/56/5d/c814546c2333ceea4ba42262d8c4d55763003e767fa169adc693bd524478/requests-2.33.0-py3-none-any.whl", hash = "sha256:3324635456fa185245e24865e810cecec7b4caf933d7eb133dcde67d48cee69b", size = 65017 },
]
[[package]]
name = "requests-oauthlib"
version = "2.0.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "oauthlib" },
{ name = "requests" },
]
sdist = { url = "https://files.pythonhosted.org/packages/42/f2/05f29bc3913aea15eb670be136045bf5c5bbf4b99ecb839da9b422bb2c85/requests-oauthlib-2.0.0.tar.gz", hash = "sha256:b3dffaebd884d8cd778494369603a9e7b58d29111bf6b41bdc2dcd87203af4e9", size = 55650 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/3b/5d/63d4ae3b9daea098d5d6f5da83984853c1bbacd5dc826764b249fe119d24/requests_oauthlib-2.0.0-py2.py3-none-any.whl", hash = "sha256:7dd8a5c40426b779b0868c404bdef9768deccf22749cde15852df527e6269b36", size = 24179 },
]
[[package]] [[package]]
name = "typing-extensions" name = "typing-extensions"
version = "4.15.0" version = "4.15.0"
@@ -107,3 +418,12 @@ sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac8
wheels = [ wheels = [
{ url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614 }, { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614 },
] ]
[[package]]
name = "urllib3"
version = "2.6.3"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/c7/24/5f1b3bdffd70275f6661c76461e25f024d5a38a46f04aaca912426a2b1d3/urllib3-2.6.3.tar.gz", hash = "sha256:1b62b6884944a57dbe321509ab94fd4d3b307075e0c2eae991ac71ee15ad38ed", size = 435556 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/39/08/aaaad47bc4e9dc8c725e68f9d04865dbcb2052843ff09c97b08904852d84/urllib3-2.6.3-py3-none-any.whl", hash = "sha256:bf272323e553dfb2e87d9bfd225ca7b0f467b919d7bbd355436d3fd37cb0acd4", size = 131584 },
]

View File

@@ -1,77 +0,0 @@
================================================================================
VENDAS - Sheet: Vendas | Rows: 56 | Cols: 11
================================================================================
Headers: ['ID', 'DataVenda', 'Item', 'Qtd', 'ValorFinal', 'Obs', 'Lado', 'MeioPag', 'Vendedor', 'modified_at', 'created_at']
--------------------------------------------------------------------------------
[104, datetime.datetime(2026, 1, 4, 0, 0), 'B-21', 1, 40, 'Venda pelo ir Guilherme', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Guilherme', datetime.datetime(2026, 2, 14, 19, 32, 5), datetime.datetime(2026, 2, 14, 19, 32, 5)]
[105, datetime.datetime(2026, 2, 8, 0, 0), 'B-3', 1, 40, 'Venda pela ir Ana', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 2, 14, 21, 6, 3), datetime.datetime(2026, 2, 14, 21, 6, 3)]
[106, datetime.datetime(2026, 2, 8, 0, 0), 'HC-101P', 2, 20, 'Venda pela ir Ana', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 2, 14, 21, 9, 33), datetime.datetime(2026, 2, 14, 21, 9, 33)]
[107, datetime.datetime(2026, 2, 8, 0, 0), 'HM-110', 1, 35, 'Venda pela ir Ana', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 2, 14, 21, 10, 36), datetime.datetime(2026, 2, 14, 21, 10, 36)]
[108, datetime.datetime(2026, 2, 8, 0, 0), 'HC-441', 1, 5, 'Vendedor nÒo informado', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - NÒo informado', datetime.datetime(2026, 2, 14, 21, 11, 55), datetime.datetime(2026, 2, 14, 21, 11, 55)]
[109, datetime.datetime(2026, 2, 8, 0, 0), 'B-6', 1, 25, 'Vendedor nÒo especificado', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - NÒo informado', datetime.datetime(2026, 2, 14, 21, 13, 14), datetime.datetime(2026, 2, 14, 21, 13, 14)]
[110, datetime.datetime(2026, 2, 8, 0, 0), 'MSA', 1, 12, 'Venda pelo ir Conrado', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Conrado', datetime.datetime(2026, 2, 14, 21, 14, 5), datetime.datetime(2026, 2, 14, 21, 14, 5)]
[111, datetime.datetime(2026, 2, 8, 0, 0), 'B-6', 1, 25, 'Venda pela ir Conrado', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Conrado', datetime.datetime(2026, 2, 14, 21, 14, 59), datetime.datetime(2026, 2, 14, 21, 14, 59)]
[112, datetime.datetime(2026, 2, 8, 0, 0), 'HC-441', 1, 5, 'Venda pelo ir Conrado', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Conrado', datetime.datetime(2026, 2, 14, 21, 16, 21), datetime.datetime(2026, 2, 14, 21, 16, 21)]
[113, datetime.datetime(2026, 2, 8, 0, 0), 'MSA', 1, 12, 'Venda pela ir Ana', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 2, 14, 21, 17, 17), datetime.datetime(2026, 2, 14, 21, 17, 17)]
[114, datetime.datetime(2026, 2, 8, 0, 0), 'HM-110', 1, 35, 'Venda pela ir Ana', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 2, 14, 21, 18, 2), datetime.datetime(2026, 2, 14, 21, 18, 2)]
[115, datetime.datetime(2026, 2, 11, 0, 0), 'MSA', 1, 12, 'Venda pela ir Conrado', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Conrado', datetime.datetime(2026, 2, 14, 21, 18, 40), datetime.datetime(2026, 2, 14, 21, 18, 40)]
[116, datetime.datetime(2026, 2, 11, 0, 0), 'BZ-17', 1, 45, 'Venda pela ir Conrado', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Conrado', datetime.datetime(2026, 2, 14, 21, 19, 39), datetime.datetime(2026, 2, 14, 21, 19, 39)]
[117, datetime.datetime(2026, 2, 14, 0, 0), 'MSA', 1, 12, 'Venda pela ir Ana', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 2, 14, 21, 20, 32), datetime.datetime(2026, 2, 14, 21, 20, 32)]
[118, datetime.datetime(2026, 2, 14, 0, 0), 'MSA', 1, 12, 'Venda pela ir Ana', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 2, 14, 21, 21, 23), datetime.datetime(2026, 2, 14, 21, 21, 23)]
[119, datetime.datetime(2026, 3, 1, 0, 0), 'HC-105P', 1, 20, None, 'IrmÒos', 'DINHEIRO', 'cesarjhony@gmail.com - Jhony', datetime.datetime(2026, 3, 1, 18, 50, 42), datetime.datetime(2026, 3, 1, 18, 50, 42)]
[120, datetime.datetime(2026, 3, 1, 0, 0), 'HC-101P', 3, 30, None, 'IrmÒos', 'DINHEIRO', 'cesarjhony@gmail.com - Jhony', datetime.datetime(2026, 3, 1, 18, 51, 14), datetime.datetime(2026, 3, 1, 18, 51, 14)]
[121, datetime.datetime(2026, 3, 1, 0, 0), 'B-14', 1, 50, None, 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Jhony', datetime.datetime(2026, 3, 1, 18, 57, 53), datetime.datetime(2026, 3, 1, 18, 57, 53)]
[122, datetime.datetime(2026, 3, 1, 0, 0), 'HC-205', 1, 30, 'Venda pela Ir Ana', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 3, 1, 18, 58, 40), datetime.datetime(2026, 3, 1, 18, 58, 40)]
[123, datetime.datetime(2026, 3, 1, 0, 0), 'HM-110', 1, 35, 'Venda pela ir Ana', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 3, 1, 18, 59, 23), datetime.datetime(2026, 3, 1, 18, 59, 23)]
[124, datetime.datetime(2026, 3, 1, 0, 0), 'MSA', 1, 12, 'Venda pela ir Ana', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 3, 1, 18, 59, 55), datetime.datetime(2026, 3, 1, 18, 59, 55)]
[125, datetime.datetime(2026, 3, 1, 0, 0), 'HC-101P', 1, 10, 'Venda pelo Conrado', 'IrmÒos', 'DINHEIRO', 'cesarjhony@gmail.com - Conrado', datetime.datetime(2026, 3, 28, 17, 22, 17), datetime.datetime(2026, 3, 28, 17, 22, 17)]
[126, datetime.datetime(2026, 3, 1, 0, 0), 'B-17', 1, 40, 'Venda pelo Conrado', 'IrmÒos', 'DINHEIRO', 'cesarjhony@gmail.com - Conrado', datetime.datetime(2026, 3, 28, 17, 33, 49), datetime.datetime(2026, 3, 28, 17, 33, 49)]
[127, datetime.datetime(2026, 3, 1, 0, 0), 'BZ-17', 1, 45, 'Venda pelo Conrado', 'IrmÒos', 'DINHEIRO', 'cesarjhony@gmail.com - Conrado', datetime.datetime(2026, 3, 28, 17, 34, 17), datetime.datetime(2026, 3, 28, 17, 34, 17)]
[128, datetime.datetime(2026, 3, 18, 0, 0), 'BZ-16', 1, 55, 'Venda pela Ir Ana', 'IrmÒos', 'DINHEIRO', 'cesarjhony@gmail.com - Ir Ana', datetime.datetime(2026, 3, 28, 17, 38, 45), datetime.datetime(2026, 3, 28, 17, 38, 45)]
[129, datetime.datetime(2026, 3, 21, 0, 0), 'HM-113', 1, 35, 'Venda pelo Conrado', 'IrmÒos', 'DINHEIRO', 'cesarjhony@gmail.com - Conrado', datetime.datetime(2026, 3, 28, 17, 40, 36), datetime.datetime(2026, 3, 28, 17, 40, 36)]
[130, datetime.datetime(2026, 3, 7, 0, 0), 'MSA', 1, 12, 'Venda pela Ir Ana', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 3, 28, 17, 43, 28), datetime.datetime(2026, 3, 28, 17, 43, 28)]
[131, datetime.datetime(2026, 3, 7, 0, 0), 'HC-102B', 1, 15, 'Venda pela Ir Nai', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Nai', datetime.datetime(2026, 3, 28, 17, 50, 11), datetime.datetime(2026, 3, 28, 17, 50, 11)]
[132, datetime.datetime(2026, 3, 14, 0, 0), 'HC-103P', 1, 15, 'Venda pelo Conrado', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Conrado', datetime.datetime(2026, 3, 28, 17, 52, 56), datetime.datetime(2026, 3, 28, 17, 52, 56)]
[133, datetime.datetime(2026, 3, 14, 0, 0), 'B-7', 1, 38, 'Venda pelo Conrado', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Conrado', datetime.datetime(2026, 3, 28, 17, 54, 56), datetime.datetime(2026, 3, 28, 17, 54, 56)]
[134, datetime.datetime(2026, 3, 18, 0, 0), 'B-3', 1, 40, 'Venda pela Ir Guilherme', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Guilherme', datetime.datetime(2026, 3, 28, 17, 56, 35), datetime.datetime(2026, 3, 28, 17, 56, 35)]
[135, datetime.datetime(2026, 3, 18, 0, 0), 'HM-113', 1, 35, 'Venda pela Ir Guilherme', 'IrmÒos', 'PIX', 'cesarjhony@gmail.com - Guilherme', datetime.datetime(2026, 3, 28, 17, 57, 32), datetime.datetime(2026, 3, 28, 17, 57, 32)]
[136, datetime.datetime(2026, 3, 7, 0, 0), 'B-7', 1, 38, 'Venda pela Ir Jessica Avance', 'IrmÒs', 'DINHEIRO', 'cesarjhony@gmail.com - Jessica Avance', datetime.datetime(2026, 3, 28, 18, 1, 24), datetime.datetime(2026, 3, 28, 18, 1, 24)]
[137, datetime.datetime(2026, 3, 7, 0, 0), 'BZ-3', 2, 100, 'Venda pela Ir Jessica Avance', 'IrmÒs', 'DINHEIRO', 'cesarjhony@gmail.com - Jessica Avance', datetime.datetime(2026, 3, 28, 18, 4, 42), datetime.datetime(2026, 3, 28, 18, 4, 42)]
[138, datetime.datetime(2026, 3, 8, 0, 0), 'HC-100', 1, 12, 'Venda pela Ir Eliane', 'IrmÒs', 'DINHEIRO', 'cesarjhony@gmail.com - Eliane', datetime.datetime(2026, 3, 28, 18, 6, 2), datetime.datetime(2026, 3, 28, 18, 6, 2)]
[139, datetime.datetime(2026, 3, 10, 0, 0), 'MSA', 2, 24, 'Venda pela Ir Ana', 'IrmÒs', 'DINHEIRO', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 3, 28, 18, 7, 10), datetime.datetime(2026, 3, 28, 18, 7, 10)]
[140, datetime.datetime(2026, 3, 15, 0, 0), 'HC-441', 1, 5, 'Venda pela Ir Jessica Natacha', 'IrmÒs', 'DINHEIRO', 'cesarjhony@gmail.com - Jessica Natacha', datetime.datetime(2026, 3, 28, 18, 12, 11), datetime.datetime(2026, 3, 28, 18, 12, 11)]
[141, datetime.datetime(2026, 3, 18, 0, 0), 'HC-102P', 3, 42, 'Valor 32,00 (Vendido incoerente) - Venda pela Ir Josiani', 'IrmÒs', 'DINHEIRO', 'cesarjhony@gmail.com - Josiani', datetime.datetime(2026, 3, 28, 18, 17, 29), datetime.datetime(2026, 3, 28, 18, 17, 29)]
[142, datetime.datetime(2026, 3, 22, 0, 0), 'HC-102B', 1, 15, 'Valor 14,00 (Venda incoerente) - Venda pela Ir Jessica Natacha', 'IrmÒs', 'DINHEIRO', 'cesarjhony@gmail.com - Jessica Natacha', datetime.datetime(2026, 3, 28, 18, 23, 19), datetime.datetime(2026, 3, 28, 18, 23, 19)]
[143, datetime.datetime(2026, 3, 22, 0, 0), 'VB-A', 1, 25, 'Venda pela Ir Jessica Natacha', 'IrmÒs', 'DINHEIRO', 'cesarjhony@gmail.com - Jessica Natacha', datetime.datetime(2026, 3, 28, 18, 25, 51), datetime.datetime(2026, 3, 28, 18, 25, 51)]
[144, datetime.datetime(2026, 3, 10, 0, 0), 'MSA', 1, 12, 'Venda pela Ir Ana', 'IrmÒs', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 3, 28, 18, 27, 24), datetime.datetime(2026, 3, 28, 18, 27, 24)]
[145, datetime.datetime(2026, 3, 11, 0, 0), 'HC-205', 1, 30, 'Venda pela Ir Ana', 'IrmÒs', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 3, 28, 18, 31, 37), datetime.datetime(2026, 3, 28, 18, 31, 37)]
[146, datetime.datetime(2026, 3, 11, 0, 0), 'HM-109', 1, 50, 'Venda pela Ir Ana', 'IrmÒs', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 3, 28, 18, 34), datetime.datetime(2026, 3, 28, 18, 34)]
[147, datetime.datetime(2026, 3, 14, 0, 0), 'B-21', 1, 40, 'Venda pela Ir Meirekele', 'IrmÒs', 'PIX', 'cesarjhony@gmail.com - Meirekele', datetime.datetime(2026, 3, 28, 18, 37, 7), datetime.datetime(2026, 3, 28, 18, 37, 7)]
[148, datetime.datetime(2026, 3, 14, 0, 0), 'HC-102P', 2, 28, 'Venda pela Ir Meirekele', 'IrmÒs', 'PIX', 'cesarjhony@gmail.com - Meirekele', datetime.datetime(2026, 3, 28, 18, 38, 18), datetime.datetime(2026, 3, 28, 18, 38, 18)]
[149, datetime.datetime(2026, 3, 15, 0, 0), 'VR-A', 1, 25, 'Venda pela Ir Jessica Natacha', 'IrmÒs', 'PIX', 'cesarjhony@gmail.com - Jessica Natacha', datetime.datetime(2026, 3, 28, 18, 38, 57), datetime.datetime(2026, 3, 28, 18, 38, 57)]
[150, datetime.datetime(2026, 3, 15, 0, 0), 'VB-C', 1, 20, 'Venda pela Ir Jessica Natacha', 'IrmÒs', 'PIX', 'cesarjhony@gmail.com - Jessica Natacha', datetime.datetime(2026, 3, 28, 18, 39, 53), datetime.datetime(2026, 3, 28, 18, 39, 53)]
[151, datetime.datetime(2026, 3, 15, 0, 0), 'HM-209', 1, 28, 'Venda pela Ir Ana', 'IrmÒs', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 3, 28, 18, 40, 16), datetime.datetime(2026, 3, 28, 18, 40, 16)]
[152, datetime.datetime(2026, 3, 17, 0, 0), 'MSA', 1, 12, 'Venda pela Ir Ana', 'IrmÒs', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 3, 28, 18, 41, 15), datetime.datetime(2026, 3, 28, 18, 41, 15)]
[153, datetime.datetime(2026, 3, 18, 0, 0), 'VB-A', 2, 50, 'Venda pela Ir Josiani', 'IrmÒs', 'PIX', 'cesarjhony@gmail.com - Josiani', datetime.datetime(2026, 3, 28, 18, 41, 55), datetime.datetime(2026, 3, 28, 18, 41, 55)]
[154, datetime.datetime(2026, 3, 18, 0, 0), 'HM-109', 1, 50, 'Venda pela Ir Josiani', 'IrmÒs', 'PIX', 'cesarjhony@gmail.com - Josiani', datetime.datetime(2026, 3, 28, 18, 43, 51), datetime.datetime(2026, 3, 28, 18, 43, 51)]
[155, datetime.datetime(2026, 3, 18, 0, 0), 'MOR-V2', 1, 8, 'Venda pela Ir Josiani', 'IrmÒs', 'PIX', 'cesarjhony@gmail.com - Josiani', datetime.datetime(2026, 3, 28, 18, 44, 37), datetime.datetime(2026, 3, 28, 18, 44, 37)]
[156, datetime.datetime(2026, 3, 21, 0, 0), 'VB-C', 1, 20, 'Venda pela Ir Ana', 'IrmÒs', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 3, 28, 18, 45, 58), datetime.datetime(2026, 3, 28, 18, 45, 58)]
[157, datetime.datetime(2026, 3, 21, 0, 0), 'MSA', 1, 12, 'Venda pela Ir Ana', 'IrmÒs', 'PIX', 'cesarjhony@gmail.com - Ana', datetime.datetime(2026, 3, 28, 18, 47, 13), datetime.datetime(2026, 3, 28, 18, 47, 13)]
[158, datetime.datetime(2026, 3, 21, 0, 0), 'VB-A', 1, 25, 'Venda pela Ir Meirekele', 'IrmÒs', 'PIX', 'cesarjhony@gmail.com - Meirekele', datetime.datetime(2026, 3, 28, 18, 48, 18), datetime.datetime(2026, 3, 28, 18, 48, 18)]
================================================================================
LANCAMENTOS - Sheet: SIGA | Rows: 10 | Cols: 3
================================================================================
Headers: ['ID', 'LancadoSiga', 'DataLancamentoSiga']
--------------------------------------------------------------------------------
[119, 'SIM', datetime.datetime(2026, 3, 28, 22, 50, 22)]
[120, 'SIM', datetime.datetime(2026, 3, 28, 22, 50, 22)]
[121, 'SIM', datetime.datetime(2026, 3, 28, 22, 50, 22)]
[122, 'SIM', datetime.datetime(2026, 3, 28, 22, 50, 22)]
[123, 'SIM', datetime.datetime(2026, 3, 28, 22, 50, 22)]
[124, 'SIM', datetime.datetime(2026, 3, 28, 22, 50, 22)]
[125, 'SIM', datetime.datetime(2026, 3, 28, 22, 50, 22)]
[126, 'SIM', datetime.datetime(2026, 3, 28, 22, 50, 22)]
[127, 'SIM', datetime.datetime(2026, 3, 28, 22, 50, 22)]