2022-02-27 15:26:41 +01:00

16 lines
348 B
Python

def get_parser(*args, **kwargs):
from .parsers import TextDocumentParser
return TextDocumentParser(*args, **kwargs)
def text_consumer_declaration(sender, **kwargs):
return {
"parser": get_parser,
"weight": 10,
"mime_types": {
"text/plain": ".txt",
"text/csv": ".csv",
},
}