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.1.tar.gz (41.3 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.1-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rezen-1.0.1.tar.gz
  • Upload date:
  • Size: 41.3 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.1.tar.gz
Algorithm Hash digest
SHA256 2c38c23026fc933b8c789693a8c7be7092ba2187f9ed0645da8c2be4fc05876c
MD5 0b6275dc577daa949d205d228216625b
BLAKE2b-256 54d0c1109f224ad3a88bb21d79be09ab18f52840e172adbc9fa27521e971df19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rezen-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ffdada61c5648a2464a3ad3393ccf700f1f8ced1a565272cfc70e66323547df3
MD5 609f6d9953bf9f1409fdb0657cd76bb7
BLAKE2b-256 d1a817ca16d7f0ef4c2c88512abdddf48c3ad2a3aa63532c8a79254f9717f142

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