papis-extract/papis_extract
Marty Oehme 7ee8d4911e
refactor: Make formatters functions
Formatters have been classes so far which contained some data (the
tamplate to use for formatting and the annotations and documents to
format) and the actual formatting logic (an execute function).

However, we can inject the annotations to be formatted and the templates
so far are static only, so they can be simple variables (we can think
about how to inject them at another point should it come up, no
bikeshedding now).

This way, we can simply pass around one function per formatter, which
should make the code much lighter, easier to add to and especially less
stateful which means less areas of broken interactions to worry about.
2023-09-21 21:54:24 +02:00
..
__init__.py refactor: Make formatters functions 2023-09-21 21:54:24 +02:00
annotation.py refactor: Move Annotations into annotation module 2023-09-20 17:22:29 +02:00
exporter.py refactor: Make formatters functions 2023-09-21 21:54:24 +02:00
extractor.py refactor: Move Annotations into annotation module 2023-09-20 17:22:29 +02:00
formatter.py refactor: Make formatters functions 2023-09-21 21:54:24 +02:00