Skip to main content

Real Estate Network and Trend Analyzer - A Python library for real estate investment analysis in Buenos Aires

Project description

RENTA – Real Estate Network and Trend Analyzer

PyPI version Python 3.10+ License: MIT Documentation

RENTA is a Python library for real estate investment analysis in Buenos Aires. It combines Airbnb market data, Zonaprop listings, geospatial enrichment, and AWS Bedrock summaries to deliver investment-ready datasets.

Features

  • Download and normalize Airbnb datasets from InsideAirbnb with freshness caching.
  • Scrape or ingest Zonaprop listings, capturing pricing, engagement, and location data.
  • Match properties to nearby Airbnb listings with configurable spatial filters.
  • Generate Claude Sonnet 4.5 summaries in Argentine Spanish through AWS Bedrock.
  • Export enriched results to pandas, CSV, or JSON with consistent schemas.

Installation

pip install renta

Quick Start

from renta import RealEstateAnalyzer

analyzer = RealEstateAnalyzer()

airbnb = analyzer.download_airbnb_data(force=True)
properties = analyzer.scrape_zonaprop(
    "https://www.zonaprop.com.ar/inmuebles-venta-palermo-2-dormitorios-50000-130000-dolar.html"
)
enriched = analyzer.enrich_with_airbnb(properties)
summaries = analyzer.generate_summaries(enriched)

analyzer.export(enriched, format="csv", path="investment_analysis.csv")

AWS Bedrock Requirements

Claude Sonnet 4.5 access is required for AI summaries.

export AWS_ACCESS_KEY_ID="YOUR_KEY"
export AWS_SECRET_ACCESS_KEY="YOUR_SECRET"
export AWS_REGION="us-east-1"

Or configure ~/.aws/credentials or an IAM role. In AWS Console → Amazon Bedrock → Model access, request us.anthropic.claude-sonnet-4-5-20250929-v1:0.

Configuration

Create config.yaml to override defaults in renta/data/default_config.yaml.

data:
  cache_dir: "~/.renta/cache"
  freshness_threshold_hours: 24
airbnb:
  matching:
    radius_km: 0.3
    min_nights_threshold: 7
aws:
  region: "us-east-1"
logging:
  level: "INFO"

Load with RealEstateAnalyzer(config_path="config.yaml") or set RENTA_CONFIG=/path/config.yaml. Configuration is validated against renta/schemas/config_schema.json.

Troubleshooting

  • Download issues: call analyzer.download_airbnb_data(force=True).
  • Zonaprop blocked: use html_path="saved_results.html" with previously saved HTML.
  • Bedrock errors: verify credentials with aws sts get-caller-identity and confirm model access.
  • Schema validation failures: run RealEstateAnalyzer(config_path="config.yaml") to surface detailed errors.

Security and Compliance

Logs scrub PII when enabled in config, credentials are never persisted, and scraping obeys configurable rate limits. Review renta/data/legal_notice.md and LEGAL_COMPLIANCE.md for jurisdiction-specific guidance. Users are responsible for complying with local laws, Zonaprop terms, and AWS policies.

Documentation and Examples

  • API reference and guides: https://renta.readthedocs.io
  • Example scripts and notebooks: examples/
  • Default prompts and configuration templates ship with the package.

Contributing

We welcome pull requests. Install development tooling with:

pip install -e ".[dev]"
pytest
black . && isort . && flake8

See CONTRIBUTING.md for workflow details.

License

MIT License – see LICENSE.


RENTA supports research and exploratory investment analysis. Always verify property data independently and consult legal counsel when deploying scraping or AI-driven workflows in production.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

renta-0.1.0.tar.gz (110.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

renta-0.1.0-py3-none-any.whl (68.6 kB view details)

Uploaded Python 3

File details

Details for the file renta-0.1.0.tar.gz.

File metadata

  • Download URL: renta-0.1.0.tar.gz
  • Upload date:
  • Size: 110.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for renta-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1e7ffbcecfb25558eb53b28db77d957e48f91c638027fb8f0f669985c9fe333f
MD5 12014a503b08456057e653c9ae7f86c4
BLAKE2b-256 8f42c9af6ea51e3bf31e3b8f0529c59f9b6c7e362b3d1f0fb20767b4a639b0ae

See more details on using hashes here.

File details

Details for the file renta-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: renta-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 68.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for renta-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de4594ac836bfa318d898ab26a87552ee0c694e6841c22cb1936d22b50cd6f8f
MD5 7995125a7dd07bcb49fb557cfd482a02
BLAKE2b-256 7610d8c5ef85b173b6be29770d056164d4e604142573c16719db732e6d625352

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page