pyani icon indicating copy to clipboard operation
pyani copied to clipboard

Use JSON for labels/classes files

Open widdowquinn opened this issue 5 years ago • 2 comments

The ad hoc tab-separated text format for label/class files works, but JSON may be more exchangeable and enhancement-friendly.

widdowquinn avatar Jun 21 '19 10:06 widdowquinn

@widdowquinn Can you elaborate, or say whether you still think this should be a goal?

baileythegreen avatar Apr 29 '22 10:04 baileythegreen

It is still a goal.

I would like us to move away from the restrictive, ad hoc current format of these files, to a more widely-used, readily-parsed format. There are several choices for a suitable format including JSON, YAML, TOML, and so on. We could prioritise something with a standard library parser in Python to minimise extra dependencies. It would be wise to choose something that we could extend, maybe to accommodate an array of labels, or other fields.

widdowquinn avatar Apr 29 '22 11:04 widdowquinn