|
1 | 1 | ''' |
2 | 2 | MIT License |
3 | | -
|
4 | 3 | Copyright (c) 2023 Ulster University (https://www.ulster.ac.uk). |
5 | 4 | Project: Harmony (https://harmonydata.ac.uk) |
6 | 5 | Maintainer: Thomas Wood (https://fastdatascience.com) |
7 | | -
|
8 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy |
9 | 7 | of this software and associated documentation files (the "Software"), to deal |
10 | 8 | in the Software without restriction, including without limitation the rights |
11 | 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
12 | 10 | copies of the Software, and to permit persons to whom the Software is |
13 | 11 | furnished to do so, subject to the following conditions: |
14 | | -
|
15 | 12 | The above copyright notice and this permission notice shall be included in all |
16 | 13 | copies or substantial portions of the Software. |
17 | | -
|
18 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
19 | 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
20 | 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
21 | 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
22 | 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
23 | 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
24 | 20 | SOFTWARE. |
25 | | -
|
26 | 21 | ''' |
27 | 22 |
|
28 | 23 | from enum import Enum |
29 | 24 |
|
30 | 25 |
|
31 | 26 | class FileType(str, Enum): |
| 27 | + """Enumeration of supported file types for Harmony parsing.""" |
32 | 28 | pdf: str = 'pdf' |
33 | 29 | xlsx: str = 'xlsx' |
34 | 30 | txt: str = 'txt' |
35 | 31 | csv: str = 'csv' |
36 | 32 | docx: str = 'docx' |
| 33 | + html: str = 'html' |
| 34 | + htm: str = 'htm' |
0 commit comments