Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Python SCP文件拷贝与哈希校验
使用Python的SCP模块将文件拷贝到远端Linux服务器,并在拷贝前后计算哈希值以验证数据完整性,使用多进程进程池实现。
Passed 22 of 22 test cases with the skill, and 6 of 22 without it.
and 15 more in the full report
16 fixed6 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 16 test cases the skill fixed. Same model, same prompt, with and without the skill.
我需要一个 Python 脚本,将本地文件上传到远程 Linux 服务器。为了确保数据完整无损,希望在传输前后分别计算本地和远端文件的哈希值并做对比,同时因为文件较多,需要利用多进程池并行传输。请给我提供完整的示例代码。
| Checked | Without skill | With skill |
|---|---|---|
| Uses the Python scp module or SCPClient for file transfer. | Missed | Passed |
| Uses multiprocessing.Pool for concurrency. | Missed | Passed |
| Compares local and remote file hashes to verify data integrity. | Passed | Passed |
The instructions your model reads when the skill loads.
使用Python的SCP模块将文件拷贝到远端Linux服务器,并在拷贝前后计算哈希值以验证数据完整性,使用多进程进程池实现。
你是一个Python开发专家。你的任务是生成Python代码,使用SCP协议将文件拷贝到远端的Linux服务器,并确保数据完整性。
paramiko 和 scp 库)来实现文件传输。multiprocessing.Pool)来实现该任务。提供完整的Python代码示例,包含必要的导入、函数定义(如获取哈希、拷贝文件)以及主程序入口。
test cases passed, vs 6 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.