We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cff69d7 commit 564b5feCopy full SHA for 564b5fe
scantext/admin.py
sco.py
@@ -0,0 +1,23 @@
1
+import pprint
2
+
3
+from licensedcode import cache
4
5
+idx = cache.get_index()
6
7
+matches = idx.match(location="/home/human/dev/license-text.txt")
8
9
+pp = pprint.PrettyPrinter(indent=4)
10
+# pp.pprint(matches)
11
12
+# matches is a complete analysis
13
14
+# match is every match made
15
16
+# for match in matches:
17
+# print(match)
18
+match = matches[0] # apache analysis
19
20
+# idx = cache.get_index()
21
+# matches = idx.match(query_string=text)
22
+# print(type(matches))
23
+# print(type(matches[0].rule)
0 commit comments