共有ライブラリ (.so) を使用して、C プログラムから Python インスタンス (Django) までの大量のデータを処理する必要があります。ctypes を介してそれらを返すことは可能ですか?
例えば:
import ctypes
a = ctypes.CDLL('foo.so')
b = a.collect()
latitude = b.latitude
longitude = b.longitude
および C:
main()
{
/* steps to get the data */
return <kind of struct or smth else>;
}
私は初心者なので、そのような種類のデータを配信する方法はありますか?