leaf_focus/pdf/identify/item.py
def load(cls, path: Path) -> Iterable["Item"]:
        """Load file items from a file."""
        with open(path, "rt", encoding="utf8") as f:
            reader = csv.DictReader(f)
            for row in reader:
                yield Item(
                    pdf_file=Path(row["pdf_file"]),
                    hash_type=row["hash_type"],
                    file_hash=row["file_hash"],
                )
Load file items from a file.
Load file items from a file.
Load file items from a file .
def load(cls, path: Path) -> Iterable["Item"]:
        with open(path, "rt", encoding="utf8") as f:
            reader = csv.DictReader(f)
            for row in reader:
                yield Item(
                    pdf_file=Path(row["pdf_file"]),
                    hash_type=row["hash_type"],
                    file_hash=row["file_hash"],
                )
def load ( cls , path : Path ) -> Iterable [ "Item" ] : with open ( path , "rt" , encoding = "utf8" ) as f : reader = csv . DictReader ( f ) for row in reader : yield Item ( pdf_file = Path ( row [ "pdf_file" ] ) , hash_type = row [ "hash_type" ] , file_hash = row [ "file_hash" ] , )
Load file items from a file.
Load file items from a file .
"""Load file items from a file."""
cls
path
Path