mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
17 lines
401 B
Python
17 lines
401 B
Python
def get_parser(*args, **kwargs):
|
|
from paperless_text.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",
|
|
"application/csv": ".csv",
|
|
},
|
|
}
|