ripple-sql 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 (72) hide show
  1. ripple/__init__.py +31 -0
  2. ripple/answer.py +473 -0
  3. ripple/answer_page.py +214 -0
  4. ripple/cache.py +80 -0
  5. ripple/ci.py +422 -0
  6. ripple/ci_signature.py +374 -0
  7. ripple/cli.py +733 -0
  8. ripple/doctor.py +225 -0
  9. ripple/engine/__init__.py +111 -0
  10. ripple/engine/budget.py +86 -0
  11. ripple/engine/column_lineage.py +112 -0
  12. ripple/engine/column_ref.py +818 -0
  13. ripple/engine/cte_tracing.py +1309 -0
  14. ripple/engine/dependencies.py +466 -0
  15. ripple/engine/dialect.py +132 -0
  16. ripple/engine/dispatch.py +12 -0
  17. ripple/engine/extraction.py +27 -0
  18. ripple/engine/jinja.py +282 -0
  19. ripple/engine/json_sources.py +241 -0
  20. ripple/engine/macro_source.py +127 -0
  21. ripple/engine/pipeline.py +265 -0
  22. ripple/engine/preprocess.py +174 -0
  23. ripple/engine/safe_gen.py +21 -0
  24. ripple/engine/schema_qualification.py +151 -0
  25. ripple/engine/scope.py +488 -0
  26. ripple/engine/select_sources.py +1038 -0
  27. ripple/engine/sql_script.py +729 -0
  28. ripple/engine/statement.py +449 -0
  29. ripple/engine/tech_debt.py +169 -0
  30. ripple/engine/tsql_catalog.py +83 -0
  31. ripple/engine/tsql_scalar_vars.py +248 -0
  32. ripple/engine/tsql_tvf.py +653 -0
  33. ripple/engine/tsql_xml.py +97 -0
  34. ripple/engine/types.py +167 -0
  35. ripple/engine/unused_deps.py +555 -0
  36. ripple/engine/validation.py +158 -0
  37. ripple/graph.py +1499 -0
  38. ripple/home.py +232 -0
  39. ripple/loaders/__init__.py +7 -0
  40. ripple/loaders/dbt.py +359 -0
  41. ripple/loaders/dbt_config.py +339 -0
  42. ripple/loaders/identity.py +328 -0
  43. ripple/loaders/sidecar.py +65 -0
  44. ripple/loaders/sqldir.py +262 -0
  45. ripple/loaders/types.py +197 -0
  46. ripple/lookml.py +163 -0
  47. ripple/mcp_server.py +600 -0
  48. ripple/names.py +40 -0
  49. ripple/project.py +167 -0
  50. ripple/py.typed +0 -0
  51. ripple/render.py +426 -0
  52. ripple/render_shims.py +209 -0
  53. ripple/schemas.py +155 -0
  54. ripple/semantic.py +232 -0
  55. ripple/server.py +184 -0
  56. ripple/sourcefiles.py +64 -0
  57. ripple/star_resolution.py +100 -0
  58. ripple/static/answer.css +146 -0
  59. ripple/static/answer.html +358 -0
  60. ripple/static/answer_twin.js +299 -0
  61. ripple/static/explore.js +133 -0
  62. ripple/usage/__init__.py +18 -0
  63. ripple/usage/cli.py +78 -0
  64. ripple/usage/collect.py +315 -0
  65. ripple/usage/discover.py +190 -0
  66. ripple/usage/ingest.py +414 -0
  67. ripple/usage/report.py +131 -0
  68. ripple_sql-0.1.0.dist-info/METADATA +285 -0
  69. ripple_sql-0.1.0.dist-info/RECORD +72 -0
  70. ripple_sql-0.1.0.dist-info/WHEEL +4 -0
  71. ripple_sql-0.1.0.dist-info/entry_points.txt +3 -0
  72. ripple_sql-0.1.0.dist-info/licenses/LICENSE +202 -0
