I am writing an application where I am coding all of my front-end and GUI with python library (wxpython specifically). For this application, I would like to write the model class with C and use python to use the compiled C code? How can this be implemented in python?
I know this is little vague question but I am struggling with the starting point.
If you’re using CPython (the most popular version of Python), you’ll need to learn the CPython C API. Other python implementations may or may not support C calls. You can also use the ctypes library which is easier to learn, but also more rigid and may not support everything you need.