lscope 0.1.1__tar.gz → 0.1.2__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.
- {lscope-0.1.1 → lscope-0.1.2}/PKG-INFO +2 -2
- lscope-0.1.2/lscope/__main__.py +10 -0
- {lscope-0.1.1 → lscope-0.1.2}/lscope/main.py +19 -12
- {lscope-0.1.1 → lscope-0.1.2}/lscope.egg-info/PKG-INFO +2 -2
- {lscope-0.1.1 → lscope-0.1.2}/lscope.egg-info/requires.txt +1 -1
- {lscope-0.1.1 → lscope-0.1.2}/pyproject.toml +2 -2
- lscope-0.1.1/lscope/__main__.py +0 -5
- {lscope-0.1.1 → lscope-0.1.2}/README.md +0 -0
- {lscope-0.1.1 → lscope-0.1.2}/lscope/__init__.py +0 -0
- {lscope-0.1.1 → lscope-0.1.2}/lscope/schema.cypher +0 -0
- {lscope-0.1.1 → lscope-0.1.2}/lscope.egg-info/SOURCES.txt +0 -0
- {lscope-0.1.1 → lscope-0.1.2}/lscope.egg-info/dependency_links.txt +0 -0
- {lscope-0.1.1 → lscope-0.1.2}/lscope.egg-info/entry_points.txt +0 -0
- {lscope-0.1.1 → lscope-0.1.2}/lscope.egg-info/top_level.txt +0 -0
- {lscope-0.1.1 → lscope-0.1.2}/setup.cfg +0 -0
- {lscope-0.1.1 → lscope-0.1.2}/test/test_main.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lscope
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: ast-grep using ladybug
|
|
5
5
|
Requires-Python: >=3.14
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -8,7 +8,7 @@ Requires-Dist: icebug>=12.9
|
|
|
8
8
|
Requires-Dist: ladybug>=0.18.0
|
|
9
9
|
Requires-Dist: pyarrow>=24.0.0
|
|
10
10
|
Requires-Dist: tqdm>=4.68.3
|
|
11
|
-
Requires-Dist: tree-sitter
|
|
11
|
+
Requires-Dist: tree-sitter==0.25.2
|
|
12
12
|
Requires-Dist: tree-sitter-c-sharp>=0.23.1
|
|
13
13
|
Requires-Dist: tree-sitter-cpp>=0.23.4
|
|
14
14
|
Requires-Dist: tree-sitter-go>=0.23.4
|
|
@@ -783,7 +783,7 @@ def find_functions(conn, pattern: str, languages: list[str] | None = None):
|
|
|
783
783
|
{"pattern": pattern},
|
|
784
784
|
)
|
|
785
785
|
)
|
|
786
|
-
return
|
|
786
|
+
return pa.concat_tables(frames)
|
|
787
787
|
|
|
788
788
|
|
|
789
789
|
def find_callers(conn, func_name: str):
|
|
@@ -809,7 +809,7 @@ def find_callers(conn, func_name: str):
|
|
|
809
809
|
{"func_name": func_name},
|
|
810
810
|
)
|
|
811
811
|
)
|
|
812
|
-
return
|
|
812
|
+
return pa.concat_tables(frames)
|
|
813
813
|
|
|
814
814
|
|
|
815
815
|
# --------------------------------------------------------------------------- #
|
|
@@ -1042,16 +1042,23 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
1042
1042
|
args = parser.parse_args(argv)
|
|
1043
1043
|
action = _resolve_actions(args)
|
|
1044
1044
|
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1045
|
+
try:
|
|
1046
|
+
if action == "index":
|
|
1047
|
+
return run_index(args)
|
|
1048
|
+
if action == "find-functions":
|
|
1049
|
+
return run_find_functions(args)
|
|
1050
|
+
if action == "find-callers":
|
|
1051
|
+
return run_find_callers(args)
|
|
1052
|
+
if action == "schema-only":
|
|
1053
|
+
return run_schema_only(args)
|
|
1054
|
+
parser.error(f"Unhandled action {action!r}")
|
|
1055
|
+
return 2 # unreachable
|
|
1056
|
+
except SystemExit:
|
|
1057
|
+
raise
|
|
1058
|
+
except Exception:
|
|
1059
|
+
import traceback
|
|
1060
|
+
traceback.print_exc()
|
|
1061
|
+
return 1
|
|
1055
1062
|
|
|
1056
1063
|
|
|
1057
1064
|
if __name__ == "__main__":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lscope
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: ast-grep using ladybug
|
|
5
5
|
Requires-Python: >=3.14
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -8,7 +8,7 @@ Requires-Dist: icebug>=12.9
|
|
|
8
8
|
Requires-Dist: ladybug>=0.18.0
|
|
9
9
|
Requires-Dist: pyarrow>=24.0.0
|
|
10
10
|
Requires-Dist: tqdm>=4.68.3
|
|
11
|
-
Requires-Dist: tree-sitter
|
|
11
|
+
Requires-Dist: tree-sitter==0.25.2
|
|
12
12
|
Requires-Dist: tree-sitter-c-sharp>=0.23.1
|
|
13
13
|
Requires-Dist: tree-sitter-cpp>=0.23.4
|
|
14
14
|
Requires-Dist: tree-sitter-go>=0.23.4
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "lscope"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.2"
|
|
4
4
|
description = "ast-grep using ladybug"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.14"
|
|
@@ -9,7 +9,7 @@ dependencies = [
|
|
|
9
9
|
"ladybug>=0.18.0",
|
|
10
10
|
"pyarrow>=24.0.0",
|
|
11
11
|
"tqdm>=4.68.3",
|
|
12
|
-
"tree-sitter
|
|
12
|
+
"tree-sitter==0.25.2",
|
|
13
13
|
"tree-sitter-c-sharp>=0.23.1",
|
|
14
14
|
"tree-sitter-cpp>=0.23.4",
|
|
15
15
|
"tree-sitter-go>=0.23.4",
|
lscope-0.1.1/lscope/__main__.py
DELETED
|
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
|