ectype-data 0.1.0__py3-none-any.whl

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.
Files changed (115) hide show
  1. ectype/__init__.py +134 -0
  2. ectype/_version.py +5 -0
  3. ectype/authoring/__init__.py +13 -0
  4. ectype/authoring/builder.py +134 -0
  5. ectype/authoring/spec.py +555 -0
  6. ectype/calibration/__init__.py +26 -0
  7. ectype/calibration/adjustments.py +539 -0
  8. ectype/calibration/calibrator.py +781 -0
  9. ectype/cli.py +1181 -0
  10. ectype/compiler/__init__.py +1 -0
  11. ectype/compiler/plan.py +678 -0
  12. ectype/errors.py +43 -0
  13. ectype/fingerprint/__init__.py +1 -0
  14. ectype/fingerprint/comparison.py +746 -0
  15. ectype/fingerprint/container.py +408 -0
  16. ectype/fingerprint/core.py +263 -0
  17. ectype/fingerprint/disclosure.py +207 -0
  18. ectype/fingerprint/expressions.py +1317 -0
  19. ectype/fingerprint/schema.py +645 -0
  20. ectype/fingerprint/targets.py +352 -0
  21. ectype/generation/__init__.py +1 -0
  22. ectype/generation/enforce.py +163 -0
  23. ectype/generation/generator.py +525 -0
  24. ectype/generation/identifiers.py +235 -0
  25. ectype/generation/manifest.py +71 -0
  26. ectype/generation/parallel.py +229 -0
  27. ectype/io/__init__.py +16 -0
  28. ectype/io/adapters.py +224 -0
  29. ectype/io/sql.py +289 -0
  30. ectype/io/values.py +269 -0
  31. ectype/llm/__init__.py +27 -0
  32. ectype/llm/authoring.py +766 -0
  33. ectype/llm/providers.py +269 -0
  34. ectype/models/__init__.py +8 -0
  35. ectype/models/base.py +120 -0
  36. ectype/models/chain.py +2426 -0
  37. ectype/models/copulas.py +254 -0
  38. ectype/models/encoding.py +1117 -0
  39. ectype/models/forest.py +1087 -0
  40. ectype/models/marginals.py +2099 -0
  41. ectype/models/mixtures.py +336 -0
  42. ectype/models/neural/__init__.py +21 -0
  43. ectype/models/neural/adapter.py +638 -0
  44. ectype/models/neural/vae.py +432 -0
  45. ectype/models/vines.py +608 -0
  46. ectype/plugins.py +40 -0
  47. ectype/privacy/__init__.py +49 -0
  48. ectype/privacy/attacks.py +599 -0
  49. ectype/privacy/dp.py +313 -0
  50. ectype/privacy/report.py +364 -0
  51. ectype/profiler.py +783 -0
  52. ectype/profiling/__init__.py +1 -0
  53. ectype/profiling/bivariate.py +130 -0
  54. ectype/profiling/calendar.py +743 -0
  55. ectype/profiling/conditional.py +263 -0
  56. ectype/profiling/constraints.py +661 -0
  57. ectype/profiling/entity.py +1143 -0
  58. ectype/profiling/functional.py +651 -0
  59. ectype/profiling/multivariate.py +492 -0
  60. ectype/profiling/personal.py +277 -0
  61. ectype/profiling/pseudonym.py +370 -0
  62. ectype/profiling/reference.py +334 -0
  63. ectype/profiling/sketches.py +653 -0
  64. ectype/profiling/structural.py +1087 -0
  65. ectype/profiling/structure.py +1733 -0
  66. ectype/profiling/sums.py +1710 -0
  67. ectype/profiling/tolerance.py +435 -0
  68. ectype/profiling/univariate.py +555 -0
  69. ectype/py.typed +0 -0
  70. ectype/registry.py +48 -0
  71. ectype/relational/__init__.py +61 -0
  72. ectype/relational/container.py +212 -0
  73. ectype/relational/fit.py +633 -0
  74. ectype/relational/generate.py +418 -0
  75. ectype/relational/schema.py +280 -0
  76. ectype/relational/validate.py +288 -0
  77. ectype/reporting/__init__.py +439 -0
  78. ectype/reporting/adapter.py +2003 -0
  79. ectype/reporting/charts.py +964 -0
  80. ectype/reporting/drift.py +902 -0
  81. ectype/reporting/findings.py +622 -0
  82. ectype/reporting/fmt.py +429 -0
  83. ectype/reporting/render.py +1705 -0
  84. ectype/reporting/select.py +84 -0
  85. ectype/reporting/style.py +272 -0
  86. ectype/reporting/view.py +593 -0
  87. ectype/rng.py +33 -0
  88. ectype/scenarios/__init__.py +30 -0
  89. ectype/scenarios/feasibility.py +411 -0
  90. ectype/scenarios/merge.py +1392 -0
  91. ectype/scenarios/mutate.py +1613 -0
  92. ectype/temporal/__init__.py +80 -0
  93. ectype/temporal/contract.py +221 -0
  94. ectype/temporal/detect.py +431 -0
  95. ectype/temporal/events.py +946 -0
  96. ectype/temporal/panel.py +937 -0
  97. ectype/temporal/pipeline.py +192 -0
  98. ectype/temporal/regular.py +674 -0
  99. ectype/types.py +46 -0
  100. ectype/validation/__init__.py +1 -0
  101. ectype/validation/metrics/__init__.py +7 -0
  102. ectype/validation/metrics/base.py +68 -0
  103. ectype/validation/metrics/bivariate.py +353 -0
  104. ectype/validation/metrics/missingness.py +54 -0
  105. ectype/validation/metrics/multivariate.py +265 -0
  106. ectype/validation/metrics/temporal.py +596 -0
  107. ectype/validation/metrics/univariate.py +514 -0
  108. ectype/validation/report.py +627 -0
  109. ectype/validation/validator.py +707 -0
  110. ectype_data-0.1.0.dist-info/METADATA +376 -0
  111. ectype_data-0.1.0.dist-info/RECORD +115 -0
  112. ectype_data-0.1.0.dist-info/WHEEL +4 -0
  113. ectype_data-0.1.0.dist-info/entry_points.txt +2 -0
  114. ectype_data-0.1.0.dist-info/licenses/LICENSE +192 -0
  115. ectype_data-0.1.0.dist-info/licenses/NOTICE +5 -0
