de-agent 0.2.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.
Files changed (229) hide show
  1. de_agent-0.2.0/.gitignore +22 -0
  2. de_agent-0.2.0/LICENSE +202 -0
  3. de_agent-0.2.0/NOTICE +6 -0
  4. de_agent-0.2.0/PKG-INFO +94 -0
  5. de_agent-0.2.0/README.md +16 -0
  6. de_agent-0.2.0/pyproject.toml +67 -0
  7. de_agent-0.2.0/src/de_agent/__init__.py +1 -0
  8. de_agent-0.2.0/src/de_agent/applyplan.py +270 -0
  9. de_agent-0.2.0/src/de_agent/approval.py +110 -0
  10. de_agent-0.2.0/src/de_agent/cli.py +650 -0
  11. de_agent-0.2.0/src/de_agent/cliclass.py +1651 -0
  12. de_agent-0.2.0/src/de_agent/clients.py +74 -0
  13. de_agent-0.2.0/src/de_agent/collectors/__init__.py +31 -0
  14. de_agent-0.2.0/src/de_agent/collectors/_airflow_core.py +343 -0
  15. de_agent-0.2.0/src/de_agent/collectors/_pack_http_core.py +219 -0
  16. de_agent-0.2.0/src/de_agent/collectors/airflow.py +125 -0
  17. de_agent-0.2.0/src/de_agent/collectors/aws/__init__.py +172 -0
  18. de_agent-0.2.0/src/de_agent/collectors/aws/_aws_core.py +823 -0
  19. de_agent-0.2.0/src/de_agent/collectors/base.py +66 -0
  20. de_agent-0.2.0/src/de_agent/collectors/dbt.py +198 -0
  21. de_agent-0.2.0/src/de_agent/collectors/pack_base.py +225 -0
  22. de_agent-0.2.0/src/de_agent/collectors/pack_cli.py +93 -0
  23. de_agent-0.2.0/src/de_agent/collectors/pack_http.py +137 -0
  24. de_agent-0.2.0/src/de_agent/collectors/pack_sql.py +217 -0
  25. de_agent-0.2.0/src/de_agent/collectors/postgres.py +285 -0
  26. de_agent-0.2.0/src/de_agent/collectors/redshift.py +815 -0
  27. de_agent-0.2.0/src/de_agent/config.py +450 -0
  28. de_agent-0.2.0/src/de_agent/configdoc.py +115 -0
  29. de_agent-0.2.0/src/de_agent/data/sql_cases.yaml +1735 -0
  30. de_agent-0.2.0/src/de_agent/diff.py +280 -0
  31. de_agent-0.2.0/src/de_agent/extract.py +662 -0
  32. de_agent-0.2.0/src/de_agent/find.py +218 -0
  33. de_agent-0.2.0/src/de_agent/hubpath.py +32 -0
  34. de_agent-0.2.0/src/de_agent/initcmd.py +49 -0
  35. de_agent-0.2.0/src/de_agent/lint.py +297 -0
  36. de_agent-0.2.0/src/de_agent/packs/__init__.py +5 -0
  37. de_agent-0.2.0/src/de_agent/packs/argv.py +269 -0
  38. de_agent-0.2.0/src/de_agent/packs/bigquery.yaml +67 -0
  39. de_agent-0.2.0/src/de_agent/packs/check.py +228 -0
  40. de_agent-0.2.0/src/de_agent/packs/cli.py +147 -0
  41. de_agent-0.2.0/src/de_agent/packs/dagster.yaml +59 -0
  42. de_agent-0.2.0/src/de_agent/packs/databricks-system.yaml +44 -0
  43. de_agent-0.2.0/src/de_agent/packs/databricks.yaml +56 -0
  44. de_agent-0.2.0/src/de_agent/packs/errors.py +6 -0
  45. de_agent-0.2.0/src/de_agent/packs/expr.py +314 -0
  46. de_agent-0.2.0/src/de_agent/packs/fivetran.yaml +30 -0
  47. de_agent-0.2.0/src/de_agent/packs/gcp.yaml +53 -0
  48. de_agent-0.2.0/src/de_agent/packs/kubernetes.yaml +64 -0
  49. de_agent-0.2.0/src/de_agent/packs/loader.py +85 -0
  50. de_agent-0.2.0/src/de_agent/packs/model.py +154 -0
  51. de_agent-0.2.0/src/de_agent/packs/mssql.yaml +61 -0
  52. de_agent-0.2.0/src/de_agent/packs/mysql.yaml +53 -0
  53. de_agent-0.2.0/src/de_agent/packs/postgres-lite.yaml +65 -0
  54. de_agent-0.2.0/src/de_agent/packs/scaffold.py +75 -0
  55. de_agent-0.2.0/src/de_agent/packs/snowflake.yaml +91 -0
  56. de_agent-0.2.0/src/de_agent/packs/template.py +111 -0
  57. de_agent-0.2.0/src/de_agent/packs/view.py +64 -0
  58. de_agent-0.2.0/src/de_agent/plans.py +621 -0
  59. de_agent-0.2.0/src/de_agent/pyscan.py +214 -0
  60. de_agent-0.2.0/src/de_agent/render.py +854 -0
  61. de_agent-0.2.0/src/de_agent/runner.py +66 -0
  62. de_agent-0.2.0/src/de_agent/scanners/__init__.py +1 -0
  63. de_agent-0.2.0/src/de_agent/scanners/airflow.py +691 -0
  64. de_agent-0.2.0/src/de_agent/scanners/catalog.py +205 -0
  65. de_agent-0.2.0/src/de_agent/scanners/common.py +146 -0
  66. de_agent-0.2.0/src/de_agent/scanners/dbt.py +99 -0
  67. de_agent-0.2.0/src/de_agent/scanners/edges.py +358 -0
  68. de_agent-0.2.0/src/de_agent/scanners/headers.py +117 -0
  69. de_agent-0.2.0/src/de_agent/scanners/pycode.py +719 -0
  70. de_agent-0.2.0/src/de_agent/scanners/pyexpr.py +308 -0
  71. de_agent-0.2.0/src/de_agent/scanners/python.py +240 -0
  72. de_agent-0.2.0/src/de_agent/scanners/run.py +288 -0
  73. de_agent-0.2.0/src/de_agent/scanners/sql.py +131 -0
  74. de_agent-0.2.0/src/de_agent/scanners/terraform.py +769 -0
  75. de_agent-0.2.0/src/de_agent/secretscan.py +28 -0
  76. de_agent-0.2.0/src/de_agent/snapshot.py +159 -0
  77. de_agent-0.2.0/src/de_agent/sqlclass.py +333 -0
  78. de_agent-0.2.0/src/de_agent/sqlexec.py +626 -0
  79. de_agent-0.2.0/src/de_agent/stepexec.py +257 -0
  80. de_agent-0.2.0/src/de_agent/templates/example/integrations/orders_etl--warehouse.md +10 -0
  81. de_agent-0.2.0/src/de_agent/templates/example/map_row.txt +1 -0
  82. de_agent-0.2.0/src/de_agent/templates/example/projects/orders_etl.md +21 -0
  83. de_agent-0.2.0/src/de_agent/templates/hub/README.md +16 -0
  84. de_agent-0.2.0/src/de_agent/templates/hub/conventions.md +15 -0
  85. de_agent-0.2.0/src/de_agent/templates/hub/de-agent.yaml +20 -0
  86. de_agent-0.2.0/src/de_agent/templates/hub/domains/_template.md +10 -0
  87. de_agent-0.2.0/src/de_agent/templates/hub/gitignore.tmpl +1 -0
  88. de_agent-0.2.0/src/de_agent/templates/hub/integrations/_template.md +12 -0
  89. de_agent-0.2.0/src/de_agent/templates/hub/map.md +17 -0
  90. de_agent-0.2.0/src/de_agent/templates/hub/projects/_template.md +24 -0
  91. de_agent-0.2.0/src/de_agent/templates/hub/status.md +23 -0
  92. de_agent-0.2.0/tests/aws_fixtures.py +144 -0
  93. de_agent-0.2.0/tests/conftest.py +82 -0
  94. de_agent-0.2.0/tests/corpus/cli_guard.yaml +908 -0
  95. de_agent-0.2.0/tests/corpus/redteam.yaml +255 -0
  96. de_agent-0.2.0/tests/fixtures/airflow_2_10/failing.json +596 -0
  97. de_agent-0.2.0/tests/fixtures/airflow_2_10/healthy.json +549 -0
  98. de_agent-0.2.0/tests/fixtures/airflow_3_0/basic.json +243 -0
  99. de_agent-0.2.0/tests/fixtures/airflow_repo/common/__init__.py +0 -0
  100. de_agent-0.2.0/tests/fixtures/airflow_repo/common/pg_utils.py +22 -0
  101. de_agent-0.2.0/tests/fixtures/airflow_repo/dags/call_proc.py +8 -0
  102. de_agent-0.2.0/tests/fixtures/airflow_repo/dags/datasets_2x.py +13 -0
  103. de_agent-0.2.0/tests/fixtures/airflow_repo/dags/factory.py +23 -0
  104. de_agent-0.2.0/tests/fixtures/airflow_repo/dags/nested_with.py +13 -0
  105. de_agent-0.2.0/tests/fixtures/airflow_repo/dags/ops/nested_folder.py +7 -0
  106. de_agent-0.2.0/tests/fixtures/airflow_repo/dags/sensors.py +10 -0
  107. de_agent-0.2.0/tests/fixtures/airflow_repo/dags/sql/load_x.sql +2 -0
  108. de_agent-0.2.0/tests/fixtures/airflow_repo/dags/sql_file.py +7 -0
  109. de_agent-0.2.0/tests/fixtures/airflow_repo/dags/sql_hook.py +22 -0
  110. de_agent-0.2.0/tests/fixtures/airflow_repo/dags/sql_kwarg.py +10 -0
  111. de_agent-0.2.0/tests/fixtures/airflow_repo/dags/taskflow.py +18 -0
  112. de_agent-0.2.0/tests/fixtures/airflow_repo/dags/unrolled.py +22 -0
  113. de_agent-0.2.0/tests/fixtures/airflow_repo/dags/util_imports.py +22 -0
  114. de_agent-0.2.0/tests/fixtures/airflow_repo/utils/dates.py +7 -0
  115. de_agent-0.2.0/tests/fixtures/aws_snapshot.json +318 -0
  116. de_agent-0.2.0/tests/fixtures/dbt/failing/manifest.json +455 -0
  117. de_agent-0.2.0/tests/fixtures/dbt/failing/run_results.json +256 -0
  118. de_agent-0.2.0/tests/fixtures/dbt/failing/sources.json +31 -0
  119. de_agent-0.2.0/tests/fixtures/dbt/healthy/manifest.json +455 -0
  120. de_agent-0.2.0/tests/fixtures/dbt/healthy/run_results.json +256 -0
  121. de_agent-0.2.0/tests/fixtures/dbt/healthy/sources.json +31 -0
  122. de_agent-0.2.0/tests/fixtures/dbt_proj/target/manifest.json +181 -0
  123. de_agent-0.2.0/tests/fixtures/pg_full.json +155 -0
  124. de_agent-0.2.0/tests/fixtures/pg_healthy.json +46 -0
  125. de_agent-0.2.0/tests/fixtures/pg_partial.json +23 -0
  126. de_agent-0.2.0/tests/fixtures/python_repo/jobs/broken.py +2 -0
  127. de_agent-0.2.0/tests/fixtures/python_repo/jobs/load_orders.py +43 -0
  128. de_agent-0.2.0/tests/fixtures/python_repo/jobs/pandas_job.py +15 -0
  129. de_agent-0.2.0/tests/fixtures/python_repo/jobs/spark_job.py +25 -0
  130. de_agent-0.2.0/tests/fixtures/python_repo/lib/__init__.py +0 -0
  131. de_agent-0.2.0/tests/fixtures/python_repo/lib/etl.py +19 -0
  132. de_agent-0.2.0/tests/fixtures/python_repo/notebooks/dbx_export.py +14 -0
  133. de_agent-0.2.0/tests/fixtures/python_repo/notebooks/orders_rollup.ipynb +11 -0
  134. de_agent-0.2.0/tests/fixtures/tf_repo/main.tf +108 -0
  135. de_agent-0.2.0/tests/fixtures/tf_repo/modules/warehouse.tf +44 -0
  136. de_agent-0.2.0/tests/fixtures/util_repo/dags/util_hops.py +10 -0
  137. de_agent-0.2.0/tests/fixtures/util_repo/dags/util_loop.py +14 -0
  138. de_agent-0.2.0/tests/fixtures/util_repo/dags/util_proc.py +15 -0
  139. de_agent-0.2.0/tests/fixtures/util_repo/sql/procs.sql +53 -0
  140. de_agent-0.2.0/tests/fixtures/util_repo/utils/__init__.py +1 -0
  141. de_agent-0.2.0/tests/fixtures/util_repo/utils/db.py +23 -0
  142. de_agent-0.2.0/tests/fixtures/util_repo/utils/etl.py +22 -0
  143. de_agent-0.2.0/tests/fixtures/warehouse_sql/procs.sql +23 -0
  144. de_agent-0.2.0/tests/golden/af3_basic.md +80 -0
  145. de_agent-0.2.0/tests/golden/af_failing.md +79 -0
  146. de_agent-0.2.0/tests/golden/af_healthy.md +52 -0
  147. de_agent-0.2.0/tests/golden/aws_athena_section.md +20 -0
  148. de_agent-0.2.0/tests/golden/aws_cloudwatch_section.md +8 -0
  149. de_agent-0.2.0/tests/golden/aws_dms_section.md +22 -0
  150. de_agent-0.2.0/tests/golden/aws_firehose_section.md +8 -0
  151. de_agent-0.2.0/tests/golden/aws_full.md +115 -0
  152. de_agent-0.2.0/tests/golden/aws_glue_section.md +24 -0
  153. de_agent-0.2.0/tests/golden/aws_s3_section.md +9 -0
  154. de_agent-0.2.0/tests/golden/aws_split_index.md +33 -0
  155. de_agent-0.2.0/tests/golden/dbt_failing.md +70 -0
  156. de_agent-0.2.0/tests/golden/dbt_healthy.md +63 -0
  157. de_agent-0.2.0/tests/golden/pack_bigquery.md +50 -0
  158. de_agent-0.2.0/tests/golden/pack_dagster.md +36 -0
  159. de_agent-0.2.0/tests/golden/pack_databricks-system.md +36 -0
  160. de_agent-0.2.0/tests/golden/pack_databricks.md +42 -0
  161. de_agent-0.2.0/tests/golden/pack_fivetran.md +28 -0
  162. de_agent-0.2.0/tests/golden/pack_gcp.md +44 -0
  163. de_agent-0.2.0/tests/golden/pack_kubernetes.md +47 -0
  164. de_agent-0.2.0/tests/golden/pack_mssql.md +43 -0
  165. de_agent-0.2.0/tests/golden/pack_mysql.md +43 -0
  166. de_agent-0.2.0/tests/golden/pack_postgres-lite.md +46 -0
  167. de_agent-0.2.0/tests/golden/pack_snowflake.md +66 -0
  168. de_agent-0.2.0/tests/golden/pg_full.md +92 -0
  169. de_agent-0.2.0/tests/golden/pg_healthy.md +41 -0
  170. de_agent-0.2.0/tests/golden/pg_partial.md +25 -0
  171. de_agent-0.2.0/tests/golden/redshift_degraded.md +130 -0
  172. de_agent-0.2.0/tests/golden/redshift_healthy.md +103 -0
  173. de_agent-0.2.0/tests/golden/scan_python.md +40 -0
  174. de_agent-0.2.0/tests/golden/scan_terraform.md +69 -0
  175. de_agent-0.2.0/tests/golden/scan_util_airflow.md +16 -0
  176. de_agent-0.2.0/tests/golden/scan_util_edges.md +60 -0
  177. de_agent-0.2.0/tests/packs_fixtures.py +115 -0
  178. de_agent-0.2.0/tests/packs_helpers.py +70 -0
  179. de_agent-0.2.0/tests/redshift_fixtures.py +129 -0
  180. de_agent-0.2.0/tests/test_airflow_collector.py +390 -0
  181. de_agent-0.2.0/tests/test_audit_pack.py +38 -0
  182. de_agent-0.2.0/tests/test_aws_collector.py +529 -0
  183. de_agent-0.2.0/tests/test_aws_guard.py +102 -0
  184. de_agent-0.2.0/tests/test_aws_more.py +344 -0
  185. de_agent-0.2.0/tests/test_aws_render_edges.py +314 -0
  186. de_agent-0.2.0/tests/test_cli.py +274 -0
  187. de_agent-0.2.0/tests/test_cli_guard.py +314 -0
  188. de_agent-0.2.0/tests/test_closeout_plans.py +67 -0
  189. de_agent-0.2.0/tests/test_cold_imports.py +20 -0
  190. de_agent-0.2.0/tests/test_config.py +152 -0
  191. de_agent-0.2.0/tests/test_dbt_collector.py +191 -0
  192. de_agent-0.2.0/tests/test_demo_e2e.py +393 -0
  193. de_agent-0.2.0/tests/test_denylist.py +83 -0
  194. de_agent-0.2.0/tests/test_diff.py +194 -0
  195. de_agent-0.2.0/tests/test_docs.py +55 -0
  196. de_agent-0.2.0/tests/test_docs_examples.py +40 -0
  197. de_agent-0.2.0/tests/test_evals.py +518 -0
  198. de_agent-0.2.0/tests/test_extract.py +109 -0
  199. de_agent-0.2.0/tests/test_find.py +135 -0
  200. de_agent-0.2.0/tests/test_hooks.py +444 -0
  201. de_agent-0.2.0/tests/test_lint.py +181 -0
  202. de_agent-0.2.0/tests/test_packs_builtin.py +193 -0
  203. de_agent-0.2.0/tests/test_packs_cli.py +298 -0
  204. de_agent-0.2.0/tests/test_packs_enforcement.py +781 -0
  205. de_agent-0.2.0/tests/test_packs_expr.py +223 -0
  206. de_agent-0.2.0/tests/test_packs_http.py +194 -0
  207. de_agent-0.2.0/tests/test_packs_live.py +264 -0
  208. de_agent-0.2.0/tests/test_plan_steps.py +449 -0
  209. de_agent-0.2.0/tests/test_plans.py +534 -0
  210. de_agent-0.2.0/tests/test_postgres_collector.py +328 -0
  211. de_agent-0.2.0/tests/test_recovered.py +122 -0
  212. de_agent-0.2.0/tests/test_redshift_collector.py +635 -0
  213. de_agent-0.2.0/tests/test_redshift_single_pass.py +440 -0
  214. de_agent-0.2.0/tests/test_redteam.py +271 -0
  215. de_agent-0.2.0/tests/test_release_meta.py +33 -0
  216. de_agent-0.2.0/tests/test_release_script.py +192 -0
  217. de_agent-0.2.0/tests/test_render.py +101 -0
  218. de_agent-0.2.0/tests/test_render_m1b.py +34 -0
  219. de_agent-0.2.0/tests/test_scan_airflow.py +165 -0
  220. de_agent-0.2.0/tests/test_scan_perf.py +142 -0
  221. de_agent-0.2.0/tests/test_scan_run.py +347 -0
  222. de_agent-0.2.0/tests/test_scan_v02.py +496 -0
  223. de_agent-0.2.0/tests/test_session_hook.py +145 -0
  224. de_agent-0.2.0/tests/test_snapshot_m3.py +46 -0
  225. de_agent-0.2.0/tests/test_sqlclass.py +37 -0
  226. de_agent-0.2.0/tests/test_sqlexec.py +122 -0
  227. de_agent-0.2.0/tests/test_stop_check.py +116 -0
  228. de_agent-0.2.0/tests/test_test_guard.py +277 -0
  229. de_agent-0.2.0/tests/test_walkthrough.py +246 -0
