aboutsummaryrefslogtreecommitdiffstats
path: root/bsie/reader/document/__init__.py
blob: 824ad869e25e354c0f05531345d5a133f22faef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

# standard imports
import typing

# inner-module imports
from .. import chain

# constants
_FILE_FORMAT_READERS: typing.Sequence[str] = (
    #__package__ + '._docx.Docx',
    #__package__ + '._odt.ODT',
    #__package__ + '._pdf.PDF',
    #__package__ + '._rtf.RTF',
    #__package__ + '._ps.PS',
    __package__ + '._plain.Plain',
    )

# exports
__all__: typing.Sequence[str] = (
    'Document',
    )


## code ##

class Document(chain.ReaderChain[typing.Sequence[str]]): # pylint: disable=too-few-public-methods
    """Read paragraphs from a text file."""

    def __init__(self, cfg: typing.Optional[typing.Any] = None):
        super().__init__(_FILE_FORMAT_READERS, cfg)

## EOF ##