]> git.scottworley.com Git - paperdoorknob/blob - spec.py
98832bfddfed9978ea67e14edca2b5900d5bc56d
[paperdoorknob] / spec.py
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
8 from dataclasses import dataclass
9
10 from typing import Callable, IO
11
12 from fetch import Fetcher
13 from texify import Texifier
14
15
16 @dataclass(frozen=True)
17 class Spec:
18 url: str
19 fetcher: Fetcher
20 htmlfilter: Callable[[bytes], bytes]
21 texifier: Texifier
22 texout: IO[bytes]