A comprehensive system for analyzing real estate market data using Python and SQL, with integrated AI capabilities through Claude API.
- 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
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
- Clone the repository:
git clone https://github.com/mexicolife/market_analysis.git
cd market_analysis- Create and activate virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: .\venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Configure environment variables:
- Copy
.env.exampleto.env - Add your Anthropic API key and database credentials
- Initialize the database:
python scripts/setup_database.py- Import MLS data:
python scripts/import_data.py- Run market analysis:
python scripts/advanced_analytics.py- Use Claude for property analysis:
python scripts/claude_chat_gui.pyRefer to USER_GUIDE.md for detailed usage instructions.
- Follow the guidelines in
CODE_PRACTICES.md - Use virtual environment
- Run tests before committing changes
Run the test suite:
python -m pytest tests/MIT License - see LICENSE file for details