PyReverseETL
Move your data automatically to where it's needed.
PyReverseETL automatically syncs quality-validated data from source systems to destinations with full audit trail, lineage tracking, and compliance records.
Architectural Role: Owns data activation and movement. Only moves data that has passed quality validation. Maintains audit trail and compliance for every activation.
Simple as 1-2-3
- Describe - Create a simple text file describing what you want to sync
- Configure - Set when, how often, and any special rules (skip weekends, business hours, etc.)
- Run - Start it up. Data syncs automatically on schedule.
That's it. No complex setup. No manual work.
What Problems Does It Solve?
- Data goes stale in your systems - PyReverseETL keeps it current
- Manual data syncs are error-prone - PyReverseETL does it automatically
- Multiple systems can't talk to each other - PyReverseETL connects them
- Syncing on a schedule is complicated - PyReverseETL handles it simply
Core Capabilities
Data Sources (NEW in v2.0)
- Event Streams — Real-time data from event streaming platforms
- Database Change Capture — Real-time changes from databases (PostgreSQL, MySQL, MongoDB)
- API Polling — REST endpoint polling and webhook receivers
- Scheduled Polling — Configurable intervals (5min to 24hours)
- Change Detection — Automatic detection of data changes
- Source Metadata — Preserve source context and lineage
Data Transformations (NEW in v2.0)
- Distributed Processing — Large-scale data transformations
- Multi-Stage Pipelines — Chain transformations with error handling
- Intermediate Staging — Temporary storage between processing stages
- Cost Optimization — Filter data early in pipeline
- Data Preparation — ML-ready feature preparation
- Cluster Support — Local, YARN, Kubernetes deployment
Synchronization Engine
- Batch Sync — Scheduled synchronization
- Incremental Sync — Change-based synchronization
- CDC Sync — Database change streams
- Streaming Sync — Kafka, Pulsar, Redpanda
- Event-Driven Sync — Trigger on business events
- Hybrid Sync — Combine scheduling with events
Destination Ecosystem
- CRM — Salesforce, HubSpot, Dynamics
- Marketing — Braze, Iterable, Customer.io, Mailchimp, Klaviyo
- Advertising — Meta Ads, Google Ads, LinkedIn Ads, Amazon Ads, TikTok Ads
- Support — Zendesk, Freshdesk, Intercom
- Analytics — Mixpanel, Amplitude, PostHog
- Data Platforms — Kafka, Pulsar, Redpanda
- Custom — Webhooks, custom connectors
Activation Objects
- Entities — Customer, Account, Company, Lead, Subscription, Order, Product
- Traits — Dynamic attributes (LTV, Churn Risk, Lead Score, etc.)
- Audiences — Segmented groups (VIP Customers, Churn Risk, etc.)
- Metrics — Business measurements (MRR, ARR, NPS, etc.)
- Events — Business events (Subscription Renewed, Payment Failed, etc.)
Monitoring & Observability (NEW in v2.1)
- Real-Time Dashboard — CLI stats dashboard with live metrics
- Throughput Monitoring — Events per second tracking
- Latency Metrics — Average and P99 latency measurements
- Quality Gates — Quality check pass/fail monitoring
- Error Tracking — Comprehensive error aggregation
- Platform Support — macOS (Terminal.app) and Linux (terminator/xterm)
Architecture
Rust Core
- Sync runtime
- Scheduling engine
- State management
- Connector runtime
- Telemetry
Python Layer
- SDK and bindings
- Custom extensions
- AI integrations
- Developer experience
Persistence
- SQLite (v1.5 - lightweight, no setup required)
- PostgreSQL (v2.0+)
- DuckDB (v2.0+)
Getting Started
Installation
pip install pyreverseetl
Quick Example
from pyreverseetl import Workflow, Destination, Activation
# Define a workflow
workflow = Workflow.from_table(
name="LTV to CRM",
table="customers",
owner="data_team"
)
# Add field mappings
workflow.add_mapping("customer_id", "customerId")
workflow.add_mapping("lifetime_value", "customerLTV")
workflow.add_mapping("segment", "segment")
# Define destination
salesforce = Destination.salesforce(
name="Production Salesforce",
instance_url="https://yourinstance.salesforce.com",
api_version="v60.0"
)
# Create activation
activation = Activation(
name="Daily LTV Sync",
workflow=workflow,
destination=salesforce
)
# Schedule
activation.schedule_daily(hour=2, minute=0)
# Execute
run = activation.execute()
print(f"Synced {run.rows_processed} records")
Kafka Event Source with Polling
from pyreverseetl import KafkaSource, KafkaConfig, SyncFrequency
# Configure Kafka source
kafka_config = KafkaConfig(
brokers="localhost:9092",
topic="customer-events",
group_id="pyreverseetl-consumer"
)
# Create source with hourly polling
source = KafkaSource(kafka_config)
source.set_sync_frequency(SyncFrequency.Hourly)
# Connect and poll for events
source.connect()
while True:
event = source.next_event()
if event:
print(f"Received: {event.entity_id} from {event.source}")
PySpark Data Transformation Pipeline
from pyreverseetl import (
SparkTransformer, SparkConfig, TransformationPipeline, TransformationStage
)
# Define transformation stages
normalize_stage = TransformationStage(
name="normalize",
config=SparkConfig(
script="/path/to/normalize.py",
input_topic="raw-events",
output_topic="normalized-events"
),
retry_count=3,
skip_on_error=False
)
enrich_stage = TransformationStage(
name="enrich",
config=SparkConfig(
script="/path/to/enrich.py",
input_topic="normalized-events",
output_topic="enriched-events"
),
retry_count=2,
skip_on_error=False
)
# Create pipeline
pipeline = TransformationPipeline()\
.add_stage(normalize_stage)\
.add_stage(enrich_stage)
# Execute pipeline
for stage in pipeline.stages:
transformer = SparkTransformer(stage.config)
result = transformer.execute()
print(f"{stage.name}: {result.records_output} records output")
Core Concepts
Workflows
Define data sources and how to extract them:
- Table extraction
- Model extraction
- SQL queries
- Audience definitions
- Event streams
Activations
Connect workflows to destinations with policies:
- Field mappings
- Transformations
- Validation gates
- Error handling
- Scheduling
Sync Runs
Track execution:
- Status (Pending Running Success/Failed)
- Row counts
- Error details
- Timing information
Ecosystem
PyReverseETL is part of a larger platform:
- StatGuardian — Data quality and contracts (ensures data is trustworthy)
- ClusterAudienceKit — Customer segmentation (identifies who matters)
- PyStreamMCP — Query optimization & context discovery (60-75% cost reduction)
- PyReverseETL — Data activation (operationalizes intelligence)
- PyCustomerJourney — Customer engagement (drives outcomes)
Integration with PyStreamMCP
PyReverseETL integrates with PyStreamMCP for intelligent context retrieval:
from pyreverseetl import Activation
from pystreammcp import Agent, Discovery
# Use PyStreamMCP to optimize context discovery
discovery = Discovery.new(query_id="activation_1")
sources = discovery.discover_sources() # Find optimal data
optimized = discovery.optimize_for_cost() # Reduce volume
# Activate with optimized context
activation = Activation(
name="Smart LTV Sync",
query=optimized, # Use PyStreamMCP's optimized query
destination="salesforce"
)
Do NOT rebuild query optimization in PyReverseETL. PyStreamMCP provides:
- Query planning and optimization (60-75% token reduction)
- Intelligent source discovery
- Cost estimation
- Progressive streaming retrieval
- Multi-step query decomposition
See ARCHITECTURE.md for details.
Observability & Open-Source Stack
PyReverseETL includes full OpenTelemetry integration for observability. Works with any open-source monitoring backend:
- Metrics: Prometheus, OpenMetrics
- Traces: Jaeger, Tempo
- Logs: Loki, OpenSearch
- Dashboards: Grafana, custom tools
- Alerts: Alert Manager, native backend support
See OSS_ALTERNATIVES.md for complete open-source stack recommendations and setup guides.
Roadmap
Phase 1: Core Foundation (v1.0.0)
- Core data model (Workflow, Activation, Destination, Entity)
- SQLite persistence with CRUD repositories
- Builder patterns for ergonomic API
- 59 tests passing
Phase 2: Destination Ecosystem (v1.1.0)
- 4 Production adapters (Webhook, Salesforce, HubSpot, Marketo)
- YAML-based field mapping configuration
- Automatic schema detection with type inference
- OpenTelemetry-compatible alert message structures
- 48 tests passing
Phase 3 Week 1: Resilience & HTTP (v1.1.5)
- Exponential backoff retry logic
- Production HTTP client with connection pooling
- OAuth token manager with automatic refresh
- 24 tests passing
Phase 3 Weeks 3-4: Real-Time Activation (v1.5.0)
- Change Data Capture (CDC) engine with changelog persistence
- Real-time activation pipeline with latency tracking
- Backpressure management and checkpoint recovery
- 36 new tests (178 total)
Phase 4: Event Sources & Transformations (v2.0.0 v2.0.1)
- Event Sources: Kafka connector with SSL/SASL support
- Sync Frequency: Configurable polling (5min-24hours) with timezone support
- Change Detection: Track changes at preset intervals
- PySpark Transformations: Multi-stage processing pipelines (optional)
- Intermediate Staging: Kafka topics between transformation stages
- YAML Configuration: Load/save configurations from YAML files
- Separate Source/Destination Polling: Different schedules per system
- Transformation Error Handling: Dead letter topics, retries, caching
- Detailed Status Messages: Congratulatory success + actionable error messages
- Timezone Support: IANA timezone database (400+ timezones)
- Day-of-Week & Blackout Filtering: Skip syncs on specific days/dates
- Fault Tolerance & Caching: Result caching for reliability
- Auto-Scaling: Kafka (by lag/throughput) & PySpark (by size/latency)
- 50+ new tests (265+ total passing)
Platform Philosophy
PyReverseETL should be:
- Rust-powered — Performance and reliability
- Python-extensible — Ecosystem and integration
- OpenTelemetry-native — Observability from day one
- Deployment-agnostic — Laptop to Kubernetes
- Warehouse-native — Snowflake, BigQuery, Databricks, DuckDB, Postgres
- Event-aware — React to business events
- AI-assisted — Learn from historical patterns
- Lineage-aware — Track data flow and impact
- Production-ready — Multi-tenant, secure, scalable
while remaining simple enough for data teams to adopt.
Development
Building
# Build Rust core
cargo build -p pyreverseetl-core
# Build Python bindings
maturin develop
# Run tests
cargo test
pytest tests/
Contributing
See CONTRIBUTING.md for guidelines.
License
Proprietary License. See LICENSE for details. All rights reserved.
Support
- GitHub Issues: PyReverseETL/issues
- Discussions: PyReverseETL/discussions
PyReverseETL: Operationalize Your Data Intelligence
Metadata
Release files for PyReverseETL 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyreverseetl-2.1.1-cp313-cp313-macosx_11_0_arm64.whl | CPython 3.13 | CPython 3.13 | macOS 11.0+ ARM64 | Details for pyreverseetl-2.1.1-cp313-cp313-macosx_11_0_arm64.whl |
Release files / pyreverseetl-2.1.1-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | pyreverseetl-2.1.1-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 270.2 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
31467c3ebeb4ef0d8c5bd000285f19cd7f58ae59a61e0e40ed75c06762fcf100
|
|
BLAKE2b-256 checksum How to use checksums |
296d6c31f65ded4458bde633c7de9fe95a9a7388a9855809935a3de3fa70c1ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for PyReverseETL 2.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.