I need to handle a big array of data from C program to python instance (Django) using shared library (.so). Is it possible to return them through ctypes ?
For example:
import ctypes
a = ctypes.CDLL('foo.so')
b = a.collect()
latitude = b.latitude
longitude = b.longitude
and a C:
main()
{
/* steps to get the data */
return <kind of struct or smth else>;
}
I am the newbie so is there a ways of delivery of such kind of data ?