This commit is contained in:
Marc Beninca 2021-10-09 23:39:16 +02:00 committed by Marc Beninca
parent 1a873b5ea2
commit fc17992b20
2 changed files with 22 additions and 4 deletions

17
catalog.py Normal file
View file

@ -0,0 +1,17 @@
import io
import tarfile
import package
class Catalog:
def __init__(self, binary):
self.binary = binary
self.load()
def load(self):
f = io.BytesIO(self.binary)
archive = tarfile.open(fileobj=f)
for member in archive.getmembers():
print(member)
archive.close()