Преглед на файлове

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


Зареждане…
Отказ
Запис