sqlh 0.2.3__tar.gz → 0.2.4__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.
- {sqlh-0.2.3 → sqlh-0.2.4}/PKG-INFO +6 -13
- {sqlh-0.2.3 → sqlh-0.2.4}/README.md +5 -12
- {sqlh-0.2.3 → sqlh-0.2.4}/pyproject.toml +1 -2
- {sqlh-0.2.3 → sqlh-0.2.4}/sqlh/__init__.py +1 -1
- {sqlh-0.2.3 → sqlh-0.2.4}/sqlh/.DS_Store +0 -0
- {sqlh-0.2.3 → sqlh-0.2.4}/sqlh/cli.py +0 -0
- {sqlh-0.2.3 → sqlh-0.2.4}/sqlh/core/graph.py +0 -0
- {sqlh-0.2.3 → sqlh-0.2.4}/sqlh/core/helper.py +0 -0
- {sqlh-0.2.3 → sqlh-0.2.4}/sqlh/core/keywords.py +0 -0
- {sqlh-0.2.3 → sqlh-0.2.4}/sqlh/static/dagre_template.html +0 -0
- {sqlh-0.2.3 → sqlh-0.2.4}/sqlh/static/mermaid_template.html +0 -0
- {sqlh-0.2.3 → sqlh-0.2.4}/sqlh/tests/test_cli.py +0 -0
- {sqlh-0.2.3 → sqlh-0.2.4}/sqlh/tests/test_graph.py +0 -0
- {sqlh-0.2.3 → sqlh-0.2.4}/sqlh/tests/test_import.py +0 -0
- {sqlh-0.2.3 → sqlh-0.2.4}/sqlh/tests/test_sqlhelper.py +0 -0
- {sqlh-0.2.3 → sqlh-0.2.4}/sqlh/tests/test_utils.py +0 -0
- {sqlh-0.2.3 → sqlh-0.2.4}/sqlh/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: sqlh
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: A lightweight SQL lineage analysis library for tracking table dependencies in data pipelines
|
|
5
5
|
Keywords: sql,lineage,data-pipeline,dag,dependency,database,etl,data-engineering
|
|
6
6
|
Maintainer: Perry DU
|
|
@@ -30,7 +30,7 @@ A lightweight Python library for analyzing SQL lineage and tracking table depend
|
|
|
30
30
|
## Installation
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
pip install
|
|
33
|
+
pip install sqlh
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
## Quick Start
|
|
@@ -38,7 +38,7 @@ pip install mini-sqllineage
|
|
|
38
38
|
### Python API
|
|
39
39
|
|
|
40
40
|
```python
|
|
41
|
-
from
|
|
41
|
+
from sqlh import (
|
|
42
42
|
get_all_tables,
|
|
43
43
|
get_all_root_tables,
|
|
44
44
|
search_related_upstream_tables,
|
|
@@ -95,7 +95,7 @@ sqlh web -p /path/to/sql/files
|
|
|
95
95
|
### DagGraph Class
|
|
96
96
|
|
|
97
97
|
```python
|
|
98
|
-
from
|
|
98
|
+
from sqlh import DagGraph
|
|
99
99
|
|
|
100
100
|
dag = DagGraph()
|
|
101
101
|
dag.add_edge("table_a", "table_b")
|
|
@@ -202,7 +202,7 @@ graph LR
|
|
|
202
202
|
|
|
203
203
|
```bash
|
|
204
204
|
# Clone the repository
|
|
205
|
-
git clone https://github.com/
|
|
205
|
+
git clone https://github.com/dupen01/mini-sqllineage.git
|
|
206
206
|
cd mini-sqllineage
|
|
207
207
|
|
|
208
208
|
# Install in development mode
|
|
@@ -213,16 +213,13 @@ pytest
|
|
|
213
213
|
|
|
214
214
|
# Run linting
|
|
215
215
|
ruff check .
|
|
216
|
-
|
|
217
|
-
# Run type checking
|
|
218
|
-
mypy sqllineage
|
|
219
216
|
```
|
|
220
217
|
|
|
221
218
|
### Project Structure
|
|
222
219
|
|
|
223
220
|
```
|
|
224
221
|
mini-sqllineage/
|
|
225
|
-
├──
|
|
222
|
+
├── sqlh/
|
|
226
223
|
│ ├── __init__.py
|
|
227
224
|
│ ├── cli.py # Command-line interface
|
|
228
225
|
│ ├── utils.py # Utility functions
|
|
@@ -243,10 +240,6 @@ Contributions are welcome! Please feel free to submit a Pull Request.
|
|
|
243
240
|
|
|
244
241
|
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
245
242
|
|
|
246
|
-
## Changelog
|
|
247
|
-
|
|
248
|
-
See [CHANGELOG.md](CHANGELOG.md) for a list of changes.
|
|
249
|
-
|
|
250
243
|
## TODO
|
|
251
244
|
|
|
252
245
|
- [ ] Fuzzy search for table names with suggestions
|
|
@@ -20,7 +20,7 @@ A lightweight Python library for analyzing SQL lineage and tracking table depend
|
|
|
20
20
|
## Installation
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
-
pip install
|
|
23
|
+
pip install sqlh
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
## Quick Start
|
|
@@ -28,7 +28,7 @@ pip install mini-sqllineage
|
|
|
28
28
|
### Python API
|
|
29
29
|
|
|
30
30
|
```python
|
|
31
|
-
from
|
|
31
|
+
from sqlh import (
|
|
32
32
|
get_all_tables,
|
|
33
33
|
get_all_root_tables,
|
|
34
34
|
search_related_upstream_tables,
|
|
@@ -85,7 +85,7 @@ sqlh web -p /path/to/sql/files
|
|
|
85
85
|
### DagGraph Class
|
|
86
86
|
|
|
87
87
|
```python
|
|
88
|
-
from
|
|
88
|
+
from sqlh import DagGraph
|
|
89
89
|
|
|
90
90
|
dag = DagGraph()
|
|
91
91
|
dag.add_edge("table_a", "table_b")
|
|
@@ -192,7 +192,7 @@ graph LR
|
|
|
192
192
|
|
|
193
193
|
```bash
|
|
194
194
|
# Clone the repository
|
|
195
|
-
git clone https://github.com/
|
|
195
|
+
git clone https://github.com/dupen01/mini-sqllineage.git
|
|
196
196
|
cd mini-sqllineage
|
|
197
197
|
|
|
198
198
|
# Install in development mode
|
|
@@ -203,16 +203,13 @@ pytest
|
|
|
203
203
|
|
|
204
204
|
# Run linting
|
|
205
205
|
ruff check .
|
|
206
|
-
|
|
207
|
-
# Run type checking
|
|
208
|
-
mypy sqllineage
|
|
209
206
|
```
|
|
210
207
|
|
|
211
208
|
### Project Structure
|
|
212
209
|
|
|
213
210
|
```
|
|
214
211
|
mini-sqllineage/
|
|
215
|
-
├──
|
|
212
|
+
├── sqlh/
|
|
216
213
|
│ ├── __init__.py
|
|
217
214
|
│ ├── cli.py # Command-line interface
|
|
218
215
|
│ ├── utils.py # Utility functions
|
|
@@ -233,10 +230,6 @@ Contributions are welcome! Please feel free to submit a Pull Request.
|
|
|
233
230
|
|
|
234
231
|
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
235
232
|
|
|
236
|
-
## Changelog
|
|
237
|
-
|
|
238
|
-
See [CHANGELOG.md](CHANGELOG.md) for a list of changes.
|
|
239
|
-
|
|
240
233
|
## TODO
|
|
241
234
|
|
|
242
235
|
- [ ] Fuzzy search for table names with suggestions
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|