Of course, something like this:
import io io_bytes = io.BytesIO(byte_array) tar = tarfile.open(fileobj=io_bytes, mode='r')
(Set mode to match the format of your tar file, for example, `mode = 'r: gz', etc.)
Warren Weckesser Apr 07 '13 at 2:17 on 2013-04-07 02:17
source share