@@ -0,0 +1,376 @@
1
+ Metadata-Version: 2.5
2
+ Name: ectype-data
3
+ Version: 0.1.0
4
+ Summary: Ectype: learn a statistical fingerprint of a table, generate faithful synthetic data, and prove how faithful it is.
5
+ Project-URL: Homepage, https://github.com/EctypeHQ/ectype
6
+ Project-URL: Documentation, https://github.com/EctypeHQ/ectype/tree/main/docs/guide
7
+ Project-URL: Issues, https://github.com/EctypeHQ/ectype/issues
8
+ Author: ZeroPoint Holdings LLC
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ License-File: NOTICE
12
+ Keywords: copula,data profiling,drift,fingerprint,synthetic data,tabular
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
22
+ Classifier: Typing :: Typed
23
+ Requires-Python: >=3.11
24
+ Requires-Dist: numpy>=1.26
25
+ Requires-Dist: polars>=1.0
26
+ Requires-Dist: pyarrow>=15
27
+ Requires-Dist: pydantic>=2.6
28
+ Requires-Dist: scipy>=1.11
29
+ Provides-Extra: all
30
+ Requires-Dist: anthropic>=0.40; extra == 'all'
31
+ Requires-Dist: duckdb>=1.0; extra == 'all'
32
+ Requires-Dist: pandas>=2.1; extra == 'all'
33
+ Requires-Dist: statsmodels>=0.14; extra == 'all'
34
+ Provides-Extra: llm
35
+ Requires-Dist: anthropic>=0.40; extra == 'llm'
36
+ Provides-Extra: neural
37
+ Requires-Dist: torch>=2.2; extra == 'neural'
38
+ Provides-Extra: pandas
39
+ Requires-Dist: pandas>=2.1; extra == 'pandas'
40
+ Provides-Extra: sql
41
+ Requires-Dist: duckdb>=1.0; extra == 'sql'
42
+ Provides-Extra: temporal
43
+ Requires-Dist: statsmodels>=0.14; extra == 'temporal'
44
+ Description-Content-Type: text/markdown
45
+
46
+ <div align="center">
47
+
48
+ # Ectype
49
+
50
+ **Learn the statistical fingerprint of a table, generate unlimited realistic rows from it, and
51
+ prove how faithful they are.**
52
+
53
+ [![Python](https://img.shields.io/badge/python-3.11%20%7C%203.12%20%7C%203.13-3776AB)](#install)
54
+ [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE)
55
+ [![Status: alpha](https://img.shields.io/badge/status-alpha-orange)](#status)
56
+ [![Local-first](https://img.shields.io/badge/runs-fully%20local-2ea44f)](#why-ectype)
57
+
58
+ [Quickstart](#quickstart) · [Features](#features) · [Uses](#what-people-use-it-for) ·
59
+ [Guide](docs/guide/README.md) ·
60
+ [Format spec](docs/format/README.md)
61
+
62
+ </div>
63
+
64
+ ---
65
+
66
+ *An **ectype** is a faithful reproduction of an original: the counterpart of an archetype.*
67
+
68
+ **Ectype learns a fingerprint of your table**: a small, portable, inspectable file that
69
+ captures how your data behaves. That includes distributions, dependencies, missingness, constraints, time patterns and relationships
70
+ between tables. From the fingerprint you can generate any number of rows, simulate what-if
71
+ scenarios and detect drift, and you never need the original data again.
72
+
73
+ The validator also measures fidelity on held-back targets the generator was never tuned on, so
74
+ the report reflects how well the generator reproduces the data rather than how well the
75
+ optimizer did its job.
76
+
77
+ ```text
78
+ your table ──fit──▶ fingerprint.dfp ──generate──▶ 10 rows … 10 million rows
79
+ │ │
80
+ ├──compare──▶ drift report └──validate──▶ evidence report
81
+ └──mutate / merge──▶ what-if scenarios
82
+ ```
83
+
84
+ ## Quickstart
85
+
86
+ ```bash
87
+ pip install ectype-data
88
+ ```
89
+
90
+ The package is published on PyPI as `ectype-data`. You import it as `ectype`, and the command is `ectype`.
91
+
92
+ ```python
93
+ import polars as pl
94
+ import ectype
95
+
96
+ df = pl.read_csv("customers.csv")
97
+
98
+ fp = ectype.fit(df) # learn the fingerprint, with the defaults
99
+ fp.save("customers.dfp") # a small file of statistics, no raw rows
100
+
101
+ synthetic = ectype.Generator.from_fingerprint("customers.dfp").generate(1_000_000, seed=42)
102
+
103
+ print(ectype.validate(fp, synthetic).summary()) # calibration | sealed | holdout, never merged
104
+ ectype.report(fp).to_html("profile.html") # one page that describes the table
105
+ ```
106
+
107
+ The defaults fit the closest model within a work budget. `ectype.fit(df, effort="fast")` fits
108
+ in the shortest time, and `effort="best"` fits in full however wide the table is.
109
+
110
+ Or with no code at all:
111
+
112
+ ```bash
113
+ ectype profile customers.csv -o customers.dfp
114
+ ectype report customers.dfp -o profile.html # the profile report
115
+ ectype generate customers.dfp --rows 1000000 -o synthetic.parquet
116
+ ectype validate customers.dfp synthetic.parquet --html report.html
117
+ ```
118
+
119
+ The [Quickstart](docs/guide/02-quickstart.md) walks through the same loop on a sample table,
120
+ with every output shown.
121
+
122
+ ## Features
123
+
124
+ <table>
125
+ <tr>
126
+ <td width="50%" valign="top">
127
+
128
+ ### 🧬 A fingerprint, not a black box
129
+ - One portable `.dfp` file: JSON plus NumPy arrays plus checksums.
130
+ - **Loading never executes code.** No pickle and no `eval`; it fails closed on tampering and on
131
+ oversized or malformed archives.
132
+ - Inspect it, diff it and keep it in version control.
133
+ - Read it as a one-page **profile report** (`ectype report`): every column, how columns move
134
+ together and what the policy did, drawn from the fingerprint alone. Give it two fingerprints
135
+ to see what drifted between them.
136
+ - A published JSON Schema, so any language can read it.
137
+
138
+ </td>
139
+ <td width="50%" valign="top">
140
+
141
+ ### 🎯 Honest validation
142
+ - Targets are split into **calibration** (what the optimizer sees) and **sealed**
143
+ (hash-committed evidence it never sees).
144
+ - An optional real **holdout** adds row-level checks, including nonlinear classifier
145
+ two-sample tests.
146
+ - Reports never collapse into one flattering score.
147
+ - A shareable HTML report, plus exit codes for CI.
148
+
149
+ </td>
150
+ </tr>
151
+ <tr>
152
+ <td valign="top">
153
+
154
+ ### 📈 Real statistical modeling
155
+ - Marginals selected by held-out fit (parametric families or policy-limited empirical).
156
+ - Mixed types, nulls and categories modeled jointly, with rank-matched latent correlations
157
+ that stay accurate for tied and discrete data.
158
+ - A **chain model** of sequential conditional trees is the default, for the closest match;
159
+ copula, mixture, vine and forest models are a keyword away, and `joint="auto"` compares
160
+ them by measured fit. `effort="fast" | "balanced" | "best"` if you think in time, not models.
161
+ - **Conditional tables** for category-to-category structure, and an optional neural model for
162
+ shapes a copula can't express.
163
+
164
+ </td>
165
+ <td valign="top">
166
+
167
+ ### 🔒 Privacy by default
168
+ - Every fingerprint is fitted under a **disclosure policy** (`strict`, `standard` or
169
+ `research`). The policy pools rare categories, coarsens quantiles and keeps exact extremes
170
+ out of the fingerprint, even on small tables.
171
+ - Combinations of values held by fewer rows than the policy's minimum (10 under `standard`)
172
+ are not stored, in pairwise tables or in the chain model's trees.
173
+ - Columns that look personal (names, phone numbers, e-mail and postal addresses) are
174
+ **pseudonymised** by default: modeled as categories and generated as stand-in tokens, with no
175
+ real value in the fingerprint or the output.
176
+ - Unique keys are regenerated in the same shape, never copied: an id, or a column with one
177
+ e-mail address per row. Keys that point to another record (a parent
178
+ record, an order number on its lines) come out as **fresh keys** with the source's repeat
179
+ structure.
180
+ - A built-in **attack suite**: membership inference, distance-to-closest-record and attribute
181
+ inference, gated against null distributions.
182
+ - DP building blocks (analytic Gaussian mechanism) with a privacy-budget accountant.
183
+
184
+ </td>
185
+ </tr>
186
+ <tr>
187
+ <td valign="top">
188
+
189
+ ### 📏 Rules your data obeys
190
+ - Declare constraints (`start <= end`) and derived columns (`total = qty * price`).
191
+ - Relationships found for you: dates that stay in order, weekday and year columns that agree
192
+ with their date, parts that add up to their total, and working-week patterns.
193
+ - **Inferred constraints are suggestions** (bounds, comparisons between columns), with
194
+ multiplicity-aware confidence; none binds until you confirm it. A relationship that holds
195
+ on every row, such as a column computed from another, is applied for you and listed by
196
+ `ectype inspect`.
197
+ - Generated values follow the fitted distribution, so a few can fall outside the observed
198
+ range; declare a bound (`age <= 100`) to hold them inside one.
199
+ - Enforcement by derivation, rejection or repair, with exact row counts.
200
+ - **Calibration** corrects the distortion that enforcement introduces, and says so when a
201
+ target can't be reached.
202
+
203
+ </td>
204
+ <td valign="top">
205
+
206
+ ### 🕰️ Time, tables and scenarios
207
+ - **Time series:** trend, seasonality and AR models; **panels** of entities; **event** streams
208
+ (Poisson and Hawkes processes).
209
+ - **Multi-table** schemas with 100% referential integrity.
210
+ - **What-if scenarios:** shift a mean, widen a spread, change category shares, add drift or
211
+ mix populations, whatever the joint model. Setting a correlation directly takes a fingerprint
212
+ fitted with `effort="fast"`.
213
+ - Scenarios are plain, reviewable requests, and each one reports what it achieved against
214
+ what you asked for.
215
+
216
+ </td>
217
+ </tr>
218
+ <tr>
219
+ <td valign="top">
220
+
221
+ ### 🔍 Drift detection
222
+ - Compare two fingerprints with no data and no generation, and pinpoint which columns and pairs
223
+ moved.
224
+ - Comparisons fail closed: an inconclusive comparison never passes as "no drift".
225
+ - Drop `ectype compare --fail-on-drift` into CI to catch silent data changes.
226
+
227
+ </td>
228
+ <td valign="top">
229
+
230
+ ### ⚙️ Built for real workflows
231
+ - A complete CLI and Python API.
232
+ - Read from CSV, Parquet, Arrow, pandas, Polars or **SQL through DuckDB**, with read-only
233
+ guards.
234
+ - Out-of-core profiling with mergeable sketches, and parallel generation that is byte-identical
235
+ to sequential.
236
+ - Fully local: no cloud, GPU or LLM required.
237
+
238
+ </td>
239
+ </tr>
240
+ </table>
241
+
242
+ ## What people use it for
243
+
244
+ Anywhere real data is needed but hard to use: it is locked down, it holds personal details,
245
+ there is not enough of it, or it does not exist yet.
246
+
247
+ **By the job to be done**
248
+
249
+ | Job | Examples |
250
+ | --- | --- |
251
+ | Build and test software | Lifelike test databases, load tests at 100 times your volume, migration rehearsals, reproducible bug reports, test data in CI |
252
+ | Develop analytics and models | Prototype before access is granted, share a working sample with a vendor, tutorial data that runs for everyone |
253
+ | Share across a boundary | Between teams, with partners and auditors, with researchers and students, across regions where rows must stay put |
254
+ | Watch for change | Month-over-month drift checks, pipeline gates, acceptance checks on vendor deliveries |
255
+ | Explore what could happen | What-if scenarios, more of the rare cases, data for a table that does not exist yet |
256
+ | Teach, demonstrate and sell | Product demos, training environments, classroom datasets, hackathons |
257
+
258
+ **By industry**
259
+
260
+ | Industry | Examples |
261
+ | --- | --- |
262
+ | Banking and payments | Transactions for testing fraud rules; loan applications for credit-model development |
263
+ | Insurance | Policies and claims for pricing prototypes; shareable samples for reinsurers |
264
+ | Healthcare and life sciences | Encounter and claims tables for health IT testing; teaching datasets; trial-style tables |
265
+ | Retail and e-commerce | Orders, baskets and returns; store-by-day sales series for forecasting |
266
+ | Telecommunications | Usage records for billing tests; subscriber tables for churn analysis |
267
+ | Manufacturing | Sensor logs for maintenance software; inspection tables for quality dashboards |
268
+ | Energy and utilities | Meter readings for billing and forecasting; outage and work-order tables |
269
+ | Logistics and transportation | Shipments and delivery events; fleet and ridership tables |
270
+ | Government | Permits, inspections and service requests; shareable versions of administrative tables |
271
+ | Education and research | Course datasets; companion data for publications that cannot release the original |
272
+ | Human resources | Employee and payroll tables for software testing; workforce scenarios |
273
+ | Marketing and customer analytics | Campaign and survey tables for building reports before fieldwork ends |
274
+ | Software and SaaS | Seed data for demos, trials and sandboxes |
275
+ | Cybersecurity and IT operations | Log and event tables for testing detection rules; training exercises |
276
+ | Real estate and construction | Listings, permits and bids for analysis and estimating tools |
277
+ | Nonprofits and development | Beneficiary and survey tables for case-management tools and analyst training |
278
+
279
+ The **[full list](docs/use-cases.md)** has more examples for each, and the cases Ectype is not
280
+ designed for.
281
+
282
+ ## How well does it work?
283
+
284
+ Closer to real data than every deep-learning synthesizer we tested, on a CPU, in seconds.
285
+
286
+ A head-to-head on nine public datasets with five seeds each: every method at its library
287
+ defaults, every score taken on held-out real rows that no method saw.
288
+
289
+ | Method | Classifier AUC (0.5 = cannot tell from real) | Mean rank | Quality | Utility kept | Worst-case membership AUC | Median fit |
290
+ | --- | --- | --- | --- | --- | --- | --- |
291
+ | Sequential trees (CART) | 0.596 | 1.0 | 0.980 | 98.3% | 0.533 | 2 s, CPU |
292
+ | **Ectype (chain model)** | **0.700** | **2.6** | **0.975** | **97.8%** | **0.508** | **10 s, CPU** |
293
+ | Diffusion (Synthcity TabDDPM) | 0.744 | 3.4 | 0.908 | 97.3% | 0.505 | 6.4 min, GPU |
294
+ | Deep autoregressive (MOSTLY AI SDK) | 0.790 | 3.7 | 0.966 | 96.3% | 0.507 | 2.3 min, GPU |
295
+ | Adversarial random forest (ARF) | 0.941 | 6.8 | 0.922 | 97.0% | 0.517 | 3.9 min, CPU |
296
+ | VAE (SDV TVAE) | 0.975 | 8.0 | 0.896 | 89.9% | 0.505 | 2.9 min, GPU |
297
+ | GAN (SDV CTGAN) | 0.976 | 8.1 | 0.882 | 88.5% | 0.505 | 6.5 min, GPU |
298
+ | Gaussian copula (SDV) | 0.994 | 9.3 | 0.869 | 86.8% | 0.506 | 6 s, CPU |
299
+
300
+ - **Second of ten methods** at passing for real data, and ahead of every deep-learning model
301
+ tested.
302
+ - **97.8% of real-data predictive score kept** by models trained on Ectype's rows (median).
303
+ - **Membership-inference attacks score at chance:** at most 0.508 on any dataset. Sequential
304
+ trees rank first on fidelity by emitting values sampled from real rows, and they have the
305
+ highest worst-case membership score of any method (0.533).
306
+ - **Beyond the benchmark:** run on 29 further public government, health and finance tables, from
307
+ 184 rows to 60,000-row samples and up to 287 columns, with no failures. It fits a
308
+ 2.4-million-row, 78-column table on a desktop CPU.
309
+
310
+ Every number, every method and every dataset, including where others lead, is in the
311
+ **[benchmark report](docs/results/compete.md)**. Ectype's chain model was tuned on two of the
312
+ nine datasets; the diffusion model failed on 2 of its 45 runs.
313
+
314
+ ## Why Ectype?
315
+
316
+ | | Ectype |
317
+ | --- | --- |
318
+ | Saved model | A declarative `.dfp` file: inspectable, diffable, and safe to load (no code runs) |
319
+ | Fidelity evidence | Sealed targets the generator never saw, plus an optional real holdout, reported separately |
320
+ | Privacy | A disclosure policy on every fit, stand-ins for personal columns, and a built-in attack suite |
321
+ | Useful without generating | Profile reports and drift comparisons straight from the fingerprint |
322
+ | Rules | Declared or confirmed constraints hold on every generated row |
323
+ | Runs where | A laptop, CI or an air-gapped server: CPU only, no network |
324
+
325
+ ## Install
326
+
327
+ ```bash
328
+ pip install ectype-data # core: polars, numpy, scipy, pyarrow, pydantic
329
+ pip install "ectype-data[temporal]" # time-series models
330
+ pip install "ectype-data[sql]" # DuckDB sources
331
+ pip install "ectype-data[pandas]" # pandas in and out
332
+ pip install "ectype-data[llm]" # optional: draft scenarios from plain English
333
+ pip install "ectype-data[all]" # all of the above
334
+ ```
335
+
336
+ The PyPI name is `ectype-data`; the import name and the command are both `ectype`. Python
337
+ 3.11, 3.12 and 3.13 on Linux, macOS and Windows. [Installation](docs/guide/01-installation.md)
338
+ has the details.
339
+
340
+ ## Documentation
341
+
342
+ The **[user guide](docs/guide/README.md)** runs from installation and a five-minute
343
+ walkthrough to time series, multi-table data, privacy, drift checks in CI and the full CLI and
344
+ Python API reference. A test executes every example in the guide.
345
+
346
+ - [Using Ectype from an AI agent](docs/guide/19-agents-and-mcp.md): how an agent calls the
347
+ library and the CLI from its shell, and `ectype-mcp`, the MCP server coming next as a
348
+ separate package (tested with Claude Code)
349
+ - [Versions and compatibility](docs/guide/20-versions-and-compatibility.md): what a newer or
350
+ older engine does with your fingerprints, and how version numbers move
351
+ - [Design document](docs/design.md): concepts, architecture and research plan
352
+ - [Format specification](docs/format/README.md): the `.dfp` container and manifest schema
353
+ - [Architecture decisions](docs/adr/)
354
+ - [Size, fidelity and leakage study](docs/results/frontier.md)
355
+
356
+ ## Status
357
+
358
+ Version 0.1.0, the first public release, covered by 2,666 automated tests, including one that
359
+ runs every example in the user guide. The fingerprint format is `0.4.0`, versioned separately
360
+ from the package: a newer engine reads every fingerprint written by an older one of the same
361
+ major format version, and the repository keeps a saved fingerprint of each released format
362
+ that every test run loads. [Versions and compatibility](docs/guide/20-versions-and-compatibility.md)
363
+ has the full set of promises.
364
+
365
+ ## Contributing
366
+
367
+ Contributions are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md); contributors sign the
368
+ [CLA](CLA.md) on their first pull request. Three rules matter most:
369
+ - format changes need an ADR;
370
+ - no pickle or `eval`;
371
+ - fidelity claims must come from sealed targets or a real holdout.
372
+
373
+ ## License
374
+
375
+ Licensed under [Apache-2.0](LICENSE). Copyright 2026 ZeroPoint Holdings LLC.
376
+ "Ectype" is a trademark of ZeroPoint Holdings LLC.
@@ -0,0 +1,115 @@
1
+ ectype/__init__.py,sha256=0hZcossFctbJMCkiaeXBtRa5tSHZKcKKTb5ZsYx2IqY,4357
2
+ ectype/_version.py,sha256=GOclEh2FW4qop55TirgTF2vTTbUa7_3iP2e6vvi_f8I,204
3
+ ectype/cli.py,sha256=_CjN5i614c5LBc1VenFzvbUCtiNITUbSTZ4L7Rt_f_o,53733
4
+ ectype/errors.py,sha256=O--BvU_i5XDah0ExEpyV0Nosh1syhtnWC2fsuths3Mg,1163
5
+ ectype/plugins.py,sha256=60xF5wnGb11lw35_mx9OMgJBOyDyT2vsyypdNDDVtnY,1086
6
+ ectype/profiler.py,sha256=FpHHt2AE2AGgqJggkfWLGnbvz8ebEhXRS_CvBw-mhJM,43951
7
+ ectype/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ ectype/registry.py,sha256=azzZLcHVgT8DRaV1avGzJ8_fvY4NlIk9Miw_XwBT4CU,1738
9
+ ectype/rng.py,sha256=dnHQoyQ71q4SrRf7SH_twJlMKhH-7t2WoO-7eeTZ4xE,1216
10
+ ectype/types.py,sha256=Usn6ZUpfJl3bcsBDsKoUOqq-7Oc46egcFPnLQgTWcjI,2199
11
+ ectype/authoring/__init__.py,sha256=a42_RkCmPRAih_Pq3ApsZ5lsfury9PMEhwZVfFD2Pgg,419
12
+ ectype/authoring/builder.py,sha256=Gy9yAXxB2UGkaep4Uhl5yi-M34kn1ykrWzpoT9WUsxA,5699
13
+ ectype/authoring/spec.py,sha256=BfqJYQVUG2zQAfkDKRlEc4_Q93fEqbJ7j4ZdcPQmAzg,27069
14
+ ectype/calibration/__init__.py,sha256=iaifgi3FZkz8Wy-zjBWeKnUnzRhD-GBO6IqSSaAxdRQ,549
15
+ ectype/calibration/adjustments.py,sha256=OWguY0FR9eTKHiUkxmDlomENN5To7oYvnULUNLDkEGU,26279
16
+ ectype/calibration/calibrator.py,sha256=nvVu6u2hqab19523IJacM7ox5KNhWdf3pttfZHGDq6c,38170
17
+ ectype/compiler/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
18
+ ectype/compiler/plan.py,sha256=zoXdeuvZh9hbuunxEeq-5shTWH-Tf27t_DLiMp5clLM,33391
19
+ ectype/fingerprint/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
20
+ ectype/fingerprint/comparison.py,sha256=66ZNUcWRhAjbQt8SLR5sxazm4pPXb-Hpy3zkWL7CHLY,37075
21
+ ectype/fingerprint/container.py,sha256=uhGnCVQgj-kjJScgrZyvEMeEYxXZ4xpgTN5dwG-RVLY,17271
22
+ ectype/fingerprint/core.py,sha256=zTOhYwalISBSt7K_4D2zJtSXCm2-D7HilIqvbJZ9uUs,11124
23
+ ectype/fingerprint/disclosure.py,sha256=FbJZQ3h5IwktgbfZ3spGlMUFrjqvuaRmbD4H4y5kxQc,10108
24
+ ectype/fingerprint/expressions.py,sha256=04jKoihqmoxVn0C-1QrbKIniEEjAzYliXekJxiLWlD8,51691
25
+ ectype/fingerprint/schema.py,sha256=8jHxCP4GzSiOYRhVuokOwho4Mb4yRh0G_FkVLtyNIfE,28907
26
+ ectype/fingerprint/targets.py,sha256=LE4mF2YQF1NOMNbRTaBNpgcG8vU9aHa85J_ACj8HBFY,16578
27
+ ectype/generation/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
28
+ ectype/generation/enforce.py,sha256=FhX993X22SmFChe94AW0Ik20NG-G8wWdBUn4tJUpsFE,6259
29
+ ectype/generation/generator.py,sha256=jsaVME4eke1TYPQGU4QceYgilux1iTFNU_2q4p3MyU8,27523
30
+ ectype/generation/identifiers.py,sha256=b6pIvG_7GzVEF2Kr4wBuH3CZR176v2r9Aj9IkDYQDas,9922
31
+ ectype/generation/manifest.py,sha256=5pzD0CDti4cgnMxEVzJYKrG_Xv0v1gyZNXVJMDhSfm0,2352
32
+ ectype/generation/parallel.py,sha256=QQZOdvUQI5oBYd-dXh60JrcVxZKYiqoVPk9ScHWYwoA,9715
33
+ ectype/io/__init__.py,sha256=zfQjESbk1-PPDZBvPQ1D9G-uYyhCHJNa7qlFv-w166c,451
34
+ ectype/io/adapters.py,sha256=74TD2XCzmu6vYBwv73dMcPTrKBQSx_EJIgl9qHYKIdg,7890
35
+ ectype/io/sql.py,sha256=JQhS61S_CZcjZ7e58vpQByWQDjXmLVhxdael7OTiwXI,12477
36
+ ectype/io/values.py,sha256=jy8VK3FWWnjHZYt79-HppoPHgfI6Ktz9-SUECmGvN5s,12157
37
+ ectype/llm/__init__.py,sha256=m3Zd-jQnhybl0sR9-A1_-D7HfmX_9xUas62_Yj68k2g,894
38
+ ectype/llm/authoring.py,sha256=jsPhRjpDmjTS57aQL7c-AkojyhEfmpm1fxxySfNAZcw,36984
39
+ ectype/llm/providers.py,sha256=6bMpeq3ZOyeuW-LdgIY5L6ADgAPlo-RCyew3JCWfknE,11692
40
+ ectype/models/__init__.py,sha256=JmVDTBIhk81_L-7oZnBzwhKp0Wtk9n6F0Huhu9mEFF8,213
41
+ ectype/models/base.py,sha256=EAZhcnqEVCHXk-Ea4DjuiXvv15qOLdJaTj1jtgWEllI,3882
42
+ ectype/models/chain.py,sha256=eJ423WCZzdAoz_JweM9Hm7CS5KCkW81tXDZndiJ5_S4,129074
43
+ ectype/models/copulas.py,sha256=ESgfwBcQTfdsrn-OvZZ5ycOAc3ycZPkmpqR5LgLJP0U,11361
44
+ ectype/models/encoding.py,sha256=JtwvcKWx1dl-_2zbaYsx_n-1ys8n486m8FlTvHAuIBk,55007
45
+ ectype/models/forest.py,sha256=BDIMkvkujjClrYYQ9_0OqEKpe1gUQWaDItJUBKrjxuU,54718
46
+ ectype/models/marginals.py,sha256=Ov0AT0DEkawFf0t0582kZwV59JhGg5zDbo1-YM7_PEI,97790
47
+ ectype/models/mixtures.py,sha256=24GOYfOJmGruoBWXgHm2DUFa6-HsDL-qbHjeqIrrrH8,15496
48
+ ectype/models/vines.py,sha256=z5p3JhULvZQfzdywekd-Q6M_zbZPt4zPFvpo1CrsMAU,26802
49
+ ectype/models/neural/__init__.py,sha256=QKz08jtEyizDIAgm_UdqW3asuCH4Y-kok7JbDBS0N8s,827
50
+ ectype/models/neural/adapter.py,sha256=pK8zQC5MRJaKOcMlVB7kUoLhdHlN_tKzpw2m2lc8Eqg,31141
51
+ ectype/models/neural/vae.py,sha256=Q19Xr852eoeN6dWw-xhR4omRdulFlDNtqZoRwan2r2k,19998
52
+ ectype/privacy/__init__.py,sha256=rpV1j6TqsfIHL7E5m0Aa6YtiCdL-l5fq5PHUWmdPb98,1145
53
+ ectype/privacy/attacks.py,sha256=wqAbA2rvAVD12ZofTMwezOfYzHnY9D7-umQ1VPkwbpA,28220
54
+ ectype/privacy/dp.py,sha256=r-Wj6gdptlIWVB2f6QXjz_m56Gw2DUdTrBM_XopT1Kk,13788
55
+ ectype/privacy/report.py,sha256=BHZSCj_wCVta9FQhTwo8epZwW5UIIJFiQCUnWUImJU8,17226
56
+ ectype/profiling/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
57
+ ectype/profiling/bivariate.py,sha256=73Ms1yRz4achLZlaB3o_RSnb2yb95t1bA0rXVO__G9g,5252
58
+ ectype/profiling/calendar.py,sha256=nRnPWxYHkgBn0XLg_zhp2cVIbLeNSwF2IrfdABIjdzw,37343
59
+ ectype/profiling/conditional.py,sha256=DgJoNvfa2owzckEooIbKwQcRVTCIMFLrj-BmQUcy-ps,10846
60
+ ectype/profiling/constraints.py,sha256=AxRy4_wspBINm_cGo4QjIrY2NURRmJPIkRdQuNPY4xQ,26952
61
+ ectype/profiling/entity.py,sha256=AdQiQ_CUf0dv0TadzsqrhuWTmj0frZsKijwtnwM_bQg,57710
62
+ ectype/profiling/functional.py,sha256=9R6QgqIYbb4OFdZihFK6Pztu0OfGvTWoOYaSTkmp1jw,31265
63
+ ectype/profiling/multivariate.py,sha256=KdjJ_zW_afFglGHeVFMqGDdra0aNRCjnzQYdYzVwmyw,24235
64
+ ectype/profiling/personal.py,sha256=GYqGmYMHchpWHNs_FODp9IhsVB3RsODSMXQR2BIPIKU,14541
65
+ ectype/profiling/pseudonym.py,sha256=ma1-OYJE1b5FdUnV0o-POKBCBGBW3QP1ziq2IPd4gAI,17258
66
+ ectype/profiling/reference.py,sha256=8G9xCd-OiIyjeeZp6MPbO78517XqQNc_KBNJmmr27Go,16342
67
+ ectype/profiling/sketches.py,sha256=rluJrLa-foabX8PiwBlV0xla9EhIjNf1KbkIrOFH9IE,28036
68
+ ectype/profiling/structural.py,sha256=ZO-LbptgAMLruHL9Tb7gGWYKAX2DbWqoEQZEbbAUnDM,54407
69
+ ectype/profiling/structure.py,sha256=j2zg0NsCE7KL5nELthdDFNf94-YJiuPvmEYiYjJI8Ms,88480
70
+ ectype/profiling/sums.py,sha256=dOiK-cc2MOP-0IKjBaGB7UhEc38jYZsTm_RkVAgA3RQ,84720
71
+ ectype/profiling/tolerance.py,sha256=ychVy21rWXrJXXfFPwgjh1N9XIwhVVmnGw1rtGiF3jE,21160
72
+ ectype/profiling/univariate.py,sha256=nyQXAh78lrud8ztAWXKJA144Atg10NyptsHBlXsXRqo,28507
73
+ ectype/relational/__init__.py,sha256=H3BOuLWiU_Mr4mJiT5sfkq-8PauRs0DOCoPedeLqxOU,1863
74
+ ectype/relational/container.py,sha256=X8rZeh6ZO8ubJxn4zMtIKOhu-fVeuDoR5vaauO0YNNk,9989
75
+ ectype/relational/fit.py,sha256=w9diwuCPVEuAOmAybk0Ik2268DtwWDHmA5r8sQqrXV0,29997
76
+ ectype/relational/generate.py,sha256=s5QvvXTX4MecKErrpLRWqLP2sW5dkvGB2wA63hd2G4s,20747
77
+ ectype/relational/schema.py,sha256=XU9QtdNT8NJpCVcJgMUZdeN314gRQL9uPblJbrRlz34,11746
78
+ ectype/relational/validate.py,sha256=yk1LrvDprNbs2eQDys8uCcWc7beQy-xhJNHzMSu4cTw,12343
79
+ ectype/reporting/__init__.py,sha256=KODO6hd8WrZj4vnPwQ0opa7145aDMSiaxMiOaCWW0QU,19640
80
+ ectype/reporting/adapter.py,sha256=IDueLKip1lA-ncJXhHtFfu8yac0-aSy8UVTNiIdPCqk,95826
81
+ ectype/reporting/charts.py,sha256=35Fj_d31JEuyNSNZtZEmwgEYavCnytaUTmJRZWAZxPI,40874
82
+ ectype/reporting/drift.py,sha256=b16FQwuK5G71mZBhoX_bCEYTnEwQ_1ZkKlWyyAT5BjM,40043
83
+ ectype/reporting/findings.py,sha256=1EZgfFeub5LEhBIqqmBXvUJ0ZYnj9lZWXGJe819Oco8,28831
84
+ ectype/reporting/fmt.py,sha256=E9pmu2XYsh7QGXD2M8J9LnEzITYFofcu2L-KMiwrpFE,14180
85
+ ectype/reporting/render.py,sha256=F4N8C2d7rhNgyl21nOzo4BEVuaD-a6TCAuv5lwLns1s,77287
86
+ ectype/reporting/select.py,sha256=erB4yvO_uE3a5pDDdFmEfjP8NmjPohuUs7hsKgYoTP8,3568
87
+ ectype/reporting/style.py,sha256=Htq1PTvpdgyH5BPWw9n7D0NPEHD0pw8o9RdJoC9UWVM,16214
88
+ ectype/reporting/view.py,sha256=eP5NNOLBzXYiAZqyXV-K5ir79eWRgZ5EXWZrBSnAIpU,26226
89
+ ectype/scenarios/__init__.py,sha256=v1oileJTF1sRn3orFUA2SoeZ7ah1MQDp3o0_t1IAdCM,823
90
+ ectype/scenarios/feasibility.py,sha256=pWi-tShpw7n8No-BjP3ng5hoXtHSecnxXyVnTfLox3o,18508
91
+ ectype/scenarios/merge.py,sha256=NrCnZu5RVpVMpaUCJdml0hGHgFbUQLYKHCrhszIeDb4,70583
92
+ ectype/scenarios/mutate.py,sha256=18vtxz1CbVtTaAigNOZJ6cn-TtuMgeGy9GvYczJUKpA,83088
93
+ ectype/temporal/__init__.py,sha256=tKf8N3F0UrUEJL3RV8mds0kvJMJVgAjPEOhIWzER7Xs,3383
94
+ ectype/temporal/contract.py,sha256=QUO_QClLsAsEGOECmwuYMESrFMmfT8S0INOiRfKiQnY,11542
95
+ ectype/temporal/detect.py,sha256=Frb5orw9rbarxdLUqBbc6bQgtL34vTWN_Etx1uEF-88,18587
96
+ ectype/temporal/events.py,sha256=0Vqne497-AkDUN67MawTKbl7lnX3yy1HBTNn2IDBp0s,45674
97
+ ectype/temporal/panel.py,sha256=6ewqiBQaDg0kIUU-K29Yi1hY0JacmttxWtziMINqaKY,43335
98
+ ectype/temporal/pipeline.py,sha256=i2h0uwM6qaAkgheu_wfwAXuAOxCmGzLX8q1brcweAAk,8822
99
+ ectype/temporal/regular.py,sha256=oaNNtqb_ERKjzKAW_CqnkPQjbULCF3bb1lubGhC6x4g,31289
100
+ ectype/validation/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
101
+ ectype/validation/report.py,sha256=fyGQHJ6ubt250LwrTqbZV6H5Gpm-Pkb1LiOFJEJk_jY,26193
102
+ ectype/validation/validator.py,sha256=8mvJ2gvDvZ86hPXkZkUNgzk7l-HUJTsn6d58Aknb-e4,36189
103
+ ectype/validation/metrics/__init__.py,sha256=fcGYRJZ7nwbAlbAI9Pv6fb9cyYnDfr6DCUf2S5Y36Zs,152
104
+ ectype/validation/metrics/base.py,sha256=hjOVj2vaG0JOCoKCUDY-PLKue0q8wP9YmGYnAWuO814,2860
105
+ ectype/validation/metrics/bivariate.py,sha256=qF3-qHNqTpuIfIAeNFA2MhFXB3dO6b4WSyz6-3de2dA,12990
106
+ ectype/validation/metrics/missingness.py,sha256=aow0uJfyziiaunERhCMz7Ey8SJ3cjXQ1KsTjtTDcGCc,1868
107
+ ectype/validation/metrics/multivariate.py,sha256=kzw9NawO71-jvwKstQ2t1dWtfsf78lkEv7F9xrVNgYA,11273
108
+ ectype/validation/metrics/temporal.py,sha256=y9E1JAJGuVErfto0f9Ech09PhSUCco--W-BMXcCcX4A,25930
109
+ ectype/validation/metrics/univariate.py,sha256=of8eZSyTYMPYFn9ajLaCgAEjwBaJnuQ2FUXq8deedJ4,22287
110
+ ectype_data-0.1.0.dist-info/METADATA,sha256=xChCeCbflSLIq3QUlfMbITADzVhVuN0ERjci19HqYKA,17930
111
+ ectype_data-0.1.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
112
+ ectype_data-0.1.0.dist-info/entry_points.txt,sha256=2hOGpRIsf2X7FLEd8yTY8iEIJJlntk0EKL29CrspzhA,43
113
+ ectype_data-0.1.0.dist-info/licenses/LICENSE,sha256=o_6hu6VrpZ9A-SS6cgRDZALlCMAXh5LZyR7V8l94zEQ,10815
114
+ ectype_data-0.1.0.dist-info/licenses/NOTICE,sha256=WHdF4Fzz5YTLZHVxGZzHsfycxS33TTtkVppdR2QthTM,175
115
+ ectype_data-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ ectype = ectype.cli:main