From 4484d6c588e88b76aa15075517b8457dfac69178 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Tue, 14 Jul 2020 05:42:40 +0000 Subject: [PATCH] Add Item representation --- qwarc/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qwarc/__init__.py b/qwarc/__init__.py index 3e0968c..67074bb 100644 --- a/qwarc/__init__.py +++ b/qwarc/__init__.py @@ -204,6 +204,9 @@ class Item: yield subclass yield from subclass.get_subclasses() + def __repr__(self): + return f'<{type(self).__module__}.{type(self).__name__} object {id(self)}, itemType = {self.itemType!r}, itemValue = {self.itemValue!r}>' + class QWARC: def __init__(self, itemClasses, warcBasePath, dbPath, command, specFile, specDependencies, logFilename, concurrency = 1, memoryLimit = 0, minFreeDisk = 0, warcSizeLimit = 0, warcDedupe = False):