@@ -0,0 +1,285 @@
1
+ Metadata-Version: 2.5
2
+ Name: ripple-sql
3
+ Version: 0.1.0
4
+ Summary: Offline column-level SQL lineage. See what breaks before you merge.
5
+ Project-URL: Homepage, https://github.com/bteh/ripple
6
+ Project-URL: Repository, https://github.com/bteh/ripple
7
+ Project-URL: Issues, https://github.com/bteh/ripple/issues
8
+ Project-URL: Changelog, https://github.com/bteh/ripple/blob/main/CHANGELOG.md
9
+ Author: Brian Teh
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ Keywords: data-engineering,dbt,impact-analysis,lineage,sql
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Database
22
+ Classifier: Typing :: Typed
23
+ Requires-Python: >=3.10
24
+ Requires-Dist: jinja2<4,>=3.1
25
+ Requires-Dist: pyyaml<7,>=6.0
26
+ Requires-Dist: sqlglot<31,>=30.14
27
+ Provides-Extra: benchmark
28
+ Requires-Dist: acryl-datahub==1.6.0.16; extra == 'benchmark'
29
+ Requires-Dist: openlineage-sql==1.52.0; extra == 'benchmark'
30
+ Requires-Dist: sqllineage==1.5.8; extra == 'benchmark'
31
+ Provides-Extra: dev
32
+ Requires-Dist: lkml>=1.3; extra == 'dev'
33
+ Requires-Dist: pytest-timeout>=2.3; extra == 'dev'
34
+ Requires-Dist: pytest-xdist>=3.5; extra == 'dev'
35
+ Requires-Dist: pytest>=8.0; extra == 'dev'
36
+ Requires-Dist: ruff>=0.6; extra == 'dev'
37
+ Provides-Extra: looker
38
+ Requires-Dist: lkml>=1.3; extra == 'looker'
39
+ Description-Content-Type: text/markdown
40
+
41
+ # Ripple
42
+
43
+ ![Python](https://img.shields.io/badge/python-3.10%2B-blue)
44
+ ![License](https://img.shields.io/badge/license-Apache--2.0-green)
45
+
46
+ **See what a SQL change breaks before you merge.**
47
+
48
+ Point it at a dbt project or a folder of `.sql` files. It reads the SQL offline and answers the question you actually have:
49
+
50
+ ```console
51
+ $ ripple breaks ecom.raw_orders.order_total
52
+
53
+ 8 columns in 6 models affected by ecom.raw_orders.order_total
54
+ Hit hardest: stg_orders (2), orders (2), customers (1)
55
+
56
+ stg_orders · 2 columns · 1 hop
57
+ order_total_cents ← ecom.raw_orders.order_total
58
+ order_total ← ecom.raw_orders.order_total
59
+ orders · 2 columns · 2 hops
60
+ order_total_cents ← stg_orders.order_total_cents
61
+ order_total ← stg_orders.order_total
62
+ customers · 1 column · 3 hops
63
+ lifetime_spend ← orders.order_total
64
+ metric:order_total · 1 column · 3 hops
65
+ value ← orders.order_total
66
+ semantic:orders.order_total_dim · 1 column · 3 hops
67
+ order_total_dim ← orders.order_total
68
+ metric:lifetime_spend · 1 column · 4 hops
69
+ value ← customers.lifetime_spend
70
+ ```
71
+
72
+ Four hops out it reaches `customers.lifetime_spend` and the two metrics built on it. Now you know before you touch it, instead of after someone's dashboard goes flat.
73
+
74
+ The other direction, for when you inherit a table and have no idea where its numbers come from:
75
+
76
+ ```console
77
+ $ ripple trace customers.lifetime_spend
78
+
79
+ customers.lifetime_spend comes from:
80
+ orders.order_total → customers.lifetime_spend
81
+ stg_orders.order_total → orders.order_total
82
+ ecom.raw_orders.order_total → stg_orders.order_total
83
+ ```
84
+
85
+ Both of those are real output from [dbt's own jaffle-shop](https://github.com/dbt-labs/jaffle-shop). Clone it and run them yourself.
86
+
87
+ No warehouse connection, no account, no signup. Nothing leaves your machine.
88
+
89
+ ## Try it
90
+
91
+ ```bash
92
+ # inside your dbt project or SQL repo
93
+ uvx ripple-sql breaks stg_payments.amount
94
+ ```
95
+
96
+ Or add it to your MCP client (Claude Code, Cursor, Codex, and others) as a tool:
97
+
98
+ ```bash
99
+ claude mcp add ripple -- uvx ripple-sql mcp
100
+ ```
101
+
102
+ Then ask: *"what breaks if I change `orders.amount` to cents?"* If the client
103
+ lists ripple but the tools do nothing, `ripple doctor` tells you why.
104
+
105
+ ## Is it actually right?
106
+
107
+ Most SQL lineage tools are confidently wrong, so Ripple ships a benchmark you can rerun instead of a claim you have to trust. Real public dbt projects, hand-verified column lineage, every tool scored by the same function. The corpus and the harness are both in this repo.
108
+
109
+ | Round | cases | Ripple | DataHub | sqllineage | openlineage-sql |
110
+ |---|---|---|---|---|---|
111
+ | in-sample | 122 | **122 (100%)** | 98 (80%) | 38 (31%) | 30 (25%) |
112
+ | held-out 1 | 54 | **27 (50%)** | 22 | 5 + crash | 8 |
113
+ | held-out 2 | 62 | **29 (47%)** | 26 | 0 + crash | 4 |
114
+ | held-out 3 | 56 | **26 (46%)** | 19 | 0 + crash | 3 |
115
+ | held-out 4 | 56 | **16 (29%)** | 13 | 3 | 4 |
116
+ | held-out 5 | 56 | 30 (54%) | **31** | 3 | 3 |
117
+ | held-out 6 | 52 | 21 (40%) | **23** | 7 | 6 |
118
+ | held-out 7 | 45 | **23 (51%)** | 17 | 0 + crash | 13 |
119
+ | held-out 8 | 56 | **45 (80%)** | 24 | 11 | 7 |
120
+ | held-out 9 | 42 | **26 (62%)** | 25 | 11 | 8 |
121
+ | held-out 10 | 42 | **26 (62%)** | 20 | 10 | 8 |
122
+ | held-out 11 | 46 | **7 (15%)** | 5 | 5 | 0 |
123
+ | held-out 12 | 42 | **14 (33%)** | 14 | 0 + crash | 9 |
124
+
125
+ Thirteen numbers, because any one alone would mislead you.
126
+
127
+ The **in-sample** 100% means Ripple was debugged against those cases, so read it
128
+ as "how far ahead on hard SQL shapes," not as an accuracy claim. The
129
+ **held-out** rounds are the honest ones. Each is pre-registered: the repositories
130
+ and commit SHAs are committed and pushed before anything is cloned, the ground
131
+ truth is annotated by reading SQL only and independently re-derived by a second
132
+ reader, it is frozen and pushed before any tool runs, and the round is scored
133
+ once against a pinned commit and published as-is. Nothing is patched
134
+ retroactively. Twelve rounds, eight dialects, and every miss classified in
135
+ [`benchmark/HOLDOUT.md`](benchmark/HOLDOUT.md).
136
+
137
+ Read the spread, not an average. Rounds are not poolable: each one samples a
138
+ different corner of the world, so 15% and 80% are both true and neither is "the"
139
+ accuracy. Conventional dbt projects score at or near perfect on first contact.
140
+ Raw-SQL application repos are where every tool falls down, and where Ripple has
141
+ its worst rounds too. Round 11 scored 15% because Ripple hit an engine crash on
142
+ a versioned-migration estate, which is published in full along with the fix that
143
+ followed. Round 12 was a tie. Round 5 and round 6 were losses.
144
+
145
+ The consistent finding across twelve rounds is not that Ripple wins, it is that
146
+ Ripple is right when it answers: recent rounds carry precision at or near 1.0
147
+ with zero wrong edges, because the engine refuses instead of guessing.
148
+
149
+ Nobody else in this space publishes a held-out score, and the one prior vendor
150
+ benchmark kept its corpus private. Rerun ours, including the three tools Ripple
151
+ is compared against:
152
+
153
+ ```bash
154
+ uv pip install -e ".[benchmark]" # sqllineage, DataHub, openlineage-sql
155
+ python benchmark/fetch_corpus.py
156
+ python benchmark/run.py
157
+ ```
158
+
159
+ When Ripple isn't sure about an edge it says `review_required` instead of guessing, and that uncertainty follows the path: a result reached through one shaky hop is marked shaky even if the last hop looks clean. A typo'd name gets an error and a suggestion, never a false "nothing downstream."
160
+
161
+ ## Big repos
162
+
163
+ `ripple doctor` spawns the server exactly the way a client does and tells you
164
+ what's wrong: wrong python, something polluting the protocol stream, or a slow
165
+ start. `ripple doctor --json` is the thing to attach to a bug report.
166
+
167
+ Point it at a messy monorepo and it works out the shape itself. On a 2,600-file repo with 16 dbt projects nested at different depths, `ripple` with no arguments and no config found all 16, picked a dialect per project, and mapped 13,155 column links. The first run builds an index and takes a couple of minutes at that size. Every question after that comes from cache in about a second.
168
+
169
+ ## What it does
170
+
171
+ - `ripple`: scan the project. Models found, links mapped, what needs review.
172
+ - `ripple breaks <model.column>`: the blast radius. Every downstream column and model affected, plus row-level impact (filters, joins, and window keys that use it).
173
+ - `ripple trace <model.column>`: where a column comes from, hop by hop, back to sources.
174
+ - `ripple models` / `ripple columns <model>`: find the right names and see each column's fanout, so you know which columns are load-bearing before you touch one.
175
+ - `ripple ci --base origin/main`: the blast radius of the models you changed, as a PR-ready comment. `--fail-on breaks` fails the build so a breaking change can't merge. `--select dbt` prints just the models to rebuild, so CI builds only what the diff actually touches:
176
+
177
+ ```bash
178
+ models=$(ripple ci --base origin/main --select dbt)
179
+ [ -n "$models" ] && dbt build --select "$models"
180
+ ```
181
+
182
+ Computed from git and column lineage: no state backend, no manifest artifact to stash between runs, no meter. dbt's own `state:modified+` rebuilds every descendant of any changed file; column lineage skips descendants that never read what changed. Anything uncertain (an unparseable diff, a changed row filter, a deleted model's readers) widens to `model+` instead of being skipped, so a missed rebuild can't happen silently.
183
+ - `ripple graph -o graph.json`: export the full column-lineage graph.
184
+ - `ripple breaks orders.order_total --open` (also `trace`): the answer as one self-contained page you can send, with a box to ask the next question. `--html PATH` writes it where you say.
185
+ - `ripple ci --html PATH`: the same page for a whole change, one view per changed column; the GitHub Action attaches it to the run and links it from the comment.
186
+ - `ripple serve` (or `ripple serve orders.order_total`): the same answer page, live, opening on the whole project. Every model sits in its layer from the source tables on the left to the dashboards on the right, with the links between them. Hover a model to light its chain, click it for its columns, click a column to ask. Type in the box to filter the map or to ask by name. Under the map, where coverage stands: which external tables still block links and whether query history has been brought in. Each answer comes from your files as they are now, so edit a model and ask again. Localhost only, read-only, nothing sent.
187
+ - `ripple doctor`: verify this install can serve your MCP client, and print the exact config command with absolute paths.
188
+
189
+ ## Deterministic answers for AI-written SQL
190
+
191
+ An agent will write SQL faster than you can review it, and "the run succeeded and the row counts matched" is not evidence that it wrote the right thing. Ripple is a parser, not a model. Ask it the same question twice and you get the same answer, with its uncertainty labelled.
192
+
193
+ Run `ripple ci` on the pull request, or hand your agent the MCP server so it has to check its own
194
+ blast radius before opening one.
195
+
196
+ Ripple is built to be driven by an agent, so the line between what is parsed and what is predicted
197
+ is written down and enforced: the engine never guesses, the agent may, and you always know which one
198
+ is talking. [`docs/AI-BOUNDARY.md`](docs/AI-BOUNDARY.md) is the rule and the reasoning.
199
+
200
+ ## Bring your warehouse's schemas
201
+
202
+ Ripple never connects to your warehouse. But your SQL probably reads tables defined outside the repo, and without their columns those models stop at `SELECT *`. Fix: your agent already has warehouse access, so let it fill the gap. Ask it to "resolve ripple's unresolved tables" and it will call `unresolved_tables`, fetch the columns from `information_schema.columns`, and hand them back via `ingest_schema`. They land in `.ripple/schemas.json`, which you can commit so the whole team gets the coverage.
203
+
204
+ The credential boundary is the point. Your agent holds the connection; Ripple never does.
205
+
206
+ No agent? Same thing by hand:
207
+
208
+ ```bash
209
+ ripple unresolved # which tables block the most coverage, worst first
210
+ ripple ingest-schema cols.csv # CSV with a table,column header (or JSON, or - for stdin)
211
+ ```
212
+
213
+ ## Bring your query history (optional)
214
+
215
+ Your SQL files say what is supposed to happen. The warehouse's query log says what
216
+ actually ran. If `snow`, `bq`, or `databricks` is already set up on your machine,
217
+ one command fetches and ingests it:
218
+
219
+ ```bash
220
+ ripple collect-usage # shows what's installed and configured
221
+ ripple collect-usage snowflake # your own queries, last 7 days, no permission needed
222
+ ripple usage
223
+ ```
224
+
225
+ Collect runs your warehouse CLI with the login you already have. Ripple reads
226
+ connection names from its config, never a password or token, and never opens a
227
+ warehouse connection of its own. The raw rows go to a temp file, get aggregated,
228
+ and are deleted inside the same call; the query text is never stored and never
229
+ passes through an AI model. When several connections are configured and none is
230
+ your declared default, collect refuses and lists them instead of picking one.
231
+ `--scope account` covers everyone's queries; if that needs a grant, the error
232
+ contains the exact statement to hand an admin.
233
+
234
+ No CLI set up? Export by hand and hand the file over:
235
+
236
+ ```bash
237
+ ripple ingest-usage history.json
238
+ ripple usage
239
+ ```
240
+
241
+ Either way you get: which models actually ran in the window and which didn't, plus
242
+ the tables your queries read that live outside this repo, which is activity the SQL
243
+ files alone can't see (dashboards, scripts, other teams). `ripple usage` with no
244
+ data prints the exact export SQL to run.
245
+
246
+ Two honesty rules, enforced by tests. Ripple never says a model is unused; it says
247
+ "not seen in this window" and prints the window, because in any short export a
248
+ quarterly job looks identical to a dead one. And a statement with no database context
249
+ is counted as "skipped rather than guessed" instead of being matched to whatever
250
+ model shares its table's name.
251
+
252
+ The export never goes through an AI model, and the query text is never stored: Ripple
253
+ keeps per-table counts only. JSONL or a JSON array with a `query_text` field works;
254
+ Snowflake's `QUERY_HISTORY` column names are understood as-is.
255
+
256
+ ## Does it fit my stack?
257
+
258
+ **Reads:** dbt projects (with or without a compiled manifest), plain folders of
259
+ `.sql` files, several dbt projects nested anywhere in one monorepo, LookML
260
+ views, and dbt semantic models and metrics. Your orchestrator makes no
261
+ difference; Ripple reads the repo, not the scheduler.
262
+
263
+ **Dialects:** Snowflake, BigQuery, Databricks, Redshift, Postgres, DuckDB,
264
+ Spark SQL. Detected per project, override with `--dialect`. Powered by
265
+ [sqlglot](https://github.com/tobymao/sqlglot).
266
+
267
+ **Partially:** SQL Server (T-SQL) views and table-valued functions trace;
268
+ stored procedure bodies surface as a warning instead of wrong lineage.
269
+
270
+ **Not today:** SQL written inside Python strings (Airflow operators, Superset,
271
+ most Python ETL), DataFrame pipelines (PySpark, pandas), streaming, and
272
+ BI-internal lineage (Tableau, Power BI). Pointing Ripple at a repo like that
273
+ finds little or nothing, and it will tell you so rather than report an empty
274
+ graph as if it were an answer.
275
+
276
+ ## Cost
277
+
278
+ Ripple is Apache-2.0 and everything here is free. There is no paid version and
279
+ no plan for one. The CLI stays account-free and telemetry-free, nothing phones
280
+ home, and accuracy is never a paid tier. [`docs/VALIDATION.md`](docs/VALIDATION.md)
281
+ shows how to verify that rather than take it on trust.
282
+
283
+ ## License
284
+
285
+ Apache-2.0. Free to use, self-host, modify, and ship inside your own tooling.
@@ -0,0 +1,72 @@
1
+ ripple/__init__.py,sha256=5cAJlWeOj2eNp7j_oyU90TLP5kIjzqSDEeI_aNgzN6o,757
2
+ ripple/answer.py,sha256=JqWPQSBbNBG6LJtlvDAKX9wd1xXvPzmQam08NpkSUUA,18832
3
+ ripple/answer_page.py,sha256=U1-UUaB80_hQpE9DXO97IiXHfbCaQOl686iRV3AUK48,7254
4
+ ripple/cache.py,sha256=5vVppjSpPQTgkEvrGHdqmFQcLf-3cWFDvTi6oFU0D3I,2759
5
+ ripple/ci.py,sha256=5U8VG8jFT2UQbZuBzaeiYVwwwupR4_gEALqTRBt2hOw,16758
6
+ ripple/ci_signature.py,sha256=iuJn5Yy8MhZ0RSG5-334tzRuEH4v_TABdj1VSi9-YG4,16392
7
+ ripple/cli.py,sha256=mXOkRROrIaOiRaBqNroDUfIrqAhnCnmk2Ux3X6UZ-pU,26687
8
+ ripple/doctor.py,sha256=nt-7k_Ytt-i6vafeVuu25ZmkNgLxmYAGMHAM5b0lJiE,7463
9
+ ripple/graph.py,sha256=PjUUMj6LB9WjLbwO5SLj4l4GTfFjXdEyqcM5ewVUP8g,70354
10
+ ripple/home.py,sha256=WBSEOQtW9gpXIHexWYL3J9utjR1riGOhU5cMlQtP7xM,8930
11
+ ripple/lookml.py,sha256=0szM4SMwqGCKuHL5tz210h-JaOsX7K_5eMZIMigcbG8,5956
12
+ ripple/mcp_server.py,sha256=b-fiwH8pN-7cPDl2kChL1HeG2NtC2B0809C75IMEoEQ,26460
13
+ ripple/names.py,sha256=abzRMRK7824hI_jfvLl60Gmxt9H6Tkn7GGSqowaDeEs,1518
14
+ ripple/project.py,sha256=y20FfRuJo9YR6IESXI54oxfww2zjbFAIgj6r1wcrcwc,6646
15
+ ripple/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
+ ripple/render.py,sha256=TWhpxrU0_tWPWCczTNlTBwNe10ZLKZNinirKC5XjdC0,15004
17
+ ripple/render_shims.py,sha256=eLz5EjjaiahXCHYpJXCfgyFy0jBzT1j9mZXKMEfx65U,8421
18
+ ripple/schemas.py,sha256=pq5NIEaE8wdUhuywsCPFw7buezAwd60Ljt7GFpy9vAk,6195
19
+ ripple/semantic.py,sha256=NFgcqh0H03NDUmist_1qQQZyC4cm6nVyEaMb2GosI7A,9259
20
+ ripple/server.py,sha256=YbHNYNxDs6p3YxacnLxQ3-IVDSVF06UW7d-QoNgMaKQ,7113
21
+ ripple/sourcefiles.py,sha256=PMLdTZ13RZNtzgNP6H37NsqpoEp3iu094pghJ99NAzY,2057
22
+ ripple/star_resolution.py,sha256=RlXavwHC339YtDO7hysH6YmcfMMAf8R4y5cH3ca-mvI,4169
23
+ ripple/engine/__init__.py,sha256=ezlR6frqjG5HQx-w6X9v6mhdKbqOx-aDiDBMTCR2Zw4,3282
24
+ ripple/engine/budget.py,sha256=-8T8w_yML4C335-lpZDDbu555KmYrGOmhHavHaG57LU,2854
25
+ ripple/engine/column_lineage.py,sha256=tU5f2TH9rxQD9CbNpf07Sm8LlbAbu7m6vvpYoeGi7dw,3062
26
+ ripple/engine/column_ref.py,sha256=TpEuaRCg3iGxzyZ8L_ViMn1sSWhsUUtxFWZoJz7QY24,35071
27
+ ripple/engine/cte_tracing.py,sha256=jRtLEGrKzs30DfdOU_aY3yR3p9d75U9b0dRE1X9-36Y,56001
28
+ ripple/engine/dependencies.py,sha256=D_l7s8MDAhx23ummpusRj-ckabkrKgtn7kH1pPt-qy8,15474
29
+ ripple/engine/dialect.py,sha256=oEH4YBQITKq0xY5choTKZvANmSJWc7v5urVQcmEbKPk,4264
30
+ ripple/engine/dispatch.py,sha256=mC6DDHM0wH9T2l24Spq9JmglaoRO_iCjRtY2a0THHvo,357
31
+ ripple/engine/extraction.py,sha256=PWj-JRFe22v6VxKpBCX7hzRuQmdG11jyeFeK-9fHh5o,1062
32
+ ripple/engine/jinja.py,sha256=tHHUyNhlHS0JMErCI4rrCEeO6jW8dPckvfRirdbBlBg,10306
33
+ ripple/engine/json_sources.py,sha256=WnrOeDoNltXTixtbHxW-AHXnSreK2JAqXyp3xShRY54,9665
34
+ ripple/engine/macro_source.py,sha256=XeC983ehOkJ15zaIrb3uVYYQXQ0P1oepmhnZIE3yxPw,4195
35
+ ripple/engine/pipeline.py,sha256=WrYxdRrwaO2JkZZxx1MnxQD2TLIyIpB6TYha57xEn7s,10130
36
+ ripple/engine/preprocess.py,sha256=OXzJcVyFBBQMxvd8KsuStv9bjXp7992xi-qh-ohnq0E,7042
37
+ ripple/engine/safe_gen.py,sha256=6p0SJTDNvtypsNPeR07Dy-cRF4UFVtfDZfxUZTDY0dM,741
38
+ ripple/engine/schema_qualification.py,sha256=ur6tk4PsG5nJ-Zx9Hm4C8k9LjAbV6MAoD-pD7Ymz1OM,5091
39
+ ripple/engine/scope.py,sha256=OK2q-bZo359AAcTUMBwhA07keGgHKoIXls6ja_zmF_I,23257
40
+ ripple/engine/select_sources.py,sha256=vjQdY1e38hGl2F-Qh-pvCQGApcI8Ggg6q596-WlIhVw,48521
41
+ ripple/engine/sql_script.py,sha256=oef6UX6QprVQI_WHf-GkbLg0qs-z5jtyvsYdkZ4O6Gs,30611
42
+ ripple/engine/statement.py,sha256=3QMQp3eiTMoQ-ris-3tbIuvVFCR9sBblOf6Imd3fU8U,19356
43
+ ripple/engine/tech_debt.py,sha256=L_6dJylRSfyoGe37-max2Cgj0yIVSkJnXYAnTodq-Bk,6003
44
+ ripple/engine/tsql_catalog.py,sha256=e715W_7Vi_DE1RWSqyxNBBnnvWu8uMVWhTLy692EyV8,2744
45
+ ripple/engine/tsql_scalar_vars.py,sha256=aIJbJTj09sXLhkvGic7Tlp0PwMc6hS0ZfpwfHT8YQUM,10201
46
+ ripple/engine/tsql_tvf.py,sha256=Y77X8WX7Exrib31-8yNAvBEnoNcL5XiJ28qqlHkzwO0,23577
47
+ ripple/engine/tsql_xml.py,sha256=yPL0rSWDGLCz5wsDggd4Mhu0fgJcuSbA6O2E7yhs_KI,3717
48
+ ripple/engine/types.py,sha256=D7f7JfGUx6837Y8iKniWrIa3L5OFNQpETP8EcssvCII,6534
49
+ ripple/engine/unused_deps.py,sha256=vxEl1Dz4-sDyZBu97ICReXax-NTayaeujBQP4OR5ZpA,21465
50
+ ripple/engine/validation.py,sha256=f1nuG-APJHIWfx2IqWNxM0F6yHK5HdmTJaZ7BhCK9Tg,5111
51
+ ripple/loaders/__init__.py,sha256=cXE6xb6XKA3EbsdzWX-O3KmWsNA_sTohoZ2E0_T365Q,343
52
+ ripple/loaders/dbt.py,sha256=3jK8vcrwcu4-nWhvKFv3KxiOewQr1_BHeneIX1U6J28,13910
53
+ ripple/loaders/dbt_config.py,sha256=rNN1vtkPDg7xXqG1PZRqSnLhUkUICWlSShIpyBwNq1U,12532
54
+ ripple/loaders/identity.py,sha256=gHB3M3hpsCRWVytYMsPAakJbVvU7HGv3MjbTnvV8xCE,15156
55
+ ripple/loaders/sidecar.py,sha256=0cES2az-FudezBXjSBYLUhmQD099ISuChvgy12lThdo,2477
56
+ ripple/loaders/sqldir.py,sha256=PN8Bae6cQGpxurx4TT25dSvRs8PKRAgteskwIac2eEA,11454
57
+ ripple/loaders/types.py,sha256=nW9Tng9WS_ufDKJWXxda91kFwyg8YM23w-B066pD_vE,7885
58
+ ripple/static/answer.css,sha256=sUET2y27VfjBJOkUnvR-bYACqtc1fTSrhJnX6nVTZJE,11312
59
+ ripple/static/answer.html,sha256=ZDh9QSbnw-VyRWOTPJ9MEgtPPKMXK-Tv5TM6NwNzimE,19676
60
+ ripple/static/answer_twin.js,sha256=358KxFJLn-KFzSyvAzKuGRaNMNDlWW6HUNfKNAERU5Y,18143
61
+ ripple/static/explore.js,sha256=nTTyPMlBhoGF7zmYB6tWCvwR2CIlxh2p5s1acAqNEsY,6650
62
+ ripple/usage/__init__.py,sha256=hMojHlN1PlYtxzYQ-u2ZGr65by790Q8zJOzueKLhtGs,855
63
+ ripple/usage/cli.py,sha256=311WqqSOMXmHJeCj3KmIG1mPvtoOahTEe4dpFt6AtVo,2925
64
+ ripple/usage/collect.py,sha256=gVDGR3z8xCFn0oDKRy8baXnUFxKkiKFmtt9E6uBI77E,13247
65
+ ripple/usage/discover.py,sha256=8FtLEGtd6ymxboTWZKwHvZS2UsPq0cavYeXrPm0I_ZY,7163
66
+ ripple/usage/ingest.py,sha256=JaBfJ21ETY_H3NWswlTvrAFm73PHYjn3iCgNt85SHhw,15234
67
+ ripple/usage/report.py,sha256=qChKLqk7pJESZgAdQLHMvDdO7-ftISIrU71a-j_3Mts,5520
68
+ ripple_sql-0.1.0.dist-info/METADATA,sha256=7oo904wzEEBqE8R_5xj9fEQHHUHJOkYDBr3cS6w6EWU,15180
69
+ ripple_sql-0.1.0.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
70
+ ripple_sql-0.1.0.dist-info/entry_points.txt,sha256=Ey-SNOmWtqzOdvI4z8nw_CqR3sdbQVjU9cfxJCg95SU,72
71
+ ripple_sql-0.1.0.dist-info/licenses/LICENSE,sha256=pVdJHLJkgn4Pb6e-LZTHWlEvmq-Oy8_ttZ3gkoArbK8,11340
72
+ ripple_sql-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ ripple = ripple.cli:main
3
+ ripple-sql = ripple.cli:main
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Brian Teh
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.