I have buffer (bytes) that I want to tar using Python without write to temp file
If I had a file it's simple to archive like :
import tarfile
with tarfile.open('archive.tar','w:xz' ) as f :
f.add('sample.txt')
Buf I have bytes bytes(b'......')
that I want to archive (not file path) , Is that possible ?