Skip to content

mexicolife/market_analysis

Repository files navigation

Market Analysis System

A comprehensive system for analyzing real estate market data using Python and SQL, with integrated AI capabilities through Claude API.

Features

  • Advanced market analytics and trend analysis
  • Integration with Claude AI for property analysis
  • Automated data import and processing
  • Interactive reporting system
  • Property comparison tools
  • Market prediction models

Project Structure

market_analysis/
├── config/           # Configuration files
├── data/            # Data storage
├── notebooks/       # Jupyter notebooks for analysis
├── output/          # Generated reports and outputs
├── scripts/         # Python scripts
│   ├── advanced_analytics.py
│   ├── claude_api.py
│   ├── import_data.py
│   └── ...
└── requirements.txt

Setup

  1. Clone the repository:
git clone https://github.com/mexicolife/market_analysis.git
cd market_analysis
  1. Create and activate virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: .\venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Configure environment variables:
  • Copy .env.example to .env
  • Add your Anthropic API key and database credentials
  1. Initialize the database:
python scripts/setup_database.py

Usage

  1. Import MLS data:
python scripts/import_data.py
  1. Run market analysis:
python scripts/advanced_analytics.py
  1. Use Claude for property analysis:
python scripts/claude_chat_gui.py

Refer to USER_GUIDE.md for detailed usage instructions.

Development

  • Follow the guidelines in CODE_PRACTICES.md
  • Use virtual environment
  • Run tests before committing changes

Testing

Run the test suite:

python -m pytest tests/

License

MIT License - see LICENSE file for details

About

Market analysis codebase and data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages