| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Professional data processing, analysis, and OCR extraction system.
Python 3.10+ | MIT License | Code style: black
Portugues | English
Projetos refinados que demonstram crescimento tecnico e arquitetura profissional:
Repositorio com modulos profissionais para engenharia de dados, analise de dados e extracao de informacoes por OCR. Sistema integrado para processamento de faturas fiscais brasileiras, gestao de banco de dados e analise de dados estruturados.
TRABALHOSPython/ ├── src/ │ ├── csv_handler.py # Gerenciador CSV │ ├── database.py # Gerenciador banco de dados │ ├── invoice_ocr.py # Extrator OCR (consolidado) │ └── invoice_analysis.py # Analise de faturas ├── tests/ # Testes unitarios ├── examples/ # Scripts de exemplo ├── requirements.txt # Dependencias do projeto ├── .gitignore # Git ignore profissional └── README.md # Este arquivo
# Clone o repositorio
git clone https://github.com/bellDataSc/TRABALHOSPython.git
cd TRABALHOSPython
# Crie um ambiente virtual
python -m venv venv
source venv/bin/activate # Linux/Mac
# ou
venv\\Scripts\\activate # Windows
# Instale as dependencias
pip install -r requirements.txt
# Configure tesseract (se usar OCR)
# Windows: https://github.com/UB-Mannheim/tesseract/wiki
# Linux: sudo apt-get install tesseract-ocr
# Mac: brew install tesseractfrom src.csv_handler import read_csv, save_csv
# Ler CSV
df = read_csv('data.csv')
# Salvar CSV
save_csv(df, 'output.csv')from src.database import Database
db = Database("sqlite:///database.db")
# Query segura (parametrizada)
df = db.query(
"SELECT * FROM users WHERE name LIKE :pattern",
{"pattern": "%John%"}
)
db.close()from pathlib import Path
from src.invoice_ocr import InvoiceOCR
ocr = InvoiceOCR(dpi=300)
df = ocr.process_directory(
directory=Path("pdfs"),
output_excel=Path("result.xlsx")
)| Original | Refatorado | Ganho |
|---|---|---|
| Pandas.py | csv_handler.py | Type hints + error handling |
| Query.py | database.py | SQLAlchemy + seguranca |
| dadosdog.py + extracdog.py | invoice_ocr.py | Consolidado em 1 arquivo |
| script.py | invoice_analysis.py | Dataclasses + type hints |
# Executar testes
pytest tests/
# Com cobertura
pytest --cov=src tests/
# Verificacao de tipo
mypy src/
# Linting
flake8 src/
black --check src/Este projeto esta sob a licenca MIT. Veja o arquivo LICENSE para mais detalhes.
Repository with professional modules for data engineering, data analysis, and OCR information extraction. Integrated system for Brazilian fiscal invoice processing, database management, and structured data analysis.
TRABALHOSPython/ ├── src/ │ ├── csv_handler.py # CSV manager │ ├── database.py # Database manager │ ├── invoice_ocr.py # OCR extractor (consolidated) │ └── invoice_analysis.py # Invoice analysis ├── tests/ # Unit tests ├── examples/ # Example scripts ├── requirements.txt # Project dependencies ├── .gitignore # Professional gitignore └── README.md # This file
# Clone the repository
git clone https://github.com/bellDataSc/TRABALHOSPython.git
cd TRABALHOSPython
# Create virtual environment
python -m venv venv
source venv/bin/activate # Linux/Mac
# or
venv\\Scripts\\activate # Windows
# Install dependencies
pip install -r requirements.txt
# Setup tesseract (if using OCR)
# Windows: https://github.com/UB-Mannheim/tesseract/wiki
# Linux: sudo apt-get install tesseract-ocr
# Mac: brew install tesseractfrom src.csv_handler import read_csv, save_csv
# Read CSV
df = read_csv('data.csv')
# Save CSV
save_csv(df, 'output.csv')from src.database import Database
db = Database("sqlite:///database.db")
# Safe query (parameterized)
df = db.query(
"SELECT * FROM users WHERE name LIKE :pattern",
{"pattern": "%John%"}
)
db.close()from pathlib import Path
from src.invoice_ocr import InvoiceOCR
ocr = InvoiceOCR(dpi=300)
df = ocr.process_directory(
directory=Path("pdfs"),
output_excel=Path("result.xlsx")
)| Original | Refactored | Benefit |
|---|---|---|
| Pandas.py | csv_handler.py | Type hints + error handling |
| Query.py | database.py | SQLAlchemy + security |
| dadosdog.py + extracdog.py | invoice_ocr.py | Consolidated into 1 file |
| script.py | invoice_analysis.py | Dataclasses + type hints |
# Run tests
pytest tests/
# With coverage
pytest --cov=src tests/
# Type checking
mypy src/
# Linting
flake8 src/
black --check src/This project is licensed under the MIT License. See the LICENSE file for details.
Isabel Cruz - @bellDataSc
LinkedIn: belcruz | Medium: @belgon | GitHub: bellDataSc
| Back | FazBrowse Home | New Git URL |