in pyignite/queries/response.py [0:0]
def to_python(self, ctypes_object, **kwargs):
if getattr(ctypes_object, 'status_code', 0) == 0:
result = {
'type_exists': Bool.to_python(ctypes_object.type_exists)
}
if hasattr(ctypes_object, 'body'):
result.update(body_struct.to_python(ctypes_object.body))
if hasattr(ctypes_object, 'enums'):
result['enums'] = enum_struct.to_python(ctypes_object.enums)
if hasattr(ctypes_object, 'schema'):
result['schema'] = {
x['schema_id']: [
z['schema_field_id'] for z in x['schema_fields']
]
for x in schema_struct.to_python(ctypes_object.schema)
}
return result