Skip to main content

ReZEN Python Client

PyPI version Python support License Coverage Documentation

The official Python client for the ReZEN Real Estate API

Build powerful real estate applications with comprehensive transaction management, agent networking, and team operations. Type-safe, production-ready, and extensively documented.

🚀 Quick Start

Buyer transaction API change (October 12, 2026): create a Buyer Record, then convert it with client.buyer_records.build_transaction(record_id). Direct listing creation remains supported. See the Buyer Record migration guide for required agreement fields and dual-sided transaction associations.

Install:

pip install rezen

Use:

from rezen import RezenClient

# Initialize client (reads REZEN_API_KEY from environment)
client = RezenClient()

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

# Create a transaction
response = client.transaction_builder.create_transaction_builder()
transaction_id = response['id']

# Add property details
client.transaction_builder.update_location_info(transaction_id, {
    "address": "123 Main Street",
    "city": "San Francisco",
    "state": "CA",
    "zipCode": "94102"
})

📖 Full Documentation | 🚀 Quick Start Guide


✨ Key Features

Feature Description
🏠 Transaction Management Complete transaction lifecycle from creation to closing
👥 Agent & Team Operations Comprehensive search, network analysis, and team management
🔒 Type-Safe & Robust Full type hints, comprehensive error handling, 100% test coverage
📚 Well Documented Extensive docs with real-world examples and troubleshooting
⚡ Production Ready Battle-tested with retry logic, rate limiting, and connection pooling

🎯 Use Cases

Real Estate Transaction Processing

  • Property listings and transaction creation
  • Participant management (buyers, sellers, agents, service providers)
  • Financial operations (commissions, payments, escrow)
  • Document management and reporting

Agent Network Management

  • Agent discovery and search capabilities
  • Network analysis with sponsor trees and downlines
  • Team management and assignments
  • Performance tracking and analytics

System Integration

  • CRM integrations for customer management
  • Accounting systems for financial tracking
  • Workflow automation for process optimization

📊 API Coverage

API Section Endpoints Status
Transaction Builder 52 endpoints ✅ Complete
Transactions 49 endpoints ✅ Complete
Agents 36 endpoints ✅ Complete
Teams 2 endpoints ✅ Complete
Directory 16 endpoints ✅ Complete
Total 155 endpoints ✅ Complete

🛠️ Installation & Setup

Prerequisites

  • Python 3.8 or newer (CI-tested on Python 3.8 through 3.12)
  • ReZEN API key

Install the Package

With pip:

pip install rezen

With poetry:

poetry add rezen

Configure Authentication

Option 1: Environment Variable (Recommended)

export REZEN_API_KEY="your_api_key_here"

Option 2: Direct in Code

client = RezenClient(api_key="your_api_key_here")

Option 3: .env File

# .env
REZEN_API_KEY=your_api_key_here

💡 Examples

Complete Transaction Workflow

from datetime import datetime, timedelta
from rezen import RezenClient

client = RezenClient()

# Create transaction
response = client.transaction_builder.create_transaction_builder()
transaction_id = response['id']

# Add property details
client.transaction_builder.update_location_info(transaction_id, {
    "address": "1234 Elm Street",
    "city": "San Francisco",
    "state": "CA",
    "zipCode": "94102"
})

# Set pricing and timeline
closing_date = (datetime.now() + timedelta(days=45)).strftime("%Y-%m-%d")
client.transaction_builder.update_price_and_date_info(transaction_id, {
    "purchase_price": 850000,
    "closing_date": closing_date
})

# Add participants
client.transaction_builder.add_buyer(transaction_id, {
    "first_name": "Alice",
    "last_name": "Johnson",
    "email": "alice@email.com"
})

# Submit for processing
client.transaction_builder.submit_transaction(transaction_id)

Agent Network Analysis

from rezen import RezenClient

client = RezenClient()

# Find agents in California
agents = client.agents.search_active_agents(
    state_or_province=["CALIFORNIA"],
    page_size=50
)

# Analyze agent networks
for agent in agents[:5]:
    agent_id = agent['id']

    # Get network statistics
    network_stats = client.agents.get_network_size_by_tier(agent_id)
    front_line = client.agents.get_front_line_agents_info(agent_id)

    print(f"Agent {agent['first_name']} {agent['last_name']}:")
    print(f"  Network tiers: {len(network_stats)}")
    print(f"  Front line agents: {len(front_line)}")

