ReZEN Python Client
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
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"})
📖 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:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes with tests
- Run the test suite (
pytest) - Submit a pull request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🆘 Support
Get Help
- 📖 Documentation: theperrygroup.github.io/rezen
- 💬 GitHub Issues: Report bugs or request features
- 📧 Email: support@rezen.com
- 🌐 Website: rezen.com
Status & Monitoring
- 🔍 API Status: status.rezen.com
- 📦 PyPI Package: pypi.org/project/rezen
Ready to build powerful real estate applications? Get Started →
Built with ❤️ by The Perry Group
Metadata
Release files for rezen 2.2.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rezen-2.2.16.tar.gz | 174.1 kB | With provenance | Details for rezen-2.2.16.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rezen-2.2.16-py3-none-any.whl | Python 3 | none | any | Details for rezen-2.2.16-py3-none-any.whl |
Total release size: 256.9 kB
Release files / rezen-2.2.16.tar.gz
| Download URL | rezen-2.2.16.tar.gz |
|---|---|
| Size | 174.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b7b8293e7d88eae95ce8ce1bf1b4c6a9ecd83d91ff71f25896f33b807a619cf
|
|
BLAKE2b-256 checksum How to use checksums |
2108761f24178cce84f4fde5449ecf71d14f4ba4c3c557b24445df91b1667c5c
|
| 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 Sep 29, 2026.
Transparency logRelease files / rezen-2.2.16-py3-none-any.whl
| Download URL | rezen-2.2.16-py3-none-any.whl |
|---|---|
| Size | 82.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f984d96d1fc7cf32c21221899d96c8d14b316cb29f3891c882f05cd6d418f3a
|
|
BLAKE2b-256 checksum How to use checksums |
99afd49af729afd5da98d3858057fd6fc386cb73b40b0f0e0cb1473ec99b16ad
|
| 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 Sep 29, 2026.
Transparency logSecurity for rezen 2.2.16
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.
Attestation for rezen-2.2.16.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 Sep 29, 2026.
Transparency logA 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.