list exported functions from dll with ctypes
I don't think ctypes offers this functionality. On Windows with visual studio:
DUMPBIN -EXPORTS XXX.DLL
Or for mingw on windows:
objdump -p XXX.dll
If you are on Linux, there is a handy utility nm
to list the content of a shared library (there is always a handy utility on Linux, especially for C stuff).
Here is the question about it.
You use it with the -D
flag: nm -D ./libMyLib.so
In general, this is not possible, because, again in general, dynamically loaded libraries do not carry the meta-information you require. It may be possible to obtain that information in certain special cases through system-specific ways, but ctypes
itself does not fetch that information. You can record such info via ctypes
(see e.g. the restype and argtypes
attributes of function pointers), but only after you have obtained it by different means.