New tool to export as CSV from export
Refs https://gitlab.com/arkindex/requests/-/issues/698
This new tool arkindex export list
will be strongly similar to arkindex elements list
but uses an sqlite export instead of API (should be a LOT faster for large final project exports).
We need to be compatible between both tools at the beginning, using the same CLI option names. So this tool needs to:
- filter elements to list
- by type
--type
- by recursion
--recursive
- by corpus (the whole corpus => no option, it's the default with an export)
- by parent element
--element
- by type
- export a CSV file (the path is controlled by
--output
)- with the same structure as described in the doc
- supporting optional classes
- supporting optional metadatas (like #68 (closed) )
It would be super-duper awesome to use the same serializer in both tools.
Bonus: add an option to list the transcriptions, using the same approach as for metadatas (one column per source of transcriptions: manual, workers, ...)