PyReverseETL 3.5.2__tar.gz → 3.5.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/Cargo.lock +2 -2
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/Cargo.toml +1 -1
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/PKG-INFO +48 -11
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/README.md +47 -10
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/adapters/mod.rs +6 -0
- pyreverseetl-3.5.3/core/src/adapters/squid.rs +639 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/destination.rs +3 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/executor.rs +94 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/pyproject.toml +1 -1
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/python/pyreverseetl/cli.py +7 -7
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/python/pyreverseetl/secure_state.py +9 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/python/pyreverseetl/server.py +1 -1
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/python/src/lib.rs +6 -1
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/LICENSE +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/Cargo.toml +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/benches/load_test.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/bin/pyreverseetl_dashboard.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/activation.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/adapters/alert_compat.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/adapters/error.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/adapters/http_client.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/adapters/hubspot.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/adapters/mapping.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/adapters/marketo.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/adapters/oauth_manager.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/adapters/retry_policy.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/adapters/salesforce.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/adapters/schema_detect.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/adapters/webhook.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/cdc/change_detector.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/cdc/changelog.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/cdc/checkpoint.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/cdc/mod.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/connectors/config.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/connectors/connectors_db.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/connectors/database_advanced.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/connectors/destination.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/connectors/error.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/connectors/hdfs.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/connectors/mod.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/connectors/mysql.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/connectors/object_storage.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/connectors/postgres.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/connectors/rate_limiting.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/connectors/registry.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/connectors/saas.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/connectors/source.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/connectors/web.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/dlq.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/entity.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/error.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/governance/cached_gate.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/governance/compliance_rules.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/governance/credentials.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/governance/mod.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/governance/quality_gate.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/governance/retry_policy.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/governance/schema_evolution.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/governance/statguardian_client.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/idempotency.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/lib.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/lineage.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/observability/dashboard_launcher.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/observability/logs.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/observability/metrics.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/observability/metrics_server.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/observability/mod.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/observability/traces.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/pipeline/activation_pipeline.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/pipeline/backpressure.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/pipeline/latency_tracker.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/pipeline/mod.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/sources/kafka.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/sources/mod.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/sources/polling.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/sources/sync_config.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/statguardian.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/storage/mod.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/storage/repository.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/storage/schema.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/streaming/event_processor.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/streaming/event_schema.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/streaming/mod.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/streampdf.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/streamxl.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/sync.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/testing/connector_test.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/testing/harness.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/testing/metrics.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/testing/mock_http.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/testing/mod.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/testing/test_data.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/transformers/mod.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/transformers/spark.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/core/src/workflow.rs +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/python/Cargo.toml +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/python/pyreverseetl/__init__.py +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/python/pyreverseetl/connectors.py +0 -0
- {pyreverseetl-3.5.2 → pyreverseetl-3.5.3}/python/pyreverseetl/singer.py +0 -0
|
@@ -3199,7 +3199,7 @@ dependencies = [
|
|
|
3199
3199
|
|
|
3200
3200
|
[[package]]
|
|
3201
3201
|
name = "pyreverseetl"
|
|
3202
|
-
version = "3.5.
|
|
3202
|
+
version = "3.5.3"
|
|
3203
3203
|
dependencies = [
|
|
3204
3204
|
"chrono",
|
|
3205
3205
|
"pyo3",
|
|
@@ -3210,7 +3210,7 @@ dependencies = [
|
|
|
3210
3210
|
|
|
3211
3211
|
[[package]]
|
|
3212
3212
|
name = "pyreverseetl-core"
|
|
3213
|
-
version = "3.5.
|
|
3213
|
+
version = "3.5.3"
|
|
3214
3214
|
dependencies = [
|
|
3215
3215
|
"async-trait",
|
|
3216
3216
|
"aws-config",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyReverseETL
|
|
3
|
-
Version: 3.5.
|
|
3
|
+
Version: 3.5.3
|
|
4
4
|
Classifier: Development Status :: 4 - Beta
|
|
5
5
|
Classifier: Intended Audience :: Developers
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -53,7 +53,7 @@ offered as an option and not silently faked.
|
|
|
53
53
|
(MinIO) as source and destination; generic-schema read/write, incremental reads, upsert.
|
|
54
54
|
- **Real HTTP destinations.** Webhook destination with real auth (Bearer / API key /
|
|
55
55
|
Basic) and JSON payload construction; CRM/marketing-automation REST adapters for
|
|
56
|
-
Salesforce, HubSpot, and
|
|
56
|
+
Salesforce, HubSpot, Marketo, and Squid-CRM.
|
|
57
57
|
- **Connector plugin SDK (Python path).** A documented `pyreverseetl.connectors`
|
|
58
58
|
entry-point group plus real local SQLite and optional DuckDB source/destination
|
|
59
59
|
connectors, and an optional Postgres `psycopg` skeleton (`run_with_connector`).
|
|
@@ -95,10 +95,11 @@ offered as an option and not silently faked.
|
|
|
95
95
|
`--validation-report` gate. The Rust `run_sync` core itself does not call
|
|
96
96
|
StatGuardian. A real cross-repo test lives in
|
|
97
97
|
`tests/test_statguardian_live.py` (skipped when StatGuardian is not installed).
|
|
98
|
-
- **Not verified against live CRM accounts.** The Salesforce/HubSpot/Marketo
|
|
99
|
-
real REST clients, but they were verified against local mock HTTP servers
|
|
100
|
-
the exact request shape (no live account was available). Please report
|
|
101
|
-
mismatches against a real account as issues.
|
|
98
|
+
- **Not verified against live CRM accounts.** The Salesforce/HubSpot/Marketo/Squid
|
|
99
|
+
adapters are real REST clients, but they were verified against local mock HTTP servers
|
|
100
|
+
that assert the exact request shape (no live account was available). Please report
|
|
101
|
+
request-shape mismatches against a real account as issues. The Squid standard-object
|
|
102
|
+
path is create-only; it does not update an existing person/company record.
|
|
102
103
|
- **Not encryption.** `Encrypt` compliance actions are reported as unresolved rather than
|
|
103
104
|
silently claimed to succeed.
|
|
104
105
|
|
|
@@ -116,6 +117,7 @@ offered as an option and not silently faked.
|
|
|
116
117
|
| CRM (`core/src/adapters/salesforce.rs`) | destination | Real REST API client: OAuth2 token exchange, object-based create/upsert-by-external-ID/delete/describe. Verified against a local mock HTTP server. |
|
|
117
118
|
| CRM (`core/src/adapters/hubspot.rs`) | destination | Real v3-style REST API client (create, upsert-by-ID-property, delete, properties/schema). Verified against a mock server. |
|
|
118
119
|
| Marketing automation (`core/src/adapters/marketo.rs`) | destination | Real REST API client (identity token endpoint, bulk lead create/update, delete, describe). Verified against a mock server. |
|
|
120
|
+
| CRM (`core/src/adapters/squid.rs`) | destination | Real Squid-CRM REST create for people/companies with a stable per-record `Idempotency-Key` and `X-Correlation-Id`; response replay, body-hash conflict handling, Bearer auth, and allowlisted payloads. Verified against a mock server. Standard-object creates do not update existing records. |
|
|
119
121
|
| Other cloud object storage backends | source + destination | **Not implemented.** Returns an explicit error instead of a fake success. |
|
|
120
122
|
| StatGuardian gate | pre-sync gate | Wired in the CLI `execute-activation` path (`--statguardian-url` live `/validate`, or `--validation-report`); not in the Rust `run_sync` core. |
|
|
121
123
|
| Kafka, HDFS, Spark/PySpark transforms, CLI dashboard | — | Present from earlier work, out of scope for this pass, not wired into `execute`/`run_sync`. Treat as experimental. |
|
|
@@ -127,7 +129,7 @@ repeated here to avoid implying vendor endorsement.
|
|
|
127
129
|
|
|
128
130
|
## Project status
|
|
129
131
|
|
|
130
|
-
**Beta.** Version 3.5.
|
|
132
|
+
**Beta.** Version 3.5.3. The Postgres/MySQL/S3/webhook paths are real and verified against
|
|
131
133
|
real services; the `web` source connector (MudFish-backed site crawling) is implemented
|
|
132
134
|
and unit-tested but not yet exercised end-to-end against a live site; the CRM/marketing
|
|
133
135
|
adapters are real but mock-verified only; several
|
|
@@ -364,11 +366,46 @@ print(pyreverseetl.lineage_json())
|
|
|
364
366
|
print(pyreverseetl.lineage_dot()) # Graphviz DOT export
|
|
365
367
|
```
|
|
366
368
|
|
|
369
|
+
### Squid-CRM activation
|
|
370
|
+
|
|
371
|
+
The `squid` destination posts a real create to `/rest/people` or
|
|
372
|
+
`/rest/companies` with a stable per-record `Idempotency-Key`. Reusing the
|
|
373
|
+
same source record and payload after a transient failure replays Squid's
|
|
374
|
+
stored response instead of creating a duplicate; reusing the key with a
|
|
375
|
+
different body returns a non-retried conflict.
|
|
376
|
+
|
|
377
|
+
```python
|
|
378
|
+
import json
|
|
379
|
+
import pyreverseetl
|
|
380
|
+
|
|
381
|
+
result = pyreverseetl.run_sync(
|
|
382
|
+
source_type="postgres",
|
|
383
|
+
source_config=json.dumps({
|
|
384
|
+
"host": "localhost", "port": 5432, "database": "warehouse",
|
|
385
|
+
"username": "postgres", "password": "postgres", "table": "customers",
|
|
386
|
+
}),
|
|
387
|
+
destination_type="squid",
|
|
388
|
+
destination_config=json.dumps({
|
|
389
|
+
"base_url": "http://localhost:3000",
|
|
390
|
+
"object": "people",
|
|
391
|
+
"idempotency_key_prefix": "warehouse-people",
|
|
392
|
+
"auth": {"type": "bearer", "token": "squid-api-key"},
|
|
393
|
+
}),
|
|
394
|
+
)
|
|
395
|
+
print(result.rows_written, result.rows_failed)
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
The field allowlist is intentionally small: people forward `first_name`,
|
|
399
|
+
`last_name`, `email`, `phone`, `job_title`, and `company_id`; companies
|
|
400
|
+
forward `name` and `domain`. Other source columns are not sent. Standard
|
|
401
|
+
Squid object creates are create-only, so a changed source record needs an
|
|
402
|
+
explicit update workflow rather than being silently re-created.
|
|
403
|
+
|
|
367
404
|
### Reliability features
|
|
368
405
|
|
|
369
|
-
- **Retry with backoff**: every HubSpot/Salesforce/Marketo/webhook HTTP call
|
|
370
|
-
|
|
371
|
-
|
|
406
|
+
- **Retry with backoff**: every HubSpot/Salesforce/Marketo/Squid/webhook HTTP call
|
|
407
|
+
retries transient failures (connection errors, timeouts, 429 rate limits) with
|
|
408
|
+
exponential backoff. Squid retries reuse the same `Idempotency-Key`.
|
|
372
409
|
- **Dry run** (`--dry-run` / `dry_run=True`): reads from the real source and runs the real
|
|
373
410
|
compliance engine, but never writes to the destination. `dry_run_preview` shows the exact
|
|
374
411
|
payload each record would have sent.
|
|
@@ -444,7 +481,7 @@ gate, not a full-table scan.
|
|
|
444
481
|
## Known issues and deferred work
|
|
445
482
|
|
|
446
483
|
**Blocked / failed:**
|
|
447
|
-
- Live Salesforce/HubSpot/Marketo verification (no accounts).
|
|
484
|
+
- Live Salesforce/HubSpot/Marketo/Squid verification (no accounts).
|
|
448
485
|
- Scheduler/run-history observability.
|
|
449
486
|
- CDC/streaming.
|
|
450
487
|
|
|
@@ -23,7 +23,7 @@ offered as an option and not silently faked.
|
|
|
23
23
|
(MinIO) as source and destination; generic-schema read/write, incremental reads, upsert.
|
|
24
24
|
- **Real HTTP destinations.** Webhook destination with real auth (Bearer / API key /
|
|
25
25
|
Basic) and JSON payload construction; CRM/marketing-automation REST adapters for
|
|
26
|
-
Salesforce, HubSpot, and
|
|
26
|
+
Salesforce, HubSpot, Marketo, and Squid-CRM.
|
|
27
27
|
- **Connector plugin SDK (Python path).** A documented `pyreverseetl.connectors`
|
|
28
28
|
entry-point group plus real local SQLite and optional DuckDB source/destination
|
|
29
29
|
connectors, and an optional Postgres `psycopg` skeleton (`run_with_connector`).
|
|
@@ -65,10 +65,11 @@ offered as an option and not silently faked.
|
|
|
65
65
|
`--validation-report` gate. The Rust `run_sync` core itself does not call
|
|
66
66
|
StatGuardian. A real cross-repo test lives in
|
|
67
67
|
`tests/test_statguardian_live.py` (skipped when StatGuardian is not installed).
|
|
68
|
-
- **Not verified against live CRM accounts.** The Salesforce/HubSpot/Marketo
|
|
69
|
-
real REST clients, but they were verified against local mock HTTP servers
|
|
70
|
-
the exact request shape (no live account was available). Please report
|
|
71
|
-
mismatches against a real account as issues.
|
|
68
|
+
- **Not verified against live CRM accounts.** The Salesforce/HubSpot/Marketo/Squid
|
|
69
|
+
adapters are real REST clients, but they were verified against local mock HTTP servers
|
|
70
|
+
that assert the exact request shape (no live account was available). Please report
|
|
71
|
+
request-shape mismatches against a real account as issues. The Squid standard-object
|
|
72
|
+
path is create-only; it does not update an existing person/company record.
|
|
72
73
|
- **Not encryption.** `Encrypt` compliance actions are reported as unresolved rather than
|
|
73
74
|
silently claimed to succeed.
|
|
74
75
|
|
|
@@ -86,6 +87,7 @@ offered as an option and not silently faked.
|
|
|
86
87
|
| CRM (`core/src/adapters/salesforce.rs`) | destination | Real REST API client: OAuth2 token exchange, object-based create/upsert-by-external-ID/delete/describe. Verified against a local mock HTTP server. |
|
|
87
88
|
| CRM (`core/src/adapters/hubspot.rs`) | destination | Real v3-style REST API client (create, upsert-by-ID-property, delete, properties/schema). Verified against a mock server. |
|
|
88
89
|
| Marketing automation (`core/src/adapters/marketo.rs`) | destination | Real REST API client (identity token endpoint, bulk lead create/update, delete, describe). Verified against a mock server. |
|
|
90
|
+
| CRM (`core/src/adapters/squid.rs`) | destination | Real Squid-CRM REST create for people/companies with a stable per-record `Idempotency-Key` and `X-Correlation-Id`; response replay, body-hash conflict handling, Bearer auth, and allowlisted payloads. Verified against a mock server. Standard-object creates do not update existing records. |
|
|
89
91
|
| Other cloud object storage backends | source + destination | **Not implemented.** Returns an explicit error instead of a fake success. |
|
|
90
92
|
| StatGuardian gate | pre-sync gate | Wired in the CLI `execute-activation` path (`--statguardian-url` live `/validate`, or `--validation-report`); not in the Rust `run_sync` core. |
|
|
91
93
|
| Kafka, HDFS, Spark/PySpark transforms, CLI dashboard | — | Present from earlier work, out of scope for this pass, not wired into `execute`/`run_sync`. Treat as experimental. |
|
|
@@ -97,7 +99,7 @@ repeated here to avoid implying vendor endorsement.
|
|
|
97
99
|
|
|
98
100
|
## Project status
|
|
99
101
|
|
|
100
|
-
**Beta.** Version 3.5.
|
|
102
|
+
**Beta.** Version 3.5.3. The Postgres/MySQL/S3/webhook paths are real and verified against
|
|
101
103
|
real services; the `web` source connector (MudFish-backed site crawling) is implemented
|
|
102
104
|
and unit-tested but not yet exercised end-to-end against a live site; the CRM/marketing
|
|
103
105
|
adapters are real but mock-verified only; several
|
|
@@ -334,11 +336,46 @@ print(pyreverseetl.lineage_json())
|
|
|
334
336
|
print(pyreverseetl.lineage_dot()) # Graphviz DOT export
|
|
335
337
|
```
|
|
336
338
|
|
|
339
|
+
### Squid-CRM activation
|
|
340
|
+
|
|
341
|
+
The `squid` destination posts a real create to `/rest/people` or
|
|
342
|
+
`/rest/companies` with a stable per-record `Idempotency-Key`. Reusing the
|
|
343
|
+
same source record and payload after a transient failure replays Squid's
|
|
344
|
+
stored response instead of creating a duplicate; reusing the key with a
|
|
345
|
+
different body returns a non-retried conflict.
|
|
346
|
+
|
|
347
|
+
```python
|
|
348
|
+
import json
|
|
349
|
+
import pyreverseetl
|
|
350
|
+
|
|
351
|
+
result = pyreverseetl.run_sync(
|
|
352
|
+
source_type="postgres",
|
|
353
|
+
source_config=json.dumps({
|
|
354
|
+
"host": "localhost", "port": 5432, "database": "warehouse",
|
|
355
|
+
"username": "postgres", "password": "postgres", "table": "customers",
|
|
356
|
+
}),
|
|
357
|
+
destination_type="squid",
|
|
358
|
+
destination_config=json.dumps({
|
|
359
|
+
"base_url": "http://localhost:3000",
|
|
360
|
+
"object": "people",
|
|
361
|
+
"idempotency_key_prefix": "warehouse-people",
|
|
362
|
+
"auth": {"type": "bearer", "token": "squid-api-key"},
|
|
363
|
+
}),
|
|
364
|
+
)
|
|
365
|
+
print(result.rows_written, result.rows_failed)
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
The field allowlist is intentionally small: people forward `first_name`,
|
|
369
|
+
`last_name`, `email`, `phone`, `job_title`, and `company_id`; companies
|
|
370
|
+
forward `name` and `domain`. Other source columns are not sent. Standard
|
|
371
|
+
Squid object creates are create-only, so a changed source record needs an
|
|
372
|
+
explicit update workflow rather than being silently re-created.
|
|
373
|
+
|
|
337
374
|
### Reliability features
|
|
338
375
|
|
|
339
|
-
- **Retry with backoff**: every HubSpot/Salesforce/Marketo/webhook HTTP call
|
|
340
|
-
|
|
341
|
-
|
|
376
|
+
- **Retry with backoff**: every HubSpot/Salesforce/Marketo/Squid/webhook HTTP call
|
|
377
|
+
retries transient failures (connection errors, timeouts, 429 rate limits) with
|
|
378
|
+
exponential backoff. Squid retries reuse the same `Idempotency-Key`.
|
|
342
379
|
- **Dry run** (`--dry-run` / `dry_run=True`): reads from the real source and runs the real
|
|
343
380
|
compliance engine, but never writes to the destination. `dry_run_preview` shows the exact
|
|
344
381
|
payload each record would have sent.
|
|
@@ -414,7 +451,7 @@ gate, not a full-table scan.
|
|
|
414
451
|
## Known issues and deferred work
|
|
415
452
|
|
|
416
453
|
**Blocked / failed:**
|
|
417
|
-
- Live Salesforce/HubSpot/Marketo verification (no accounts).
|
|
454
|
+
- Live Salesforce/HubSpot/Marketo/Squid verification (no accounts).
|
|
418
455
|
- Scheduler/run-history observability.
|
|
419
456
|
- CDC/streaming.
|
|
420
457
|
|
|
@@ -12,11 +12,13 @@ pub mod oauth_manager;
|
|
|
12
12
|
pub mod retry_policy;
|
|
13
13
|
pub mod salesforce;
|
|
14
14
|
pub mod schema_detect;
|
|
15
|
+
pub mod squid;
|
|
15
16
|
pub mod webhook;
|
|
16
17
|
|
|
17
18
|
pub use error::AdapterError;
|
|
18
19
|
pub use http_client::HttpClient;
|
|
19
20
|
pub use retry_policy::RetryPolicy;
|
|
21
|
+
pub use squid::SquidAdapter;
|
|
20
22
|
|
|
21
23
|
/// Field transformation operations
|
|
22
24
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
|
@@ -178,6 +180,10 @@ impl AdapterFactory {
|
|
|
178
180
|
let adapter = marketo::MarketoAdapter::new(config, auth.clone())?;
|
|
179
181
|
Ok(Box::new(adapter))
|
|
180
182
|
}
|
|
183
|
+
"squid" => {
|
|
184
|
+
let adapter = squid::SquidAdapter::new(config, auth.clone())?;
|
|
185
|
+
Ok(Box::new(adapter))
|
|
186
|
+
}
|
|
181
187
|
_ => Err(AdapterError::UnsupportedDestination(
|
|
182
188
|
destination_type.to_string(),
|
|
183
189
|
)),
|