mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
17 lines
348 B
Python
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",
|
|
}
|
|
}
|