Skip to content

Commit 6e3e462

Browse files
committed
Add Forensic CPA AI document processing system
Created complete Flask-based application for forensic accounting document analysis with: - PDF, Excel, and Word document processing capabilities - REST API with 6 endpoints for upload, analysis, and file management - Modern web interface with drag-and-drop file upload - Comprehensive test suite and API testing tools - Deployment scripts and documentation for Windows - Local Nexus Controller integration bundle - Production-ready with security features and error handling Key features: - Extract text, tables, and metadata from PDFs using pdfplumber - Parse and analyze Excel spreadsheets with pandas/openpyxl - Process Word documents and extract structured data - Web UI at /ui for easy document upload and visualization - Health check endpoint for monitoring - File storage with JSON results for each processed document Includes complete documentation: - README.md - Main documentation and API reference - SETUP_INSTRUCTIONS.md - Step-by-step installation guide - DEPLOYMENT_GUIDE.md - Deployment and integration instructions - PROJECT_SUMMARY.md - Comprehensive project overview - test_api.py - Automated API test suite Ready for deployment to C:\Users\nedpe\Desktop\Repositories\Forensic_CPA_AI https://claude.ai/code/session_01VzBz78XPLwNAzDDaSFsTbC
1 parent 695720d commit 6e3e462

13 files changed

Lines changed: 2381 additions & 0 deletions

forensic_cpa_ai/.env.example

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Forensic CPA AI Configuration
2+
3+
# Port number for the Flask application
4+
PORT=5000
5+
6+
# Flask debug mode (true/false)
7+
FLASK_DEBUG=false
8+
9+
# Maximum upload file size in bytes (default: 16MB)
10+
MAX_UPLOAD_SIZE=16777216

forensic_cpa_ai/.gitignore

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Python
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
*.so
6+
.Python
7+
build/
8+
develop-eggs/
9+
dist/
10+
downloads/
11+
eggs/
12+
.eggs/
13+
lib/
14+
lib64/
15+
parts/
16+
sdist/
17+
var/
18+
wheels/
19+
pip-wheel-metadata/
20+
share/python-wheels/
21+
*.egg-info/
22+
.installed.cfg
23+
*.egg
24+
MANIFEST
25+
26+
# Virtual environments
27+
.venv/
28+
venv/
29+
ENV/
30+
env/
31+
32+
# Flask
33+
instance/
34+
.webassets-cache
35+
36+
# Environment variables
37+
.env
38+
.env.local
39+
40+
# Uploaded files
41+
uploads/
42+
*.pdf
43+
*.xlsx
44+
*.xls
45+
*.docx
46+
*.doc
47+
48+
# IDE
49+
.vscode/
50+
.idea/
51+
*.swp
52+
*.swo
53+
*~
54+
55+
# OS
56+
.DS_Store
57+
Thumbs.db
58+
59+
# Logs
60+
*.log
61+
62+
# Testing
63+
.pytest_cache/
64+
.coverage
65+
htmlcov/

forensic_cpa_ai/DEPLOY.bat

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
@echo off
2+
REM Deployment script for Forensic CPA AI
3+
REM This script copies the project files to the target directory
4+
5+
echo ╔═══════════════════════════════════════════════════════════════════╗
6+
echo ║ Forensic CPA AI - Deployment Script ║
7+
echo ╚═══════════════════════════════════════════════════════════════════╝
8+
echo.
9+
10+
REM Set the target directory
11+
set TARGET_DIR=C:\Users\nedpe\Desktop\Repositories\Forensic_CPA_AI
12+
13+
echo Target directory: %TARGET_DIR%
14+
echo.
15+
16+
REM Check if target directory exists
17+
if not exist "%TARGET_DIR%" (
18+
echo Creating target directory...
19+
mkdir "%TARGET_DIR%"
20+
)
21+
22+
echo Copying project files...
23+
24+
REM Copy all project files
25+
copy /Y main.py "%TARGET_DIR%\"
26+
copy /Y requirements.txt "%TARGET_DIR%\"
27+
copy /Y README.md "%TARGET_DIR%\"
28+
copy /Y SETUP_INSTRUCTIONS.md "%TARGET_DIR%\"
29+
copy /Y .env.example "%TARGET_DIR%\"
30+
copy /Y .gitignore "%TARGET_DIR%\"
31+
copy /Y local-nexus.bundle.json "%TARGET_DIR%\"
32+
33+
echo.
34+
echo ═══════════════════════════════════════════════════════════════════
35+
echo Files copied successfully!
36+
echo.
37+
echo Next steps:
38+
echo 1. Navigate to: %TARGET_DIR%
39+
echo 2. Run: python -m venv .venv
40+
echo 3. Run: .venv\Scripts\activate
41+
echo 4. Run: pip install -r requirements.txt
42+
echo 5. Run: python main.py
43+
echo.
44+
echo Or simply run QUICK_START.bat in the target directory
45+
echo ═══════════════════════════════════════════════════════════════════
46+
echo.
47+
48+
pause

0 commit comments

Comments
 (0)