Corpus¶
arkindex_worker.worker.corpus ¶
BaseWorker methods for corpora.
Classes¶
CorpusExportState ¶
CorpusMixin ¶
Functions¶
download_export ¶
download_export(export_id: str) -> _TemporaryFileWrapper
Download an export.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
export_id |
str
|
UUID of the export to download |
required |
Returns:
Type | Description |
---|---|
_TemporaryFileWrapper
|
The downloaded export stored in a temporary file. |
Source code in arkindex_worker/worker/corpus.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|
download_latest_export ¶
download_latest_export() -> _TemporaryFileWrapper
Download the latest export in done
state of the current corpus.
Returns:
Type | Description |
---|---|
_TemporaryFileWrapper
|
The downloaded export stored in a temporary file. |
Source code in arkindex_worker/worker/corpus.py
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 |
|