Add dtc subcommand import #30

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

Adds the dtc subcommand import. import reads records 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 are read from the file description.json in the exported data area. Both can be overridden by command line options.

import supports JSON and YAML files. File type is detected by the extension, i.e., .json or .yaml.

Adds the `dtc` subcommand `import`. `import` reads records 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 are read from the file `description.json` in the exported data area. Both can be overridden by command line options. `import` supports JSON and YAML files. File type is detected by the extension, i.e., `.json` or `.yaml`.
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
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.
This commit makes import progress-reporting
percentage based and adds detailed error
information in case of an HTTP-error.
cmo merged commit 7b86591367 into master 2026-02-09 14:13:17 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
orinoco/dump-things-pyclient!30
No description provided.