7757694077
- Created market_analysis.py with market analysis functions: - parse_deal_dates() - Date parsing and filtering helper - calculate_market_activity_score() - Activity metrics - analyze_investment_potential() - Investment analysis - get_market_liquidity() - Liquidity metrics - Created client.py with GovmapClient class: - Core API methods (autocomplete, get deals, etc.) - Validation methods delegating to validators module - Utility methods delegating to utils module - Filtering, statistics, and analysis methods delegating to respective modules - Updated govmap/__init__.py to export GovmapClient All modules maintain backward compatibility through delegation pattern. Next: Delete old govmap.py and update imports. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
67 lines
1.8 KiB
Python
67 lines
1.8 KiB
Python
"""
|
|
Govmap package - Israeli government real estate data API client.
|
|
|
|
This package provides a modular interface to the Govmap API for querying
|
|
Israeli real estate deals, market trends, and property information.
|
|
|
|
Public API:
|
|
- GovmapClient: Main API client class (to be added from client.py)
|
|
- filter_deals_by_criteria: Filter deals by various criteria
|
|
- calculate_deal_statistics: Calculate statistical aggregations
|
|
- calculate_market_activity_score: Market activity and trend metrics
|
|
- analyze_investment_potential: Investment analysis and price trends
|
|
- get_market_liquidity: Market liquidity and velocity metrics
|
|
"""
|
|
|
|
# Filter functions
|
|
from .filters import filter_deals_by_criteria
|
|
|
|
# Statistics functions
|
|
from .statistics import calculate_deal_statistics, calculate_std_dev
|
|
|
|
# Market analysis functions
|
|
from .market_analysis import (
|
|
calculate_market_activity_score,
|
|
analyze_investment_potential,
|
|
get_market_liquidity,
|
|
parse_deal_dates,
|
|
)
|
|
|
|
# Utility functions
|
|
from .utils import calculate_distance, is_same_building, extract_floor_number
|
|
|
|
# Validation functions
|
|
from .validators import (
|
|
validate_address,
|
|
validate_coordinates,
|
|
validate_positive_int,
|
|
validate_deal_type,
|
|
)
|
|
|
|
# Main API client
|
|
from .client import GovmapClient
|
|
|
|
__all__ = [
|
|
# Main client class
|
|
"GovmapClient",
|
|
# Filtering
|
|
"filter_deals_by_criteria",
|
|
# Statistics
|
|
"calculate_deal_statistics",
|
|
"calculate_std_dev",
|
|
# Market analysis
|
|
"calculate_market_activity_score",
|
|
"analyze_investment_potential",
|
|
"get_market_liquidity",
|
|
"parse_deal_dates",
|
|
# Utilities
|
|
"calculate_distance",
|
|
"is_same_building",
|
|
"extract_floor_number",
|
|
# Validation
|
|
"validate_address",
|
|
"validate_coordinates",
|
|
"validate_positive_int",
|
|
"validate_deal_type",
|
|
]
|