2021-02-04 13:17:24 +01:00

17 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",
}
}