How to connect two input and output files in python in the same way as java.io.PipedInputStream in java?

I want to use tar to archive a local folder and boot to S3. I don't like having a temporary tar file on the local file system because the tar file will be huge.

I want to have a way to transfer two file-like objects: tar to write a file-like object and S3 to read a file-like object, just like java.io.PipedInputStreamin Java.

+4
source share

All Articles