def generate_ini(self):
        """ Generate a sample ini
        """
        example = []
        example.append("[settings]")
        for key in sorted(list(self.spec.keys())):
            if self.spec[key]['type'] in [list, dict]:
                value = json.dumps(self.spec[key].get('example', ''))
            else:
                value = self.spec[key].get('example', '')
            string = f"{key.lower()}={value}"
            example.append(string)
        print("\n".join(example))
Generate a sample ini