]> git.scottworley.com Git - paperdoorknob/blame - spec.py
Strip all  
[paperdoorknob] / spec.py
CommitLineData
23f31879
SW
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
929db576 10from typing import Callable, IO
23f31879
SW
11
12from fetch import Fetcher
13from texify import Texifier
14
15
16@dataclass(frozen=True)
17class Spec:
18 url: str
19 fetcher: Fetcher
929db576 20 htmlfilter: Callable[[bytes], bytes]
23f31879
SW
21 texifier: Texifier
22 texout: IO[bytes]