From 60f62aa527f1b817930cc8aa1c2fdf4a41f9451b Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Fri, 30 Nov 2018 08:02:21 +0100 Subject: [PATCH] add: [tools] a simple generator for the list of taxonomies to be included in the RFC --- tools/rfc-genlist.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tools/rfc-genlist.py diff --git a/tools/rfc-genlist.py b/tools/rfc-genlist.py new file mode 100644 index 0000000..5085c81 --- /dev/null +++ b/tools/rfc-genlist.py @@ -0,0 +1,8 @@ +import json +import os +filename = os.path.join("../", "MANIFEST.json") +with open(filename) as fp: + t = json.load(fp) + +for taxo in sorted(t['taxonomies'], key=lambda k: k['name']): + print ("{}:\n: {}\n".format(taxo['name'], taxo['description']))