Skip to main content

Python wrapper for The Real Brokerage ReZEN API - Transaction Builder, Transactions, and Teams management

Project description

ReZEN API Python Client

A comprehensive Python wrapper for the ReZEN (Real Estate) API, providing easy access to transaction builder, transactions, teams, and related real estate services.

🚀 Quick Start

from rezen import RezenClient

# Initialize client (uses REZEN_API_KEY environment variable)
client = RezenClient()

# Or provide API key directly
client = RezenClient(api_key="your_api_key_here")

# Create a transaction builder
response = client.transaction_builder.create_transaction_builder({
    "type": "PURCHASE",
    "property": {
        "address": "123 Main St",
        "city": "Anytown",
        "state": "CA",
        "zipCode": "12345"
    }
})

# Search for teams
teams = client.teams.search_teams(status="ACTIVE")

# Get transaction details
transaction = client.transactions.get_transaction("transaction-id")

📦 Installation

pip install rezen-api  # (when published)

# Or for development:
git clone <repository-url>
cd rezen
pip install -r requirements-dev.txt

🔧 Setup

  1. Get your API key from the ReZEN platform
  2. Set environment variable:
    export REZEN_API_KEY="your_api_key_here"
    
  3. Or create a .env file:
    REZEN_API_KEY=your_api_key_here
    

🔄 Main Workflows

🏗️ Transaction Builder Workflows

  • Create transactions from scratch
  • Import existing transactions
  • Manage participants (buyers, sellers, agents)
  • Submit transactions for processing
  • Update transaction details and contracts

📋 Transaction Management Workflows

  • Retrieve transaction details and status
  • Manage participants and their information
  • Handle financial operations (payments, fees)
  • Escrow management (deposits, documentation)
  • Generate reports and summaries

👥 Team Management Workflows

  • Search teams by name, status, or type
  • Get team details and member information
  • Filter by team types (Normal, Platinum, Group, etc.)

🧪 Testing & Development Workflows

  • Unit testing with mocked responses
  • Live API testing with real endpoints
  • Error handling and validation
  • Coverage reporting

📖 Detailed Documentation

For comprehensive workflow documentation, see:

🏗️ Client Structure

The ReZEN client provides access to different API sections:

client = RezenClient()

# Transaction Builder API (89 endpoints)
client.transaction_builder.create_transaction_builder()
client.transaction_builder.add_buyer()
client.transaction_builder.submit_transaction()

# Transactions API (49 endpoints) 
client.transactions.get_transaction()
client.transactions.create_participant()
client.transactions.get_summary_pdf()

# Teams API (2 endpoints)
client.teams.search_teams()
client.teams.get_team_without_agents()

🎯 Key Features

  • ✅ 140+ endpoints implemented with full coverage
  • 🔒 Type-safe with comprehensive type hints
  • 🧪 100% test coverage with pytest
  • 📝 Complete documentation with examples
  • 🔧 Easy configuration with environment variables
  • 🚨 Robust error handling with custom exceptions
  • 🔄 Async support planned for future versions

🛠️ Development

# Clone and setup
git clone <repository-url>
cd rezen
python -m venv venv
source venv/bin/activate  # or `venv\Scripts\activate` on Windows
pip install -r requirements-dev.txt

# Run tests
pytest

# Run tests with coverage
pytest --cov=rezen --cov-report=html

# Format code
black rezen tests
isort rezen tests

# Type checking
mypy rezen

📄 API Coverage

API Section Endpoints Status
Transaction Builder 89 ✅ Complete
Transactions 49 ✅ Complete
Teams 2 ✅ Complete
Total 140 ✅ Complete

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes with tests
  4. Ensure 100% test coverage
  5. Submit a pull request

See STYLE_GUIDE.md for coding standards.

📝 License

[Add your license here]

🆘 Support

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

rezen-1.0.0.tar.gz (41.4 kB view details)

Uploaded Source

Built Distribution

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

rezen-1.0.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file rezen-1.0.0.tar.gz.

File metadata

  • Download URL: rezen-1.0.0.tar.gz
  • Upload date:
  • Size: 41.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for rezen-1.0.0.tar.gz
Algorithm Hash digest
SHA256 72f1a0fbe48866d9ff9e74e97313c0a25412cb27d3f5066d1012473b042c2632
MD5 a9ca0d63b0c7e8f13542e4009bea2946
BLAKE2b-256 e4d728800cc0498de59fc5051a5c3789de433d279df164a4f056bb4d443f31e5

See more details on using hashes here.

File details

Details for the file rezen-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: rezen-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for rezen-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7eb2daee8ae5a930c9fceb6c28c74ca7e1fb40fdfbc6f3a8c3fbba243d8fbc69
MD5 3e66619a755152d77eac13e31c7d5b20
BLAKE2b-256 d7074484c95cdfe2365f59e2031f5fb3838e82a9c2003e6c933f29296c6e8ee9

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