OCHA-DAP / hdx-cli-toolkit

A commandline tool for interacting with HDX with a view to doing bulk updates
MIT License
1 stars 0 forks source link

Update a resource #11

Closed IanHopkinson closed 7 months ago

IanHopkinson commented 8 months ago

Given a dataset name, a resource name and a file path update the resource with the indicated file.

The logical place to put this is in the "update" function but that currently does a fairly different thing, so perhaps add a "resource" command with options: --hdx_site --dataset_name --resource_name --new_file_path --dry_run

We can extract the resource_names using the print statement:

hdx-toolkit print --dataset_filter=fao-diem-monitoring-system-household-surveys-aggregated-data --with_extras

The motivation comes from the FAO Diem datasets who seem happy to do some programming https://data.humdata.org/dataset/fao-diem-monitoring-system-household-surveys-aggregated-data