thanks you for all your answers.
it's works with ctypes, i can easily call C functions.
But, i have a problem with nested library.
I have file primitive.c which calculate basic primitive functions.
And a file legendre.c which need to call primitive functions to calculate legendre.
i generate library.so of both.
But I can not calculate legendre because primitive functions are never recognized.
i don't want to make juste one Big file, but link the two files in python
how can I do it?