|
13 | 13 | Public API functions for Python Code Audit aka codeaudit on pypi.org |
14 | 14 | """ |
15 | 15 |
|
| 16 | +import datetime |
| 17 | +import json |
| 18 | +import platform |
| 19 | +from collections import Counter |
| 20 | +from pathlib import Path |
| 21 | + |
| 22 | +import altair as alt |
| 23 | +import pandas as pd |
| 24 | + |
16 | 25 | from codeaudit import __version__ |
| 26 | +from codeaudit.checkmodules import ( |
| 27 | + check_module_vulnerability, |
| 28 | + get_all_modules, |
| 29 | + get_imported_modules_by_file, |
| 30 | + get_standard_library_modules, |
| 31 | +) |
17 | 32 | from codeaudit.filehelpfunctions import ( |
18 | | - get_filename_from_path, |
19 | 33 | collect_python_source_files, |
| 34 | + get_filename_from_path, |
20 | 35 | is_ast_parsable, |
21 | 36 | ) |
22 | | -from codeaudit.security_checks import perform_validations, ast_security_checks |
| 37 | +from codeaudit.privacy_lint import data_egress_scan |
| 38 | +from codeaudit.pypi_package_scan import get_package_source, get_pypi_download_info |
| 39 | +from codeaudit.security_checks import ast_security_checks, perform_validations |
| 40 | +from codeaudit.suppression import filter_sast_results |
23 | 41 | from codeaudit.totals import ( |
24 | | - overview_per_file, |
25 | 42 | get_statistics, |
26 | 43 | overview_count, |
| 44 | + overview_per_file, |
27 | 45 | total_modules, |
28 | 46 | ) |
29 | | -from codeaudit.checkmodules import ( |
30 | | - get_all_modules, |
31 | | - get_imported_modules_by_file, |
32 | | - get_standard_library_modules, |
33 | | - check_module_vulnerability, |
34 | | -) |
35 | | -from codeaudit.pypi_package_scan import get_pypi_download_info, get_package_source |
36 | | -from codeaudit.suppression import filter_sast_results |
37 | | -from codeaudit.privacy_lint import data_egress_scan |
38 | | - |
39 | | -from pathlib import Path |
40 | | -import json |
41 | | -import datetime |
42 | | -import pandas as pd |
43 | | -import platform |
44 | | -from collections import Counter |
45 | | - |
46 | | - |
47 | | -import altair as alt |
48 | 47 |
|
49 | 48 |
|
50 | 49 | def version(): |
|
0 commit comments