<human>:  Python - How to call bash commands with pipe?
<bot>: Here is some code to call bash command 'tar c my_dir | md5sum' with pipe

subprocess.call('tar c my_dir | md5sum', shell=True)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.