ctypes.CDLL

class ctypes.CDLL(name, mode=0, handle=None, use_errno=False, use_last_error=False)[source]

An instance of this class represents a loaded dll/shared library, exporting functions using the standard C calling convention (named ‘cdecl’ on Windows).

The exported functions can be accessed as attributes, or by indexing with the function name. Examples:

<obj>.qsort -> callable object <obj>[‘qsort’] -> callable object

Calling the functions releases the Python GIL during the call and reacquires it afterwards.

Methods

__format__ default object formatter
__getattr__(name)
__getitem__(name_or_ordinal)
__init__(name[, mode, handle, use_errno, ...])
__new__((S, ...)
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__repr__()
__sizeof__(() -> int) size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().