]> git.scottworley.com Git - paperdoorknob/blobdiff - spec.py
Bundle the things needed for a run together into a Spec
[paperdoorknob] / spec.py
diff --git a/spec.py b/spec.py
new file mode 100644 (file)
index 0000000..1322897
--- /dev/null
+++ b/spec.py
@@ -0,0 +1,21 @@
+# paperdoorknob: Print glowfic
+#
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, version 3.
+
+
+from dataclasses import dataclass
+
+from typing import IO
+
+from fetch import Fetcher
+from texify import Texifier
+
+
+@dataclass(frozen=True)
+class Spec:
+    url: str
+    fetcher: Fetcher
+    texifier: Texifier
+    texout: IO[bytes]