|
PCART
v1.4
Automated Repair of Python API Parameter Compatibility Issues
|
Functions | |
| def | backward (projPath, libName, currentVersion, currentEnv, targetVersion, targetEnv, runCommand, runPath, workspace, pcresolveLookup=None) |
| Generate pkl files and perform detection and repair tasks 生成项目调用API的pkl文件以及执行检测与修复任务 More... | |
| def | backwardTask (args) |
| One process handles one file 一个进程处理一个文件 More... | |
| def | main () |
| Main function of PCART PCART主函数 More... | |
| def | run (config, cleanWorkspace=False) |
| Run PCART with an isolated workspace 在隔离工作区中运行PCART. More... | |
| def main.backward | ( | projPath, | |
| libName, | |||
| currentVersion, | |||
| currentEnv, | |||
| targetVersion, | |||
| targetEnv, | |||
| runCommand, | |||
| runPath, | |||
| workspace, | |||
pcresolveLookup = None |
|||
| ) |
Generate pkl files and perform detection and repair tasks 生成项目调用API的pkl文件以及执行检测与修复任务
| projPath | The path to the project / 项目路径 |
| libName | The upgraded Python third-party library name / 升级的第三方库名 |
| currentVersion | The upgraded lib's current version / 库的当前版本 |
| currentEnv | Current version's virtual environment / 当前版本的虚拟环境 |
| targetVersion | The upgraded lib's target version / 库的目标版本 |
| targetEnv | Target version's virtual environment / 目标版本的虚拟环境 |
| runCommand | The run command of the project / 项目运行命令 |
| runPath | The relative path of the run file / 运行文件的相对路径 |
| workspace | RunWorkspace object for this execution / 本次执行的运行工作区 |
| pcresolveLookup | Optional pre-built PCResolve lookup table shared with preprocessing |
Definition at line 168 of file main.py.
| def main.backwardTask | ( | args | ) |
One process handles one file 一个进程处理一个文件
| args | Input parameters for processing one project file (13 values normally, 14 values with a PCResolve lookup) |
Definition at line 38 of file main.py.
| def main.main | ( | ) |
| def main.run | ( | config, | |
cleanWorkspace = False |
|||
| ) |
Run PCART with an isolated workspace 在隔离工作区中运行PCART.
This function keeps old config fields unchanged, creates a RunWorkspace, runs preprocessing and analysis inside the workspace, then exports reports. 该函数保持旧配置字段不变,创建运行工作区,在工作区内完成预处理和分析, 最后导出用户可见报告。
| config | The config file path or config file name under Configure |
| cleanWorkspace | Whether to remove a successful run workspace |
Definition at line 246 of file main.py.