瀏覽代碼

Add Item representation

master
JustAnotherArchivist 3 年之前
父節點
當前提交
4484d6c588
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      qwarc/__init__.py

+ 3
- 0
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):


Loading…
取消
儲存