MCPcopy Index your code
hub / github.com/karpathy/reader3 / Book

Class Book

reader3.py:57–67  ·  view source on GitHub ↗

The Master Object to be pickled.

Source from the content-addressed store, hash-verified

55
56@dataclass
57class Book:
58 """The Master Object to be pickled."""
59 metadata: BookMetadata
60 spine: List[ChapterContent] # The actual content (linear files)
61 toc: List[TOCEntry] # The navigation tree
62 images: Dict[str, str] # Map: original_path -> local_path
63
64 # Meta info
65 source_file: str
66 processed_at: str
67 version: str = "3.0"
68
69
70# --- Utilities ---

Callers 1

process_epubFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected