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

# 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

This project is licensed under the MIT License - see the LICENSE file for details.

Copyright (c) 2025 The Perry Group

🆘 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.7.tar.gz (51.9 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.7-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rezen-1.0.7.tar.gz
Algorithm Hash digest
SHA256 3d69cd3db0f73a43fcfca5e08c248124f529741383a0edf1f2066473c53801df
MD5 17607f187d4bb3d992e600c9438aebf6
BLAKE2b-256 31810baa02a490ce22da43dcf2a8f5eee440f218c4996518c612db15c56893b8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for rezen-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 35f6e391e3153e4b9a5e468d4ec75fdb5fd498d0bf414b6fa110c5b464a31c49
MD5 3ab8afd30832afdc6f2db07782f5e117
BLAKE2b-256 b0377e3eb10dbdf5f547b8f67817e8468a0d4139c52d6abb99efee2bc71deee4

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