A ctypes implementation of dds-bridge in Python 3
dds-bridge is a bridge double-dummy solver implemented in C with a little C++. This port to Python 3 uses ctypes to interact with the shared object or DLL obtained from dds-bridge. It implements all relevant functions.
python-dds requires the .so (linux) or .dll (windows) shared object binary. In the file dds.py you need to change the path to that file on your system. NOTE I will try to package python-dds and distribute the package together with the python files.
The dds-bridge functions are described in dds.md. In the folder examples I created many files implementing these functions in Python in a low level way. Use these examples if you want a custom program that can perform a certain calculation. Currently I am implementing more and more functions.
My aim is a higher level (set of) class(es) that can be used as a basis for more advanced programs in Python. These classes wil get an API that will be modelled after dds-bridge with easy initializers, methods that perform calculations and getters and setters.
The dds-bridge source is licensed under the Apache license. For this implementation in Python I am looking at GPL v3. This license is compatible with Apache. You can always contact me if your project needs another license.
Check out the README in the folder examples. I already mentioned dds.md.