Load DLL and use it in code?

So I want to load a DLL because I want to test compiling and stuff, how do I import a DLL and treat it as a normal python import? Like lets say I have a “example_manager.dll”. How would I import that and use it as a regular import?

If it’s a Python extension module, the easiest way is to rename it to example_manager.pyd and just do “import example_manager”. It then needs to contain an “initexample_manager” function that sets up the Python module object via the C API, though.

Otherwise you can use ctypes to load it and access any C functions you like from it.