aboutsummaryrefslogtreecommitdiffstats
path: root/bsie/reader/document/__init__.py
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2023-07-28 11:31:24 +0200
committerMatthias Baumgartner <dev@igsor.net>2023-07-28 11:31:24 +0200
commit11b26a913d39edb7f36cd0a3b3d8e74c96738579 (patch)
tree463af082c0b77916c11a84263c96fc91ebedabed /bsie/reader/document/__init__.py
parent28e3640e0b5e03b50bf66711f46937f07a3d7fef (diff)
downloadbsie-11b26a913d39edb7f36cd0a3b3d8e74c96738579.tar.gz
bsie-11b26a913d39edb7f36cd0a3b3d8e74c96738579.tar.bz2
bsie-11b26a913d39edb7f36cd0a3b3d8e74c96738579.zip
document digestion:
* plaintext reader * text metrics extractor * text summary extractor
Diffstat (limited to 'bsie/reader/document/__init__.py')
-rw-r--r--bsie/reader/document/__init__.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/bsie/reader/document/__init__.py b/bsie/reader/document/__init__.py
new file mode 100644
index 0000000..4ae3613
--- /dev/null
+++ b/bsie/reader/document/__init__.py
@@ -0,0 +1,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]]):
+ """Read paragraphs from a text file."""
+
+ def __init__(self, cfg: typing.Optional[typing.Any] = None):
+ super().__init__(_FILE_FORMAT_READERS, cfg)
+
+## EOF ##