whydiff 0.0.1__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,13 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .venv/
4
+ dist/
5
+ build/
6
+ *.egg-info/
7
+ .pytest_cache/
8
+ .mypy_cache/
9
+ .ruff_cache/
10
+ .coverage
11
+ htmlcov/
12
+ *.duckdb
13
+ .env
whydiff-0.0.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ALEKSEI DONSKIKH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
whydiff-0.0.1/PKG-INFO ADDED
@@ -0,0 +1,73 @@
1
+ Metadata-Version: 2.5
2
+ Name: whydiff
3
+ Version: 0.0.1
4
+ Summary: Diff tables across databases and explain why they differ.
5
+ Project-URL: Homepage, https://github.com/alekseidonskikh/whydiff
6
+ Project-URL: Repository, https://github.com/alekseidonskikh/whydiff
7
+ Project-URL: Issues, https://github.com/alekseidonskikh/whydiff/issues
8
+ Author-email: ALEKSEI DONSKIKH <donskikhalexey@gmail.com>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: clickhouse,data-diff,data-engineering,data-quality,database,duckdb,greenplum,postgres,reconciliation,snowflake
12
+ Classifier: Development Status :: 1 - Planning
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Database
23
+ Classifier: Topic :: Software Development :: Testing
24
+ Requires-Python: >=3.10
25
+ Description-Content-Type: text/markdown
26
+
27
+ # whydiff
28
+
29
+ **Diff tables across databases — and find out *why* they differ.**
30
+
31
+ > 🚧 Early development. This release only reserves the name; nothing works yet.
32
+ > Star or watch the repository to follow progress.
33
+
34
+ Most diff tools tell you *whether* two tables match. whydiff aims to tell you
35
+ *what* changed and *why*:
36
+
37
+ ```
38
+ $ whydiff diff pg://prod:orders duckdb://dev.duckdb:orders --key id
39
+
40
+ rows 1,204,331 vs 1,204,331
41
+ changed 18,402 rows, all in column created_at
42
+ diagnosis constant shift of +03:00:00 → likely a timezone mismatch
43
+ ```
44
+
45
+ ## Planned features
46
+
47
+ - **Any database pair** — Postgres, Greenplum, DuckDB, Parquet/CSV first;
48
+ ClickHouse and Snowflake next; MySQL, Oracle, MSSQL later. SQL is generated
49
+ once with [sqlglot](https://github.com/tobymao/sqlglot) and transpiled to
50
+ each dialect.
51
+ - **Fast on large tables** — order-independent checksums per segment, so only
52
+ the segments that differ are downloaded and compared (in DuckDB, via Arrow).
53
+ - **Explicit type normalization** — timestamp precision and time zones,
54
+ decimal scale, float tolerance, `''` vs `NULL`, trailing spaces. Every rule
55
+ is configurable and shown in the report.
56
+ - **Root-cause diagnosis** — time zone shifts, rounding, trimming, truncation,
57
+ and differences concentrated in one slice of the data.
58
+ - **Real-world modes** — incremental windows, SCD2 tables, tables without a
59
+ primary key, CDC/replication checks.
60
+ - **CI-friendly** — JSON output, exit codes, GitHub Action.
61
+
62
+ ## Status and roadmap
63
+
64
+ | Version | Focus |
65
+ |---------|-------|
66
+ | 0.1 | Core engine: Postgres/Greenplum, DuckDB, schema diff, row diff, CLI |
67
+ | 0.2 | ClickHouse, Snowflake, SCD2, tolerances, HTML/Markdown reports |
68
+ | 0.3 | Root-cause diagnosis, `watch` mode for CDC, tables without a key |
69
+ | 1.0 | Stable Python API, docs site, connector plugins |
70
+
71
+ ## License
72
+
73
+ MIT
@@ -0,0 +1,47 @@
1
+ # whydiff
2
+
3
+ **Diff tables across databases — and find out *why* they differ.**
4
+
5
+ > 🚧 Early development. This release only reserves the name; nothing works yet.
6
+ > Star or watch the repository to follow progress.
7
+
8
+ Most diff tools tell you *whether* two tables match. whydiff aims to tell you
9
+ *what* changed and *why*:
10
+
11
+ ```
12
+ $ whydiff diff pg://prod:orders duckdb://dev.duckdb:orders --key id
13
+
14
+ rows 1,204,331 vs 1,204,331
15
+ changed 18,402 rows, all in column created_at
16
+ diagnosis constant shift of +03:00:00 → likely a timezone mismatch
17
+ ```
18
+
19
+ ## Planned features
20
+
21
+ - **Any database pair** — Postgres, Greenplum, DuckDB, Parquet/CSV first;
22
+ ClickHouse and Snowflake next; MySQL, Oracle, MSSQL later. SQL is generated
23
+ once with [sqlglot](https://github.com/tobymao/sqlglot) and transpiled to
24
+ each dialect.
25
+ - **Fast on large tables** — order-independent checksums per segment, so only
26
+ the segments that differ are downloaded and compared (in DuckDB, via Arrow).
27
+ - **Explicit type normalization** — timestamp precision and time zones,
28
+ decimal scale, float tolerance, `''` vs `NULL`, trailing spaces. Every rule
29
+ is configurable and shown in the report.
30
+ - **Root-cause diagnosis** — time zone shifts, rounding, trimming, truncation,
31
+ and differences concentrated in one slice of the data.
32
+ - **Real-world modes** — incremental windows, SCD2 tables, tables without a
33
+ primary key, CDC/replication checks.
34
+ - **CI-friendly** — JSON output, exit codes, GitHub Action.
35
+
36
+ ## Status and roadmap
37
+
38
+ | Version | Focus |
39
+ |---------|-------|
40
+ | 0.1 | Core engine: Postgres/Greenplum, DuckDB, schema diff, row diff, CLI |
41
+ | 0.2 | ClickHouse, Snowflake, SCD2, tolerances, HTML/Markdown reports |
42
+ | 0.3 | Root-cause diagnosis, `watch` mode for CDC, tables without a key |
43
+ | 1.0 | Stable Python API, docs site, connector plugins |
44
+
45
+ ## License
46
+
47
+ MIT
@@ -0,0 +1,51 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.21"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "whydiff"
7
+ version = "0.0.1"
8
+ description = "Diff tables across databases and explain why they differ."
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ license-files = ["LICENSE"]
12
+ requires-python = ">=3.10"
13
+ authors = [{ name = "ALEKSEI DONSKIKH", email = "donskikhalexey@gmail.com" }]
14
+ keywords = [
15
+ "data-diff",
16
+ "data-quality",
17
+ "data-engineering",
18
+ "reconciliation",
19
+ "database",
20
+ "postgres",
21
+ "greenplum",
22
+ "clickhouse",
23
+ "snowflake",
24
+ "duckdb",
25
+ ]
26
+ classifiers = [
27
+ "Development Status :: 1 - Planning",
28
+ "Environment :: Console",
29
+ "Intended Audience :: Developers",
30
+ "Operating System :: OS Independent",
31
+ "Programming Language :: Python :: 3",
32
+ "Programming Language :: Python :: 3 :: Only",
33
+ "Programming Language :: Python :: 3.10",
34
+ "Programming Language :: Python :: 3.11",
35
+ "Programming Language :: Python :: 3.12",
36
+ "Programming Language :: Python :: 3.13",
37
+ "Topic :: Database",
38
+ "Topic :: Software Development :: Testing",
39
+ ]
40
+ dependencies = []
41
+
42
+ [project.urls]
43
+ Homepage = "https://github.com/alekseidonskikh/whydiff"
44
+ Repository = "https://github.com/alekseidonskikh/whydiff"
45
+ Issues = "https://github.com/alekseidonskikh/whydiff/issues"
46
+
47
+ [project.scripts]
48
+ whydiff = "whydiff.cli:main"
49
+
50
+ [tool.hatch.build.targets.wheel]
51
+ packages = ["src/whydiff"]
@@ -0,0 +1,3 @@
1
+ """whydiff: diff tables across databases and explain why they differ."""
2
+
3
+ __version__ = "0.0.1"
@@ -0,0 +1,3 @@
1
+ from whydiff.cli import main
2
+
3
+ raise SystemExit(main())
@@ -0,0 +1,20 @@
1
+ import sys
2
+
3
+ from whydiff import __version__
4
+
5
+ MESSAGE = (
6
+ f"whydiff {__version__}: the name is reserved and the tool is in early development.\n"
7
+ "Follow progress at https://github.com/alekseidonskikh/whydiff"
8
+ )
9
+
10
+
11
+ def main() -> int:
12
+ if "--version" in sys.argv[1:]:
13
+ print(__version__)
14
+ else:
15
+ print(MESSAGE)
16
+ return 0
17
+
18
+
19
+ if __name__ == "__main__":
20
+ raise SystemExit(main())