Skip to content

bsvalues/BCBSLevy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

408 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SaaS Levy Calculation Application

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.

Overview

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.

Features

  • 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

Technical Stack

  • 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

Getting Started

Prerequisites

  • Python 3.11
  • PostgreSQL database
  • Anthropic API key (for AI features)

Installation

  1. Clone the repository
  2. Set up environment variables:
    DATABASE_URL=postgresql://user:password@localhost/dbname
    ANTHROPIC_API_KEY=your_api_key
    SESSION_SECRET=your_session_secret
    
  3. Install dependencies:
    pip install -r requirements.txt
    
  4. Set up the database:
    python migrate.py upgrade
    
  5. Run the application:
    gunicorn --bind 0.0.0.0:5000 main:app
    

Database Management

The application provides comprehensive tools for database management:

Quick Commands

# Create a database backup
python cli_tool.py backup

# Verify database connectivity
python cli_tool.py verify

# Display database information
python cli_tool.py info

Database Migrations

The 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 migration

See docs/README_migration_tools.md for detailed instructions.

Development

python main.py

Production Deployment

See docs/deployment.md for production deployment instructions.

Documentation

License

This project is proprietary and confidential.

Acknowledgments

  • Benton County Assessor's Office
  • Flask and SQLAlchemy communities
  • Anthropic for Claude AI services

About

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors