sh 库提供了 Shell 命令的封装,如果你很熟悉 Shell 命令那么一定会喜欢上它。使用方法:
from sh import findfind("/tmp")/tmp/foo/tmp/foo/file1.json/tmp/foo/file2.json/tmp/foo/bar/file3.json
from sh import find
find("/tmp")
/tmp/foo
/tmp/foo/file1.json
/tmp/foo/file2.json
/tmp/foo/bar/file3.json