synthschema 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.
@@ -0,0 +1,35 @@
1
+ # Secrets — never commit
2
+ .env
3
+ .env.*
4
+ !.env.example
5
+ *.pypirc
6
+ .pypirc
7
+
8
+ # Local reference documents — never commit
9
+ *.pdf
10
+ internal/
11
+ # Internal planning docs: kept local, not published.
12
+ CLAUDE.md
13
+ docs/PROJECT_HISTORY.md
14
+ docs/DECISIONS.md
15
+ docs/OPEN_SOURCE_STACK.md
16
+
17
+ # Python
18
+ __pycache__/
19
+ *.py[cod]
20
+ *.egg-info/
21
+ .eggs/
22
+ build/
23
+ dist/
24
+ .venv/
25
+ venv/
26
+ .pytest_cache/
27
+ .mypy_cache/
28
+ .ruff_cache/
29
+ .coverage
30
+ htmlcov/
31
+
32
+ # Editors / OS
33
+ .vscode/
34
+ .idea/
35
+ .DS_Store
@@ -0,0 +1,31 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses
5
+ [Semantic Versioning](https://semver.org/).
6
+
7
+ ## [0.1.0] - 2026-11-18
8
+
9
+ First community release.
10
+
11
+ ### Added
12
+ - `Metadata` blueprint: tables, columns, primary keys, relationships and rules. It can be
13
+ detected from DataFrames, parsed from SQL DDL, or saved and loaded as JSON or YAML.
14
+ - `GaussianCopulaSynthesizer` for single tables:
15
+ - Empirical or parametric marginals (`norm`, `beta`, `truncnorm`, `gamma`, `uniform`, `auto`).
16
+ - Learned null rates, rounding and min/max.
17
+ - Exact conditional sampling and seeded reproducibility.
18
+ - `MultiTableSynthesizer`:
19
+ - Parent-first generation with learned child counts and parent-conditioned children.
20
+ - Weighted secondary foreign keys and self-references.
21
+ - `SchemaSynthesizer`: data from DDL or metadata hints alone (no seed data).
22
+ - Constraints: `Inequality`, `Range`, `OneOf`, `FixedCombinations`, `Custom`, and SQL-like
23
+ rule strings.
24
+ - Generators for IDs (learned regex patterns), PII (Faker when installed, built-in otherwise)
25
+ and free text. Real values of these columns are never learned or copied.
26
+ - Evaluation: `evaluate_quality`, `run_diagnostic`, `evaluate_privacy` and `certify`, which
27
+ produces a fingerprinted pass/fail certificate with hard stops.
28
+ - `synthschema` command line: `synthesize`, `from-ddl`, `evaluate`, `detect`.
29
+ - Simulated demo datasets via `load_demo`.
30
+
31
+ [0.1.0]: https://github.com/techsql-labs/synthschema/releases/tag/v0.1.0
@@ -0,0 +1,201 @@
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: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,253 @@
1
+ Metadata-Version: 2.5
2
+ Name: synthschema
3
+ Version: 0.1.0
4
+ Summary: Open-source, schema-driven synthetic data generation for tabular and relational data.
5
+ Project-URL: Homepage, https://github.com/techsql-labs/synthschema
6
+ Project-URL: Repository, https://github.com/techsql-labs/synthschema
7
+ Project-URL: Issues, https://github.com/techsql-labs/synthschema/issues
8
+ Project-URL: Changelog, https://github.com/techsql-labs/synthschema/blob/main/CHANGELOG.md
9
+ Author: TechSQL Consulting Services
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ Keywords: data engineering,data generation,gaussian copula,machine learning,privacy,relational data,synthetic data,test data
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 :: Only
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Topic :: Database
24
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
25
+ Classifier: Topic :: Software Development :: Testing
26
+ Classifier: Typing :: Typed
27
+ Requires-Python: >=3.10
28
+ Requires-Dist: numpy>=1.24
29
+ Requires-Dist: pandas>=2.0
30
+ Requires-Dist: scipy>=1.10
31
+ Provides-Extra: all
32
+ Requires-Dist: faker>=18; extra == 'all'
33
+ Requires-Dist: pyyaml>=6; extra == 'all'
34
+ Provides-Extra: dev
35
+ Requires-Dist: faker>=18; extra == 'dev'
36
+ Requires-Dist: pytest>=7; extra == 'dev'
37
+ Requires-Dist: pyyaml>=6; extra == 'dev'
38
+ Requires-Dist: ruff>=0.5; extra == 'dev'
39
+ Provides-Extra: pii
40
+ Requires-Dist: faker>=18; extra == 'pii'
41
+ Provides-Extra: yaml
42
+ Requires-Dist: pyyaml>=6; extra == 'yaml'
43
+ Description-Content-Type: text/markdown
44
+
45
+ # synthschema
46
+
47
+ **Open-source, schema-driven synthetic data for tabular and relational datasets.**
48
+
49
+ [![PyPI](https://img.shields.io/pypi/v/synthschema.svg)](https://pypi.org/project/synthschema/)
50
+ [![Python](https://img.shields.io/pypi/pyversions/synthschema.svg)](https://pypi.org/project/synthschema/)
51
+ [![CI](https://github.com/techsql-labs/synthschema/actions/workflows/ci.yml/badge.svg)](https://github.com/techsql-labs/synthschema/actions/workflows/ci.yml)
52
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
53
+
54
+ synthschema learns the statistical shape of your data (each column's distribution and the
55
+ correlations between columns) and generates new rows that keep that balance, without copying
56
+ real records. It also works from a **schema alone**: give it SQL DDL and rules, and it
57
+ generates realistic data whose keys match across tables, with no seed data at all.
58
+
59
+ Every dataset can be **checked before you share it**: quality, structure, rules and privacy
60
+ roll up into a single pass/fail certificate.
61
+
62
+ ```bash
63
+ pip install synthschema # core: numpy, pandas, scipy
64
+ pip install "synthschema[all]" # + Faker (realistic PII values) and PyYAML (YAML blueprints)
65
+ ```
66
+
67
+ ## Why synthschema
68
+
69
+ | | |
70
+ | --- | --- |
71
+ | **Statistical fidelity** | Exact empirical marginals plus a Gaussian copula keep distributions, category shares, null rates and correlations. |
72
+ | **Multi-table, keys intact** | Parents are generated first. Child counts per parent are modelled, and child rows are conditioned on their parent, so there are zero orphan keys and cross-table patterns survive. |
73
+ | **Schema-only mode** | `CREATE TABLE` statements → realistic, key-consistent data. `CHECK`, `ENUM`, `REFERENCES` and `NOT NULL` are respected. |
74
+ | **Rules on 100% of rows** | `ship_date >= order_date`, ranges, `IN` lists and fixed combinations. Rules are learned as transforms where possible, so the distribution is not distorted. |
75
+ | **Privacy by construction** | IDs, names, emails and other PII are generated, never learned. Real rows are never copied, and a privacy check proves it. |
76
+ | **Certify before release** | Quality, diagnostic and privacy reports roll up into a fingerprinted certificate with hard stops. |
77
+ | **Light and local** | Pure Python on numpy, pandas and scipy. No GPU and no network calls. Your data never leaves your machine. |
78
+
79
+ ## Quick start
80
+
81
+ ### One table
82
+
83
+ ```python
84
+ from synthschema import GaussianCopulaSynthesizer, evaluate_quality, load_demo
85
+
86
+ real, metadata = load_demo("customers") # simulated demo data; use any DataFrame
87
+
88
+ synth = GaussianCopulaSynthesizer(metadata) # metadata is optional: it is detected if omitted
89
+ synth.fit(real)
90
+ fake = synth.sample(1_000, seed=42) # same seed -> same rows
91
+
92
+ print(evaluate_quality(real, fake, metadata))
93
+ # QualityReport(score=95.5%; Column Shapes: 97.9%, Column Pair Trends: 93.2%)
94
+ ```
95
+
96
+ Conditional sampling keeps correlations with the fixed values:
97
+
98
+ ```python
99
+ corporate = synth.sample(200, conditions={"segment": "Corporate"})
100
+ ```
101
+
102
+ ### Several related tables
103
+
104
+ ```python
105
+ from synthschema import Metadata, MultiTableSynthesizer, load_demo
106
+
107
+ tables, metadata = load_demo("retail") # customers 1 --< orders
108
+ # or: metadata = Metadata.detect_from_dataframes(tables)
109
+
110
+ synth = MultiTableSynthesizer(metadata)
111
+ synth.fit(tables)
112
+ fake_tables = synth.sample(scale=1.0, seed=7) # {"customers": df, "orders": df}
113
+ ```
114
+
115
+ ### Schema only: no data needed
116
+
117
+ ```python
118
+ from synthschema import SchemaSynthesizer
119
+
120
+ ddl = """
121
+ CREATE TABLE customers (
122
+ customer_id INT PRIMARY KEY,
123
+ email VARCHAR(120) NOT NULL,
124
+ segment VARCHAR(20) CHECK (segment IN ('Consumer', 'Corporate')),
125
+ age INT CHECK (age BETWEEN 18 AND 90)
126
+ );
127
+ CREATE TABLE orders (
128
+ order_id INT PRIMARY KEY,
129
+ customer_id INT REFERENCES customers(customer_id),
130
+ order_date DATE,
131
+ ship_date DATE,
132
+ amount DECIMAL(10, 2) CHECK (amount >= 0),
133
+ CHECK (ship_date >= order_date)
134
+ );
135
+ """
136
+ data = SchemaSynthesizer.from_ddl(ddl).sample(num_rows=500, seed=1)
137
+ ```
138
+
139
+ ### Rules
140
+
141
+ ```python
142
+ from synthschema import FixedCombinations, GaussianCopulaSynthesizer, Inequality, Range
143
+
144
+ synth = GaussianCopulaSynthesizer(constraints=[
145
+ "ship_date >= order_date", # SQL-like strings...
146
+ "discount BETWEEN 0 AND 0.4",
147
+ Inequality(low="discount", high="amount"), # ...or objects
148
+ FixedCombinations(["country", "currency"]),
149
+ ])
150
+ ```
151
+
152
+ Rules can also live in the metadata blueprint, so they are declared once and used by every
153
+ synthesizer and by the diagnostic check.
154
+
155
+ ### Certify before you share
156
+
157
+ ```python
158
+ from synthschema import certify
159
+
160
+ certificate = certify(tables, fake_tables, metadata)
161
+ print(certificate)
162
+ # Certificate(PASSED; quality=97.1%, diagnostic=ok, reasons=[])
163
+ certificate.save("certificate.json")
164
+ ```
165
+
166
+ Hard stops: any broken primary key, foreign key or rule; any synthetic row that copies a
167
+ real row that is unique in the real data; or quality below the threshold (default 80%).
168
+
169
+ ### Command line
170
+
171
+ ```bash
172
+ synthschema synthesize customers.csv -o synthetic.csv -n 10000 --seed 1 --report cert.json
173
+ synthschema from-ddl schema.sql -o out/ -n 1000
174
+ synthschema evaluate real.csv synthetic.csv # exit code 1 if the certificate fails
175
+ synthschema detect customers.csv -o blueprint.yaml
176
+ ```
177
+
178
+ ## Metadata blueprints
179
+
180
+ Metadata is the single description of your dataset. Detect it, edit it, and keep it in Git:
181
+
182
+ ```yaml
183
+ tables:
184
+ customers:
185
+ primary_key: customer_id
186
+ columns:
187
+ customer_id: {sdtype: id, representation: int}
188
+ email: {sdtype: email}
189
+ age: {sdtype: numerical, representation: int}
190
+ segment: {sdtype: categorical}
191
+ signup_date: {sdtype: datetime, datetime_format: "%Y-%m-%d"}
192
+ orders:
193
+ primary_key: order_id
194
+ columns:
195
+ order_id: {sdtype: id, regex_format: "ORD-[0-9]{6}"}
196
+ customer_id: {sdtype: id}
197
+ order_date: {sdtype: datetime, datetime_format: "%Y-%m-%d"}
198
+ ship_date: {sdtype: datetime, datetime_format: "%Y-%m-%d"}
199
+ amount: {sdtype: numerical}
200
+ constraints:
201
+ - "ship_date >= order_date"
202
+ relationships:
203
+ - {parent_table: customers, parent_primary_key: customer_id, child_table: orders, child_foreign_key: customer_id}
204
+ ```
205
+
206
+ **Column types (`sdtype`):**
207
+
208
+ - **Modelled:** `numerical`, `categorical`, `boolean`, `datetime`.
209
+ - **Generated, never learned:** `id`, `text`.
210
+ - **Generated PII:** `email`, `phone_number`, `name`, `first_name`, `last_name`, `address`,
211
+ `street_address`, `ssn`, `credit_card_number`, `ip_address`, `url`, `company`, `postcode`.
212
+
213
+ ## How it works
214
+
215
+ 1. **Profile.** Each column gets a type and a reversible transform: empirical marginal,
216
+ null indicator, rounding and min/max for numbers; frequency intervals for categories;
217
+ epoch seconds plus original format for dates.
218
+ 2. **Learn.** Every value is mapped to a normal score. A Gaussian copula learns the
219
+ correlation matrix between all columns.
220
+ 3. **Constrain.** Rules become transforms during training where possible (an inequality
221
+ is learned as a non-negative gap). Every row is checked after sampling, and any failing
222
+ row is redrawn.
223
+ 4. **Generate.** Rows are drawn from the copula (or from its exact conditional
224
+ distribution when values are fixed), mapped back to data values, and given freshly
225
+ generated keys and PII.
226
+ 5. **Relate.** For multiple tables, each parent also learns its child count. Children are
227
+ sampled conditioned on their parent's values, in topological order.
228
+ 6. **Certify.** Quality (KS / TVD shapes, correlation and contingency similarity,
229
+ cardinality), diagnostics (keys, rules, ranges) and privacy (exact copies, distance to
230
+ closest record) become one release decision.
231
+
232
+ ## Roadmap
233
+
234
+ synthschema 0.1 is the community foundation. Planned next:
235
+
236
+ - More generators behind the same `fit` / `sample` interface: CTGAN/TVAE-style deep models,
237
+ tabular diffusion and sequential (time-series) models.
238
+ - Relational latent diffusion for deep schemas with 50+ tables.
239
+ - Causal what-if scenarios (`do(price = price * 1.1)` propagating across tables).
240
+ - Consumer fidelity contracts: register KPIs and SQL queries and certify their parity.
241
+ - Differential-privacy mode and a cumulative privacy budget across releases.
242
+ - Context-aware LLM text columns and Q&A / evaluation sets, through a model endpoint you
243
+ configure.
244
+ - Spark and Databricks scale-out as optional extras.
245
+
246
+ Ideas and pull requests are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md).
247
+
248
+ ## License
249
+
250
+ Apache License 2.0. See [LICENSE](LICENSE).
251
+
252
+ synthschema is built and maintained by **TechSQL Consulting Services**. For enterprise
253
+ support, custom generators or integration work, open an issue on GitHub and we will be in touch.