ectype-data 0.1.0__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.
- ectype_data-0.1.0/.gitignore +26 -0
- ectype_data-0.1.0/LICENSE +192 -0
- ectype_data-0.1.0/NOTICE +5 -0
- ectype_data-0.1.0/PKG-INFO +376 -0
- ectype_data-0.1.0/README.md +331 -0
- ectype_data-0.1.0/benchmarks/README.md +64 -0
- ectype_data-0.1.0/benchmarks/compete/pyproject.toml +68 -0
- ectype_data-0.1.0/benchmarks/compete/remote/README.md +304 -0
- ectype_data-0.1.0/docs/adr/0001-polars-only-internally.md +13 -0
- ectype_data-0.1.0/docs/adr/0002-declarative-fingerprint-format.md +19 -0
- ectype_data-0.1.0/docs/adr/0003-sealed-targets.md +9 -0
- ectype_data-0.1.0/docs/adr/0004-format-0.2.md +34 -0
- ectype_data-0.1.0/docs/adr/0005-structural-transforms.md +67 -0
- ectype_data-0.1.0/docs/adr/0006-forest-copula.md +92 -0
- ectype_data-0.1.0/docs/adr/0007-mixed-marginals.md +161 -0
- ectype_data-0.1.0/docs/adr/0008-chain-copula.md +216 -0
- ectype_data-0.1.0/docs/adr/0009-orderings-by-dependence.md +146 -0
- ectype_data-0.1.0/docs/adr/0010-pseudonymised-categoricals.md +121 -0
- ectype_data-0.1.0/docs/adr/0011-functional-columns.md +130 -0
- ectype_data-0.1.0/docs/adr/0012-weekly-calendars.md +175 -0
- ectype_data-0.1.0/docs/adr/0013-entity-groups.md +234 -0
- ectype_data-0.1.0/docs/adr/0014-sums-and-shares.md +180 -0
- ectype_data-0.1.0/docs/adr/0015-defaults-and-dirty-data.md +325 -0
- ectype_data-0.1.0/docs/adr/0016-profile-report.md +100 -0
- ectype_data-0.1.0/docs/design.md +1109 -0
- ectype_data-0.1.0/docs/format/README.md +408 -0
- ectype_data-0.1.0/docs/format/manifest.schema.json +1390 -0
- ectype_data-0.1.0/docs/guide/01-installation.md +103 -0
- ectype_data-0.1.0/docs/guide/02-quickstart.md +205 -0
- ectype_data-0.1.0/docs/guide/03-concepts.md +212 -0
- ectype_data-0.1.0/docs/guide/04-profiling.md +1205 -0
- ectype_data-0.1.0/docs/guide/05-generating.md +292 -0
- ectype_data-0.1.0/docs/guide/06-validating.md +329 -0
- ectype_data-0.1.0/docs/guide/07-drift.md +300 -0
- ectype_data-0.1.0/docs/guide/08-calibration.md +274 -0
- ectype_data-0.1.0/docs/guide/09-scenarios-and-authoring.md +560 -0
- ectype_data-0.1.0/docs/guide/10-time-series.md +232 -0
- ectype_data-0.1.0/docs/guide/11-multi-table.md +247 -0
- ectype_data-0.1.0/docs/guide/12-privacy.md +334 -0
- ectype_data-0.1.0/docs/guide/13-sql-and-scale.md +188 -0
- ectype_data-0.1.0/docs/guide/14-cli-reference.md +504 -0
- ectype_data-0.1.0/docs/guide/15-python-api.md +449 -0
- ectype_data-0.1.0/docs/guide/16-file-format.md +187 -0
- ectype_data-0.1.0/docs/guide/17-troubleshooting.md +197 -0
- ectype_data-0.1.0/docs/guide/18-profile-report.md +364 -0
- ectype_data-0.1.0/docs/guide/19-agents-and-mcp.md +237 -0
- ectype_data-0.1.0/docs/guide/20-versions-and-compatibility.md +123 -0
- ectype_data-0.1.0/docs/guide/README.md +62 -0
- ectype_data-0.1.0/docs/results/benchmarks-sealed.svg +65 -0
- ectype_data-0.1.0/docs/results/benchmarks.md +305 -0
- ectype_data-0.1.0/docs/results/compete-ranks.svg +170 -0
- ectype_data-0.1.0/docs/results/compete.md +383 -0
- ectype_data-0.1.0/docs/results/frontier-leakage-fidelity.svg +221 -0
- ectype_data-0.1.0/docs/results/frontier-size-fidelity.svg +221 -0
- ectype_data-0.1.0/docs/results/frontier-size-leakage.svg +223 -0
- ectype_data-0.1.0/docs/results/frontier.md +323 -0
- ectype_data-0.1.0/docs/roadmap.md +69 -0
- ectype_data-0.1.0/docs/use-cases.md +166 -0
- ectype_data-0.1.0/pyproject.toml +106 -0
- ectype_data-0.1.0/src/ectype/__init__.py +134 -0
- ectype_data-0.1.0/src/ectype/_version.py +5 -0
- ectype_data-0.1.0/src/ectype/authoring/__init__.py +13 -0
- ectype_data-0.1.0/src/ectype/authoring/builder.py +134 -0
- ectype_data-0.1.0/src/ectype/authoring/spec.py +555 -0
- ectype_data-0.1.0/src/ectype/calibration/__init__.py +26 -0
- ectype_data-0.1.0/src/ectype/calibration/adjustments.py +539 -0
- ectype_data-0.1.0/src/ectype/calibration/calibrator.py +781 -0
- ectype_data-0.1.0/src/ectype/cli.py +1181 -0
- ectype_data-0.1.0/src/ectype/compiler/__init__.py +1 -0
- ectype_data-0.1.0/src/ectype/compiler/plan.py +678 -0
- ectype_data-0.1.0/src/ectype/errors.py +43 -0
- ectype_data-0.1.0/src/ectype/fingerprint/__init__.py +1 -0
- ectype_data-0.1.0/src/ectype/fingerprint/comparison.py +746 -0
- ectype_data-0.1.0/src/ectype/fingerprint/container.py +408 -0
- ectype_data-0.1.0/src/ectype/fingerprint/core.py +263 -0
- ectype_data-0.1.0/src/ectype/fingerprint/disclosure.py +207 -0
- ectype_data-0.1.0/src/ectype/fingerprint/expressions.py +1317 -0
- ectype_data-0.1.0/src/ectype/fingerprint/schema.py +645 -0
- ectype_data-0.1.0/src/ectype/fingerprint/targets.py +352 -0
- ectype_data-0.1.0/src/ectype/generation/__init__.py +1 -0
- ectype_data-0.1.0/src/ectype/generation/enforce.py +163 -0
- ectype_data-0.1.0/src/ectype/generation/generator.py +525 -0
- ectype_data-0.1.0/src/ectype/generation/identifiers.py +235 -0
- ectype_data-0.1.0/src/ectype/generation/manifest.py +71 -0
- ectype_data-0.1.0/src/ectype/generation/parallel.py +229 -0
- ectype_data-0.1.0/src/ectype/io/__init__.py +16 -0
- ectype_data-0.1.0/src/ectype/io/adapters.py +224 -0
- ectype_data-0.1.0/src/ectype/io/sql.py +289 -0
- ectype_data-0.1.0/src/ectype/io/values.py +269 -0
- ectype_data-0.1.0/src/ectype/llm/__init__.py +27 -0
- ectype_data-0.1.0/src/ectype/llm/authoring.py +766 -0
- ectype_data-0.1.0/src/ectype/llm/providers.py +269 -0
- ectype_data-0.1.0/src/ectype/models/__init__.py +8 -0
- ectype_data-0.1.0/src/ectype/models/base.py +120 -0
- ectype_data-0.1.0/src/ectype/models/chain.py +2426 -0
- ectype_data-0.1.0/src/ectype/models/copulas.py +254 -0
- ectype_data-0.1.0/src/ectype/models/encoding.py +1117 -0
- ectype_data-0.1.0/src/ectype/models/forest.py +1087 -0
- ectype_data-0.1.0/src/ectype/models/marginals.py +2099 -0
- ectype_data-0.1.0/src/ectype/models/mixtures.py +336 -0
- ectype_data-0.1.0/src/ectype/models/neural/__init__.py +21 -0
- ectype_data-0.1.0/src/ectype/models/neural/adapter.py +638 -0
- ectype_data-0.1.0/src/ectype/models/neural/vae.py +432 -0
- ectype_data-0.1.0/src/ectype/models/vines.py +608 -0
- ectype_data-0.1.0/src/ectype/plugins.py +40 -0
- ectype_data-0.1.0/src/ectype/privacy/__init__.py +49 -0
- ectype_data-0.1.0/src/ectype/privacy/attacks.py +599 -0
- ectype_data-0.1.0/src/ectype/privacy/dp.py +313 -0
- ectype_data-0.1.0/src/ectype/privacy/report.py +364 -0
- ectype_data-0.1.0/src/ectype/profiler.py +783 -0
- ectype_data-0.1.0/src/ectype/profiling/__init__.py +1 -0
- ectype_data-0.1.0/src/ectype/profiling/bivariate.py +130 -0
- ectype_data-0.1.0/src/ectype/profiling/calendar.py +743 -0
- ectype_data-0.1.0/src/ectype/profiling/conditional.py +263 -0
- ectype_data-0.1.0/src/ectype/profiling/constraints.py +661 -0
- ectype_data-0.1.0/src/ectype/profiling/entity.py +1143 -0
- ectype_data-0.1.0/src/ectype/profiling/functional.py +651 -0
- ectype_data-0.1.0/src/ectype/profiling/multivariate.py +492 -0
- ectype_data-0.1.0/src/ectype/profiling/personal.py +277 -0
- ectype_data-0.1.0/src/ectype/profiling/pseudonym.py +370 -0
- ectype_data-0.1.0/src/ectype/profiling/reference.py +334 -0
- ectype_data-0.1.0/src/ectype/profiling/sketches.py +653 -0
- ectype_data-0.1.0/src/ectype/profiling/structural.py +1087 -0
- ectype_data-0.1.0/src/ectype/profiling/structure.py +1733 -0
- ectype_data-0.1.0/src/ectype/profiling/sums.py +1710 -0
- ectype_data-0.1.0/src/ectype/profiling/tolerance.py +435 -0
- ectype_data-0.1.0/src/ectype/profiling/univariate.py +555 -0
- ectype_data-0.1.0/src/ectype/py.typed +0 -0
- ectype_data-0.1.0/src/ectype/registry.py +48 -0
- ectype_data-0.1.0/src/ectype/relational/__init__.py +61 -0
- ectype_data-0.1.0/src/ectype/relational/container.py +212 -0
- ectype_data-0.1.0/src/ectype/relational/fit.py +633 -0
- ectype_data-0.1.0/src/ectype/relational/generate.py +418 -0
- ectype_data-0.1.0/src/ectype/relational/schema.py +280 -0
- ectype_data-0.1.0/src/ectype/relational/validate.py +288 -0
- ectype_data-0.1.0/src/ectype/reporting/__init__.py +439 -0
- ectype_data-0.1.0/src/ectype/reporting/adapter.py +2003 -0
- ectype_data-0.1.0/src/ectype/reporting/charts.py +964 -0
- ectype_data-0.1.0/src/ectype/reporting/drift.py +902 -0
- ectype_data-0.1.0/src/ectype/reporting/findings.py +622 -0
- ectype_data-0.1.0/src/ectype/reporting/fmt.py +429 -0
- ectype_data-0.1.0/src/ectype/reporting/render.py +1705 -0
- ectype_data-0.1.0/src/ectype/reporting/select.py +84 -0
- ectype_data-0.1.0/src/ectype/reporting/style.py +272 -0
- ectype_data-0.1.0/src/ectype/reporting/view.py +593 -0
- ectype_data-0.1.0/src/ectype/rng.py +33 -0
- ectype_data-0.1.0/src/ectype/scenarios/__init__.py +30 -0
- ectype_data-0.1.0/src/ectype/scenarios/feasibility.py +411 -0
- ectype_data-0.1.0/src/ectype/scenarios/merge.py +1392 -0
- ectype_data-0.1.0/src/ectype/scenarios/mutate.py +1613 -0
- ectype_data-0.1.0/src/ectype/temporal/__init__.py +80 -0
- ectype_data-0.1.0/src/ectype/temporal/contract.py +221 -0
- ectype_data-0.1.0/src/ectype/temporal/detect.py +431 -0
- ectype_data-0.1.0/src/ectype/temporal/events.py +946 -0
- ectype_data-0.1.0/src/ectype/temporal/panel.py +937 -0
- ectype_data-0.1.0/src/ectype/temporal/pipeline.py +192 -0
- ectype_data-0.1.0/src/ectype/temporal/regular.py +674 -0
- ectype_data-0.1.0/src/ectype/types.py +46 -0
- ectype_data-0.1.0/src/ectype/validation/__init__.py +1 -0
- ectype_data-0.1.0/src/ectype/validation/metrics/__init__.py +7 -0
- ectype_data-0.1.0/src/ectype/validation/metrics/base.py +68 -0
- ectype_data-0.1.0/src/ectype/validation/metrics/bivariate.py +353 -0
- ectype_data-0.1.0/src/ectype/validation/metrics/missingness.py +54 -0
- ectype_data-0.1.0/src/ectype/validation/metrics/multivariate.py +265 -0
- ectype_data-0.1.0/src/ectype/validation/metrics/temporal.py +596 -0
- ectype_data-0.1.0/src/ectype/validation/metrics/univariate.py +514 -0
- ectype_data-0.1.0/src/ectype/validation/report.py +627 -0
- ectype_data-0.1.0/src/ectype/validation/validator.py +707 -0
- ectype_data-0.1.0/tests/compat/README.md +61 -0
- ectype_data-0.1.0/tests/compat/fingerprints/0.4.0/features-chain_copula.dfp +0 -0
- ectype_data-0.1.0/tests/compat/fingerprints/0.4.0/features-forest_copula.dfp +0 -0
- ectype_data-0.1.0/tests/compat/fingerprints/0.4.0/features-gaussian_copula.dfp +0 -0
- ectype_data-0.1.0/tests/compat/fingerprints/0.4.0/features-gaussian_mixture_copula.dfp +0 -0
- ectype_data-0.1.0/tests/compat/fingerprints/0.4.0/features-independent.dfp +0 -0
- ectype_data-0.1.0/tests/compat/fingerprints/0.4.0/features-vine_copula.dfp +0 -0
- ectype_data-0.1.0/tests/compat/fingerprints/0.4.0/plain.dfp +0 -0
- ectype_data-0.1.0/tests/compat/make_fingerprints.py +120 -0
- ectype_data-0.1.0/tests/compat/test_compat_fingerprints.py +68 -0
- ectype_data-0.1.0/tests/docs/test_guide_examples.py +219 -0
- ectype_data-0.1.0/tests/golden/generation.json +16 -0
- ectype_data-0.1.0/tests/integration/test_cli.py +641 -0
- ectype_data-0.1.0/tests/integration/test_entity_groups.py +382 -0
- ectype_data-0.1.0/tests/integration/test_entity_reference_interactions.py +291 -0
- ectype_data-0.1.0/tests/integration/test_entity_two_parties.py +283 -0
- ectype_data-0.1.0/tests/integration/test_parallel_generation.py +79 -0
- ectype_data-0.1.0/tests/integration/test_post_decode_steps_together.py +203 -0
- ectype_data-0.1.0/tests/integration/test_profiler.py +71 -0
- ectype_data-0.1.0/tests/integration/test_pseudonym_columns.py +558 -0
- ectype_data-0.1.0/tests/integration/test_pseudonym_interactions.py +275 -0
- ectype_data-0.1.0/tests/integration/test_reference_keys.py +290 -0
- ectype_data-0.1.0/tests/integration/test_separate_process.py +59 -0
- ectype_data-0.1.0/tests/integration/test_temporal_pipeline.py +62 -0
- ectype_data-0.1.0/tests/integration/test_validate_e2e.py +133 -0
- ectype_data-0.1.0/tests/property/test_expressions_prop.py +337 -0
- ectype_data-0.1.0/tests/report/report_table.py +198 -0
- ectype_data-0.1.0/tests/report/test_report_adapter.py +553 -0
- ectype_data-0.1.0/tests/report/test_report_api.py +441 -0
- ectype_data-0.1.0/tests/report/test_report_boundary.py +157 -0
- ectype_data-0.1.0/tests/report/test_report_charts.py +364 -0
- ectype_data-0.1.0/tests/report/test_report_cli.py +256 -0
- ectype_data-0.1.0/tests/report/test_report_compare.py +244 -0
- ectype_data-0.1.0/tests/report/test_report_drift.py +629 -0
- ectype_data-0.1.0/tests/report/test_report_findings.py +348 -0
- ectype_data-0.1.0/tests/report/test_report_fmt.py +168 -0
- ectype_data-0.1.0/tests/report/test_report_fuzz.py +250 -0
- ectype_data-0.1.0/tests/report/test_report_groups.py +93 -0
- ectype_data-0.1.0/tests/report/test_report_render.py +786 -0
- ectype_data-0.1.0/tests/report/test_report_scenarios.py +71 -0
- ectype_data-0.1.0/tests/report/test_report_schema_coverage.py +107 -0
- ectype_data-0.1.0/tests/statistical/test_calibration_effect.py +79 -0
- ectype_data-0.1.0/tests/statistical/test_chain_recovery.py +328 -0
- ectype_data-0.1.0/tests/statistical/test_conditional_categoricals.py +150 -0
- ectype_data-0.1.0/tests/statistical/test_copula_recovery.py +200 -0
- ectype_data-0.1.0/tests/statistical/test_date_ordering.py +345 -0
- ectype_data-0.1.0/tests/statistical/test_derived_columns.py +400 -0
- ectype_data-0.1.0/tests/statistical/test_drift_calibration.py +111 -0
- ectype_data-0.1.0/tests/statistical/test_forest_recovery.py +173 -0
- ectype_data-0.1.0/tests/statistical/test_golden.py +103 -0
- ectype_data-0.1.0/tests/statistical/test_joint_recovery.py +145 -0
- ectype_data-0.1.0/tests/statistical/test_marginal_selection.py +367 -0
- ectype_data-0.1.0/tests/statistical/test_neural_recovery.py +79 -0
- ectype_data-0.1.0/tests/statistical/test_privacy_leaky_baseline.py +72 -0
- ectype_data-0.1.0/tests/statistical/test_relational_recovery.py +144 -0
- ectype_data-0.1.0/tests/statistical/test_scenarios_effect.py +73 -0
- ectype_data-0.1.0/tests/statistical/test_structure_acceptance.py +251 -0
- ectype_data-0.1.0/tests/statistical/test_sums_and_shares.py +431 -0
- ectype_data-0.1.0/tests/statistical/test_temporal_panel_events_recovery.py +280 -0
- ectype_data-0.1.0/tests/statistical/test_temporal_regular.py +334 -0
- ectype_data-0.1.0/tests/statistical/test_unequal_row_counts.py +172 -0
- ectype_data-0.1.0/tests/statistical/test_validation_calibration.py +64 -0
- ectype_data-0.1.0/tests/statistical/test_weekly_calendar.py +463 -0
- ectype_data-0.1.0/tests/unit/test_authoring.py +174 -0
- ectype_data-0.1.0/tests/unit/test_benchmarks_suite.py +259 -0
- ectype_data-0.1.0/tests/unit/test_bivariate_profiler.py +86 -0
- ectype_data-0.1.0/tests/unit/test_calendar.py +632 -0
- ectype_data-0.1.0/tests/unit/test_calibration.py +257 -0
- ectype_data-0.1.0/tests/unit/test_calibration_structure.py +373 -0
- ectype_data-0.1.0/tests/unit/test_chain.py +834 -0
- ectype_data-0.1.0/tests/unit/test_comparison.py +369 -0
- ectype_data-0.1.0/tests/unit/test_constraint_inference.py +241 -0
- ectype_data-0.1.0/tests/unit/test_container.py +438 -0
- ectype_data-0.1.0/tests/unit/test_defaults.py +508 -0
- ectype_data-0.1.0/tests/unit/test_disclosure.py +281 -0
- ectype_data-0.1.0/tests/unit/test_encoding.py +665 -0
- ectype_data-0.1.0/tests/unit/test_entity.py +673 -0
- ectype_data-0.1.0/tests/unit/test_expressions.py +635 -0
- ectype_data-0.1.0/tests/unit/test_forest.py +337 -0
- ectype_data-0.1.0/tests/unit/test_format_governance.py +31 -0
- ectype_data-0.1.0/tests/unit/test_frontier_harness.py +100 -0
- ectype_data-0.1.0/tests/unit/test_functional.py +398 -0
- ectype_data-0.1.0/tests/unit/test_generator.py +328 -0
- ectype_data-0.1.0/tests/unit/test_identifiers.py +25 -0
- ectype_data-0.1.0/tests/unit/test_io.py +210 -0
- ectype_data-0.1.0/tests/unit/test_joint_models.py +192 -0
- ectype_data-0.1.0/tests/unit/test_llm_authoring.py +302 -0
- ectype_data-0.1.0/tests/unit/test_marginals.py +802 -0
- ectype_data-0.1.0/tests/unit/test_metrics.py +489 -0
- ectype_data-0.1.0/tests/unit/test_neural.py +343 -0
- ectype_data-0.1.0/tests/unit/test_personal_detection.py +173 -0
- ectype_data-0.1.0/tests/unit/test_plan.py +146 -0
- ectype_data-0.1.0/tests/unit/test_privacy_attacks.py +358 -0
- ectype_data-0.1.0/tests/unit/test_pseudonym.py +479 -0
- ectype_data-0.1.0/tests/unit/test_reference.py +281 -0
- ectype_data-0.1.0/tests/unit/test_relational.py +405 -0
- ectype_data-0.1.0/tests/unit/test_review_fixes_profiling.py +306 -0
- ectype_data-0.1.0/tests/unit/test_review_fixes_remaining.py +286 -0
- ectype_data-0.1.0/tests/unit/test_review_fixes_verify.py +296 -0
- ectype_data-0.1.0/tests/unit/test_review_regressions_generation.py +349 -0
- ectype_data-0.1.0/tests/unit/test_rng.py +29 -0
- ectype_data-0.1.0/tests/unit/test_scenarios.py +370 -0
- ectype_data-0.1.0/tests/unit/test_scenarios_structure.py +820 -0
- ectype_data-0.1.0/tests/unit/test_sketches.py +206 -0
- ectype_data-0.1.0/tests/unit/test_sql_sources.py +194 -0
- ectype_data-0.1.0/tests/unit/test_structural.py +550 -0
- ectype_data-0.1.0/tests/unit/test_structure.py +534 -0
- ectype_data-0.1.0/tests/unit/test_structure_orderings.py +586 -0
- ectype_data-0.1.0/tests/unit/test_sums.py +696 -0
- ectype_data-0.1.0/tests/unit/test_targets.py +246 -0
- ectype_data-0.1.0/tests/unit/test_temporal_detect.py +253 -0
- ectype_data-0.1.0/tests/unit/test_temporal_panel_events.py +325 -0
- ectype_data-0.1.0/tests/unit/test_tolerance.py +523 -0
- ectype_data-0.1.0/tests/unit/test_validation_decision.py +148 -0
- ectype_data-0.1.0/tests/unit/test_validator.py +242 -0
- ectype_data-0.1.0/tests/unit/test_values.py +361 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.py[cod]
|
|
3
|
+
.venv/
|
|
4
|
+
build/
|
|
5
|
+
dist/
|
|
6
|
+
*.egg-info/
|
|
7
|
+
.pytest_cache/
|
|
8
|
+
.mypy_cache/
|
|
9
|
+
.ruff_cache/
|
|
10
|
+
.hypothesis/
|
|
11
|
+
benchmarks/data/
|
|
12
|
+
benchmarks/results/*.tmp
|
|
13
|
+
*.dfp.tmp
|
|
14
|
+
.coverage
|
|
15
|
+
htmlcov/
|
|
16
|
+
akv.toml
|
|
17
|
+
benchmarks/compete/.venv/
|
|
18
|
+
benchmarks/compete/envs/
|
|
19
|
+
benchmarks/compete/work/
|
|
20
|
+
benchmarks/compete/3.12/
|
|
21
|
+
|
|
22
|
+
# agent scratch and report screenshots
|
|
23
|
+
.work/
|
|
24
|
+
.scratch/
|
|
25
|
+
docs/_report-shots/
|
|
26
|
+
benchmarks/compete/results/ALL_DONE*
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: Copyright notice for this project
|
|
179
|
+
|
|
180
|
+
Copyright 2026 ZeroPoint Holdings LLC
|
|
181
|
+
|
|
182
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
183
|
+
you may not use this file except in compliance with the License.
|
|
184
|
+
You may obtain a copy of the License at
|
|
185
|
+
|
|
186
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
187
|
+
|
|
188
|
+
Unless required by applicable law or agreed to in writing, software
|
|
189
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
190
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
191
|
+
See the License for the specific language governing permissions and
|
|
192
|
+
limitations under the License.
|
ectype_data-0.1.0/NOTICE
ADDED
|
@@ -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
|
+
[](#install)
|
|
54
|
+
[](LICENSE)
|
|
55
|
+
[](#status)
|
|
56
|
+
[](#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.
|