sql-dag-flow 0.4.9__tar.gz → 0.5.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 (22) hide show
  1. {sql_dag_flow-0.4.9/src/sql_dag_flow.egg-info → sql_dag_flow-0.5.0}/PKG-INFO +1 -1
  2. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/pyproject.toml +1 -1
  3. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/main.py +16 -6
  4. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0/src/sql_dag_flow.egg-info}/PKG-INFO +1 -1
  5. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/LICENSE +0 -0
  6. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/MANIFEST.in +0 -0
  7. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/README.md +0 -0
  8. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/setup.cfg +0 -0
  9. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/__init__.py +0 -0
  10. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/parser.py +0 -0
  11. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/static/assets/index-BM6GPh_j.css +0 -0
  12. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/static/assets/index-ZylJfG6u.js +0 -0
  13. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/static/index.html +0 -0
  14. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/static/vite.svg +0 -0
  15. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/test_api_endpoints.py +0 -0
  16. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/test_parser.py +0 -0
  17. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/verify_counts.py +0 -0
  18. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow.egg-info/SOURCES.txt +0 -0
  19. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow.egg-info/dependency_links.txt +0 -0
  20. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow.egg-info/entry_points.txt +0 -0
  21. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow.egg-info/requires.txt +0 -0
  22. {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sql-dag-flow
3
- Version: 0.4.9
3
+ Version: 0.5.0
4
4
  Summary: A sophisticated SQL lineage visualization tool for Medallion Architectures.
5
5
  Author-email: Flavio Sandoval <dsandovalflavio@gmail.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sql-dag-flow"
7
- version = "0.4.9"
7
+ version = "0.5.0"
8
8
  description = "A sophisticated SQL lineage visualization tool for Medallion Architectures."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -43,9 +43,14 @@ def get_graph(dialect: str = "bigquery", discovery: bool = False, expanded_nodes
43
43
  return {"nodes": [], "edges": [], "cycles": [], "error": "Directory not found"}
44
44
 
45
45
  exp_nodes_list = [n.strip() for n in expanded_nodes.split(",")] if expanded_nodes else []
46
- tables = parse_sql_files(CURRENT_DIRECTORY, dialect=dialect)
47
- nodes, edges, cycles = build_graph(tables, discovery_mode=discovery, expanded_nodes=exp_nodes_list)
48
- return {"nodes": nodes, "edges": edges, "cycles": cycles}
46
+ try:
47
+ tables = parse_sql_files(CURRENT_DIRECTORY, dialect=dialect)
48
+ nodes, edges, cycles = build_graph(tables, discovery_mode=discovery, expanded_nodes=exp_nodes_list)
49
+ return {"nodes": nodes, "edges": edges, "cycles": cycles}
50
+ except Exception as e:
51
+ import traceback
52
+ traceback.print_exc()
53
+ return {"nodes": [], "edges": [], "error": f"Backend Error: {str(e)}"}
49
54
 
50
55
  @app.post("/config/path")
51
56
  def set_path(path_data: dict = Body(...)):
@@ -99,9 +104,14 @@ def get_filtered_graph(data: dict = Body(...)):
99
104
  discovery = data.get("discovery", False)
100
105
  expanded_nodes = data.get("expanded_nodes", [])
101
106
 
102
- tables = parse_sql_files(CURRENT_DIRECTORY, allowed_subfolders=subfolders, dialect=dialect)
103
- nodes, edges, cycles = build_graph(tables, discovery_mode=discovery, expanded_nodes=expanded_nodes)
104
- return {"nodes": nodes, "edges": edges, "cycles": cycles}
107
+ try:
108
+ tables = parse_sql_files(CURRENT_DIRECTORY, allowed_subfolders=subfolders, dialect=dialect)
109
+ nodes, edges, cycles = build_graph(tables, discovery_mode=discovery, expanded_nodes=expanded_nodes)
110
+ return {"nodes": nodes, "edges": edges, "cycles": cycles}
111
+ except Exception as e:
112
+ import traceback
113
+ traceback.print_exc()
114
+ return {"nodes": [], "edges": [], "error": f"Backend Error: {str(e)}"}
105
115
 
106
116
  @app.get("/config/path")
107
117
  def get_path():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sql-dag-flow
3
- Version: 0.4.9
3
+ Version: 0.5.0
4
4
  Summary: A sophisticated SQL lineage visualization tool for Medallion Architectures.
5
5
  Author-email: Flavio Sandoval <dsandovalflavio@gmail.com>
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes