Open zip
ZipExtract
Bases: ExtractionMethod
Open a zip file and read inner files
Method name: open_zip
Example configuration
.. code-block:: yaml
- method: open_zip
inputs:
input_term: /path/to/a/file
inner_files:
- key: hello.txt
output_key: world
noqa: W605
Source code in extraction_methods/plugins/open_zip.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | |
ZipInput
Bases: Input
Model for Zip Input.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_term
|
str
|
term for method to run on. |
'$uri'
|
inner_files
|
list[KeyOutputKey]
|
list of inner zipped files to be read. |
[]
|
output_key
|
str
|
key to output to. |
''
|
Source code in extraction_methods/plugins/open_zip.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |