A Flask-based SaaS application for property tax levy calculations, leveraging AI and advanced data analytics to provide comprehensive tax assessment insights for county assessors.
This application is designed for the Benton County Assessor's office in Washington state. It handles property tax levy calculations, statutory compliance, and related functionalities for property tax administration. The system supports data import/export, levy calculations, property lookups, tax district management, and comprehensive reporting capabilities.
- Property Tax Levy Calculations: Calculate levy rates and amounts based on assessed values
- Multi-Year Analysis: Track and analyze tax rates across multiple years
- Interactive Visualizations: Visualization system with enhanced charting and real-time filtering
- AI-Enhanced Forecasting: Claude 3.5 Sonnet integration for intelligent model selection and natural language explanations
- Bill Impact Calculator: Analyze effects of pending legislation on tax rates
- Anomaly Detection: Identify unusual patterns in historical tax rate data
- Statutory Compliance Reports: Detailed compliance checks with tabbed interface
- Data Management: Table-level snapshots with configurable retention periods
- Audit Trail: Detailed tracking of all data changes with before/after comparison
- Database Management: Comprehensive backup, restore, and migration tools with version compatibility
- Database Verification: Database connectivity and health checking tools
- Public Portal: Mobile-optimized public interface with property lookup and glossary
- Tax Terminology: Interactive tooltips and comprehensive glossary
- Backend: Flask with SQLAlchemy ORM
- Database: PostgreSQL with Flask-Migrate for migrations
- AI Integration: Anthropic Claude 3.5 Sonnet
- Data Processing: Pandas and NumPy
- Statistical Analysis: scikit-learn and statsmodels
- Frontend: Bootstrap with responsive design
- Python 3.11
- PostgreSQL database
- Anthropic API key (for AI features)
- Clone the repository
- Set up environment variables:
DATABASE_URL=postgresql://user:password@localhost/dbname ANTHROPIC_API_KEY=your_api_key SESSION_SECRET=your_session_secret - Install dependencies:
pip install -r requirements.txt - Set up the database:
python migrate.py upgrade - Run the application:
gunicorn --bind 0.0.0.0:5000 main:app
The application provides comprehensive tools for database management:
# Create a database backup
python cli_tool.py backup
# Verify database connectivity
python cli_tool.py verify
# Display database information
python cli_tool.py infoThe application uses Flask-Migrate for database schema changes with enhanced production tools:
# Development migrations
python migrate.py migrate -m "Description of changes"
python migrate.py upgrade
# Production migrations with safety features
python production_migrate.py backup # Create backup before migration
python production_migrate.py migrate # Apply migrations with safety checks
python production_migrate.py verify # Verify successful migrationSee docs/README_migration_tools.md for detailed instructions.
python main.pySee docs/deployment.md for production deployment instructions.
- docs/README_migration_tools.md: Database migration tools overview
- docs/production_migration_guide.md: Production migration guide
- docs/postgresql_production_migration.md: PostgreSQL migration guide
- docs/database_backup_restore.md: Database backup and restore guide
- docs/deployment.md: Production deployment guide
This project is proprietary and confidential.
- Benton County Assessor's Office
- Flask and SQLAlchemy communities
- Anthropic for Claude AI services