@@ -0,0 +1,22 @@
1
+ .venv/
2
+ __pycache__/
3
+ .dea/
4
+ *.egg-info
5
+ dist/
6
+ .pytest_cache/
7
+ .ruff_cache/
8
+ demo/platform/
9
+ demo/extra-ca/*.pem
10
+ demo/dbt/acme/target/
11
+ demo/dbt/acme/logs/
12
+ demo/dbt/acme/dbt_packages/
13
+ .DS_Store
14
+ demo/catalog/
15
+ .coverage
16
+ htmlcov/
17
+ .env
18
+ .env.*
19
+ !.env.example
20
+ *.approved
21
+ approve.key
22
+ .claude/
de_agent-0.2.0/LICENSE ADDED
@@ -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 [yyyy] [name of copyright owner]
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.
de_agent-0.2.0/NOTICE ADDED
@@ -0,0 +1,6 @@
1
+ de-agent
2
+ Copyright the de-agent maintainers. Licensed under the Apache License 2.0.
3
+
4
+ This product bundles third-party software:
5
+
6
+ - sqlglot 30.25.0 (scripts/_vendor/sqlglot), MIT License. See scripts/_vendor/SQLGLOT_LICENSE.
@@ -0,0 +1,94 @@
1
+ Metadata-Version: 2.5
2
+ Name: de-agent
3
+ Version: 0.2.0
4
+ Summary: Ground-truth context, guardrails and workflows for data engineering with Claude Code
5
+ Project-URL: Homepage, https://github.com/Rafid-Bin-Sadeque/de-agent
6
+ Project-URL: Documentation, https://github.com/Rafid-Bin-Sadeque/de-agent#readme
7
+ Project-URL: Repository, https://github.com/Rafid-Bin-Sadeque/de-agent
8
+ Project-URL: Issues, https://github.com/Rafid-Bin-Sadeque/de-agent/issues
9
+ Project-URL: Changelog, https://github.com/Rafid-Bin-Sadeque/de-agent/blob/main/CHANGELOG.md
10
+ Author: de-agent maintainers
11
+ License-Expression: Apache-2.0
12
+ License-File: LICENSE
13
+ License-File: NOTICE
14
+ Keywords: airflow,bigquery,claude-code,data-engineering,databricks,dbt,guardrails,postgres,redshift,snowflake
15
+ Classifier: Development Status :: 4 - Beta
16
+ Classifier: Environment :: Console
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: Operating System :: MacOS
19
+ Classifier: Operating System :: POSIX :: Linux
20
+ Classifier: Programming Language :: Python :: 3
21
+ Classifier: Programming Language :: Python :: 3.10
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Topic :: Database
26
+ Classifier: Topic :: Software Development :: Quality Assurance
27
+ Requires-Python: >=3.10
28
+ Requires-Dist: jmespath>=1.0
29
+ Requires-Dist: pydantic>=2
30
+ Requires-Dist: pyyaml
31
+ Requires-Dist: sqlglot<31,>=30
32
+ Requires-Dist: typer
33
+ Provides-Extra: all
34
+ Requires-Dist: boto3; extra == 'all'
35
+ Requires-Dist: databricks-sql-connector; extra == 'all'
36
+ Requires-Dist: psycopg[binary]>=3.1; extra == 'all'
37
+ Requires-Dist: pymysql; extra == 'all'
38
+ Requires-Dist: pyodbc; extra == 'all'
39
+ Requires-Dist: python-hcl2>=4; extra == 'all'
40
+ Requires-Dist: snowflake-connector-python; extra == 'all'
41
+ Requires-Dist: snowflake-sqlalchemy; extra == 'all'
42
+ Requires-Dist: sqlalchemy-bigquery; extra == 'all'
43
+ Requires-Dist: sqlalchemy>=2; extra == 'all'
44
+ Provides-Extra: aws
45
+ Requires-Dist: boto3; extra == 'aws'
46
+ Provides-Extra: bigquery
47
+ Requires-Dist: sqlalchemy-bigquery; extra == 'bigquery'
48
+ Requires-Dist: sqlalchemy>=2; extra == 'bigquery'
49
+ Provides-Extra: databricks
50
+ Requires-Dist: databricks-sql-connector; extra == 'databricks'
51
+ Requires-Dist: sqlalchemy>=2; extra == 'databricks'
52
+ Provides-Extra: dev
53
+ Requires-Dist: boto3; extra == 'dev'
54
+ Requires-Dist: moto[all]; extra == 'dev'
55
+ Requires-Dist: psycopg[binary]>=3.1; extra == 'dev'
56
+ Requires-Dist: pymysql; extra == 'dev'
57
+ Requires-Dist: pytest; extra == 'dev'
58
+ Requires-Dist: pytest-cov; extra == 'dev'
59
+ Requires-Dist: python-hcl2>=4; extra == 'dev'
60
+ Requires-Dist: ruff; extra == 'dev'
61
+ Requires-Dist: sqlalchemy>=2; extra == 'dev'
62
+ Provides-Extra: mssql
63
+ Requires-Dist: pyodbc; extra == 'mssql'
64
+ Requires-Dist: sqlalchemy>=2; extra == 'mssql'
65
+ Provides-Extra: mysql
66
+ Requires-Dist: pymysql; extra == 'mysql'
67
+ Requires-Dist: sqlalchemy>=2; extra == 'mysql'
68
+ Provides-Extra: pg
69
+ Requires-Dist: psycopg[binary]>=3.1; extra == 'pg'
70
+ Requires-Dist: sqlalchemy>=2; extra == 'pg'
71
+ Provides-Extra: snowflake
72
+ Requires-Dist: snowflake-connector-python; extra == 'snowflake'
73
+ Requires-Dist: snowflake-sqlalchemy; extra == 'snowflake'
74
+ Requires-Dist: sqlalchemy>=2; extra == 'snowflake'
75
+ Provides-Extra: terraform
76
+ Requires-Dist: python-hcl2>=4; extra == 'terraform'
77
+ Description-Content-Type: text/markdown
78
+
79
+ # de-agent
80
+
81
+ The `dea` command-line tool of **de-agent**: ground-truth context, enforced guardrails and workflows for data engineering with
82
+ [Claude Code](https://claude.com/claude-code).
83
+
84
+ `dea` collects live platform state (Postgres, Redshift, Airflow, dbt, AWS, and anything with SQL, a CLI or an HTTP API through packs) read-only into timestamped markdown, scans your repos into table-level
85
+ lineage, searches both (`dea find`), and runs the plan, approve, apply workflow that keeps an agent from writing to a database without a human's
86
+ signature. The Claude Code plugin (skills, agents, hooks) lives in the same repository and is installed separately.
87
+
88
+ ```bash
89
+ uv tool install 'de-agent[pg,aws]' # or: pipx install 'de-agent[pg,aws]'
90
+ # extras: pg = psycopg driver, aws = boto3 (AWS collectors, Redshift Data API), mysql / snowflake / bigquery / databricks / mssql = drivers for the SQL packs; install only what you use
91
+ dea init --name "My platform" && dea doctor
92
+ ```
93
+
94
+ Documentation, the plugin, the safety model and the eval results: <https://github.com/Rafid-Bin-Sadeque/de-agent>. Apache-2.0.
@@ -0,0 +1,16 @@
1
+ # de-agent
2
+
3
+ The `dea` command-line tool of **de-agent**: ground-truth context, enforced guardrails and workflows for data engineering with
4
+ [Claude Code](https://claude.com/claude-code).
5
+
6
+ `dea` collects live platform state (Postgres, Redshift, Airflow, dbt, AWS, and anything with SQL, a CLI or an HTTP API through packs) read-only into timestamped markdown, scans your repos into table-level
7
+ lineage, searches both (`dea find`), and runs the plan, approve, apply workflow that keeps an agent from writing to a database without a human's
8
+ signature. The Claude Code plugin (skills, agents, hooks) lives in the same repository and is installed separately.
9
+
10
+ ```bash
11
+ uv tool install 'de-agent[pg,aws]' # or: pipx install 'de-agent[pg,aws]'
12
+ # extras: pg = psycopg driver, aws = boto3 (AWS collectors, Redshift Data API), mysql / snowflake / bigquery / databricks / mssql = drivers for the SQL packs; install only what you use
13
+ dea init --name "My platform" && dea doctor
14
+ ```
15
+
16
+ Documentation, the plugin, the safety model and the eval results: <https://github.com/Rafid-Bin-Sadeque/de-agent>. Apache-2.0.
@@ -0,0 +1,67 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.27"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "de-agent"
7
+ version = "0.2.0"
8
+ description = "Ground-truth context, guardrails and workflows for data engineering with Claude Code"
9
+ readme = "README.md"
10
+ license = "Apache-2.0"
11
+ license-files = ["LICENSE", "NOTICE"]
12
+ requires-python = ">=3.10"
13
+ authors = [{ name = "de-agent maintainers" }]
14
+ keywords = ["data-engineering", "claude-code", "airflow", "dbt", "redshift", "postgres", "snowflake", "bigquery", "databricks", "guardrails"]
15
+ classifiers = [
16
+ "Development Status :: 4 - Beta",
17
+ "Environment :: Console",
18
+ "Intended Audience :: Developers",
19
+ "Operating System :: MacOS",
20
+ "Operating System :: POSIX :: Linux",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3.10",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Programming Language :: Python :: 3.13",
26
+ "Topic :: Database",
27
+ "Topic :: Software Development :: Quality Assurance",
28
+ ]
29
+ dependencies = ["sqlglot>=30,<31", "pydantic>=2", "pyyaml", "typer", "jmespath>=1.0"]
30
+
31
+ [project.optional-dependencies]
32
+ aws = ["boto3"]
33
+ pg = ["psycopg[binary]>=3.1", "sqlalchemy>=2"]
34
+ mysql = ["pymysql", "sqlalchemy>=2"]
35
+ snowflake = ["snowflake-sqlalchemy", "snowflake-connector-python", "sqlalchemy>=2"]
36
+ bigquery = ["sqlalchemy-bigquery", "sqlalchemy>=2"]
37
+ databricks = ["databricks-sql-connector", "sqlalchemy>=2"]
38
+ mssql = ["pyodbc", "sqlalchemy>=2"]
39
+ terraform = ["python-hcl2>=4"]
40
+ all = ["de-agent[aws,pg,mysql,snowflake,bigquery,databricks,mssql,terraform]"]
41
+ dev = ["pytest", "pytest-cov", "ruff", "boto3", "moto[all]", "psycopg[binary]>=3.1", "sqlalchemy>=2", "pymysql", "python-hcl2>=4"]
42
+
43
+ [project.urls]
44
+ Homepage = "https://github.com/Rafid-Bin-Sadeque/de-agent"
45
+ Documentation = "https://github.com/Rafid-Bin-Sadeque/de-agent#readme"
46
+ Repository = "https://github.com/Rafid-Bin-Sadeque/de-agent"
47
+ Issues = "https://github.com/Rafid-Bin-Sadeque/de-agent/issues"
48
+ Changelog = "https://github.com/Rafid-Bin-Sadeque/de-agent/blob/main/CHANGELOG.md"
49
+
50
+ [project.scripts]
51
+ dea = "de_agent.cli:app"
52
+
53
+ [tool.hatch.build.targets.wheel]
54
+ packages = ["src/de_agent"]
55
+
56
+ [tool.hatch.build.targets.sdist]
57
+ include = ["src/de_agent", "tests", "README.md", "LICENSE", "NOTICE", "pyproject.toml"]
58
+
59
+ [tool.pytest.ini_options]
60
+ testpaths = ["tests"]
61
+ addopts = "-m 'not perf'"
62
+ markers = [
63
+ "integration: needs docker (postgres:16); skipped when unavailable",
64
+ "demo: end-to-end against the demo stack (set DEA_DEMO=1)",
65
+ "walkthrough: scripted claude -p flow on demo fault 01 (needs DEA_DEMO=1 and the claude CLI; run locally, not in CI)",
66
+ "perf: 1,000-DAG synthetic scan timings; excluded by default, run with -m perf",
67
+ ]
@@ -0,0 +1 @@
1
+ __version__ = "0.2.0"