File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99#
1010
1111import click
12+
1213from aboutcode .federatedcode .client import get_package_scan
1314
15+
1416@click .command ()
15- @click .argument (' purl' )
17+ @click .argument (" purl" )
1618def handler (purl ):
1719 """
1820 Get package scan for PURL from FederatedCode git repository.
19-
21+
2022 PURL: PURL to fetch scan result
2123 """
2224 click .echo (get_package_scan (purl = purl ))
2325
24- if __name__ == '__main__' :
26+
27+ if __name__ == "__main__" :
2528 handler ()
Original file line number Diff line number Diff line change 1818
1919load_dotenv ()
2020
21- FEDERATEDCODE_GIT_RAW_URL = os .getenv ("FEDERATEDCODE_GIT_RAW_URL" , "https://raw.githubusercontent.com/aboutcode-org/" )
21+ FEDERATEDCODE_GIT_RAW_URL = os .getenv (
22+ "FEDERATEDCODE_GIT_RAW_URL" ,
23+ "https://raw.githubusercontent.com/aboutcode-org/" ,
24+ )
2225
2326
2427class ScanNotAvailableError (Exception ):
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ dependencies = [
3838 " packageurl_python >= 0.15.6" ,
3939 " aboutcode.hashid>=0.1.0" ,
4040 " python-dotenv>=1.0.1" ,
41+ " click>=8.1.7" ,
42+ " requests>=2.32.3" ,
4143]
4244
4345urls = { Homepage = " https://github.com/aboutcode-org/federatedcode" }
You can’t perform that action at this time.
0 commit comments