Browse Source

Add Item representation

master
JustAnotherArchivist 3 years ago
parent
commit
4484d6c588
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      qwarc/__init__.py

+ 3
- 0
qwarc/__init__.py View File

@@ -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):


Loading…
Cancel
Save