open-sdg / sdg-build

Python package to convert SDG-related data and metadata between formats
MIT License
5 stars 23 forks source link

InputPxWebApi: More useful output when indicator_id_map is missing #319

Open brockfanning opened 2 years ago

brockfanning commented 2 years ago

When indicator_id_map is missing, the InputPxWebApi class outputs a list of endpoint URLs that can be used to populate the indicator_id_map. But it is output as a Python list. It would be much more useful if it were output in a format that can be directly copied/pasted into the data configuration.

For example it is output now like:

['https://example.com/api/1','https://example.com/api/2']

But it would be better like:

api/1: ''
api/2: ''

Then the user just needs to fill in the indicator IDs.