Skip to content

Commit

Permalink
deleted admin.py
Browse files Browse the repository at this point in the history
Signed-off-by: Akhil Raj <[email protected]>
  • Loading branch information
lf32 committed Jun 20, 2022
1 parent cff69d7 commit 564b5fe
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 25 deletions.
25 changes: 0 additions & 25 deletions scantext/admin.py

This file was deleted.

23 changes: 23 additions & 0 deletions sco.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import pprint

from licensedcode import cache

idx = cache.get_index()

matches = idx.match(location="/home/human/dev/license-text.txt")

pp = pprint.PrettyPrinter(indent=4)
# pp.pprint(matches)

# matches is a complete analysis

# match is every match made

# for match in matches:
# print(match)
match = matches[0] # apache analysis

# idx = cache.get_index()
# matches = idx.match(query_string=text)
# print(type(matches))
# print(type(matches[0].rule)

0 comments on commit 564b5fe

Please sign in to comment.