refactor: Extract exporters to separate module
This commit is contained in:
parent
c8e8453b68
commit
72ddaaf1bc
5 changed files with 213 additions and 157 deletions
14
papis_extract/exporters/__init__.py
Normal file
14
papis_extract/exporters/__init__.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
import papis.logging
|
||||
|
||||
from papis_extract.exporter import Exporter
|
||||
from papis_extract.exporters.notes import NotesExporter
|
||||
from papis_extract.exporters.stdout import StdoutExporter
|
||||
|
||||
|
||||
logger = papis.logging.get_logger(__name__)
|
||||
|
||||
all_exporters: dict[str, type[Exporter]] = {}
|
||||
|
||||
all_exporters["stdout"] = StdoutExporter
|
||||
all_exporters["notes"] = NotesExporter
|
||||
Loading…
Add table
Add a link
Reference in a new issue