Skip to content

Commit 564b5fe

Browse files
committed
deleted admin.py
Signed-off-by: Akhil Raj <lf32.dev@gmail.com>
1 parent cff69d7 commit 564b5fe

File tree

2 files changed

+23
-25
lines changed

2 files changed

+23
-25
lines changed

scantext/admin.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

sco.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)