]> git.scottworley.com Git - paperdoorknob/blame_incremental - spec.py
Reify Chunk
[paperdoorknob] / spec.py
... / ...
CommitLineData
1# paperdoorknob: Print glowfic
2#
3# This program is free software: you can redistribute it and/or modify it
4# under the terms of the GNU General Public License as published by the
5# Free Software Foundation, version 3.
6
7
8from dataclasses import dataclass
9
10from typing import Callable, IO
11
12from bs4.element import Tag
13
14from fetch import Fetcher
15from texify import Texifier
16from images import ImageStore
17
18
19# pylint: disable=too-many-instance-attributes
20@dataclass(frozen=True)
21class Spec:
22 url: str
23 fetcher: Fetcher
24 images: ImageStore
25 htmlfilter: Callable[[bytes], bytes]
26 domfilter: Callable[[Tag], None]
27 texifier: Texifier
28 geometry: str | None
29 texout: IO[bytes]