Add dtc subcommand import #30

Merged
cmo merged 4 commits from import into master 2026-02-09 14:13:17 +00:00

4 commits

Author SHA1 Message Date
Christian Monch
aa025fecab clean up export subcommand 2026-02-09 15:12:42 +01:00
Christian Monch
9465fd7d86 improve import progress- and error-reporting
This commit makes import progress-reporting
percentage based and adds detailed error
information in case of an HTTP-error.
2026-02-09 15:12:42 +01:00
Christian Monch
41f4ca4ceb add first version of sub command import
This commit adds the `dtc` subcommand `import`.
`import` reads records that were written by `export`
from a file system and inserts them into a
dump-things-server. This includes the curated
area and the incoming areas.

By default the destination server URL and
collection name is read from the file
`description.json` in the exported data area.
Both can be overriden by command line options.
2026-02-09 15:12:42 +01:00
Christian Monch
29ea50f2b6 add fields to export-description
The file `description.json` is part of
an export and contains information about the
exported data.

This commit adds the two fiels:

- date: the date of the export
- service: the URL of the dump-things-server
           from which the data was exported

The commit also removes a "chatty" message
about empty incoming areas.
2026-02-09 15:12:42 +01:00