Directory Management

from rezen import RezenClient

client = RezenClient()

# Search for vendors
vendors = client.directory.search_vendors(
    page_number=0,
    page_size=20,
    roles=["TITLE_ESCROW", "LENDER"]
)

# Create and link contacts
person_data = {
    "firstName": "Jane",
    "lastName": "Smith",
    "emailAddress": "jane@example.com",
    "phoneNumber": "555-0123"
}

person = client.directory.create_person(person_data)
client.directory.link_person(person['id'], {"vendorId": "vendor-123"})

📚 More Examples →

📖 Documentation

Resource Description
📖 Full Documentation Complete documentation site
🚀 Quick Start 5-minute setup guide
📋 API Reference Complete API documentation
💡 Examples Real-world usage patterns
🔧 Troubleshooting Common issues and solutions

🏗️ Architecture

The ReZEN Python client follows modern Python best practices:

RezenClient
├── TransactionBuilderClient  (52 endpoints)
├── TransactionsClient        (49 endpoints)
├── TeamsClient              (2 endpoints)
├── AgentsClient             (36 endpoints)
└── DirectoryClient          (16 endpoints)

Design Principles:

  • 🎯 Simple Interface: Intuitive method names and clear parameters
  • 🔒 Type Safety: Complete type hints for excellent IDE support
  • ⚡ Performance: Efficient session management and connection pooling
  • 🛡️ Reliability: Comprehensive error handling and retry mechanisms
  • 📚 Extensible: Clean architecture for easy customization

🧪 Development

Setup Development Environment

# Clone the repository
git clone https://github.com/theperrygroup/rezen.git
cd rezen

# Create virtual environment
python -m venv venv
source venv/bin/activate  # Linux/macOS
# or venv\Scripts\activate  # Windows

# Install development dependencies
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

# Install docs dependencies if you plan to build the site locally
python -m pip install -r docs/requirements.txt

Run Tests

# Run all tests
pytest

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

# Run specific test file
pytest tests/test_teams.py -v

Code Quality

# Match the default CI checks
black --check --diff --line-length=88 .
isort --check-only --diff --profile=black --line-length=88 .
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
mypy rezen/ --strict --ignore-missing-imports

Build Documentation

# Serve documentation locally
mkdocs serve

# Build documentation with the same strictness used for contributor checks
mkdocs build --strict

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for workflow details and the repository STYLE_GUIDE.md for code conventions.

Quick Contribution Steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes with tests
  4. Run the test suite (pytest)
  5. Submit a pull request

📄 License

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

🆘 Support

Get Help

Status & Monitoring


Ready to build powerful real estate applications? Get Started →

Built with ❤️ by The Perry Group

Metadata

Release files for rezen 2.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rezen 2.3.1
File Size Uploaded Provenance Actions
rezen-2.3.1.tar.gz 178.1 kB With provenance Details for rezen-2.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rezen 2.3.1
File Interpreter ABI Platform Actions
rezen-2.3.1-py3-none-any.whl Python 3 none any Details for rezen-2.3.1-py3-none-any.whl

Total release size: 262.7 kB

Release files / rezen-2.3.1.tar.gz

Download URL rezen-2.3.1.tar.gz
Size 178.1 kB
Tags Source
SHA-256 checksum
How to use checksums
91525b7de3d4cbbb7af39070f243f56a9972738bd5ef3033b787ca873fffbcaf
BLAKE2b-256 checksum
How to use checksums
c5d9072a6d1ac6502589c7703b0adcfbbf07712ebfa9e68d951c31c3ec37812b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / rezen-2.3.1-py3-none-any.whl

Download URL rezen-2.3.1-py3-none-any.whl
Size 84.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd73a23e748195ef916fb3796c310a1f02520236a800103cff061755ffd8aa78
BLAKE2b-256 checksum
How to use checksums
94fb7b2d387864c3683db1d53b9de55c85fcf2bb84529b9679cb6ac772495a42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Security for rezen 2.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rezen-2.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.3.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page