I've been doing a lot of research into Cython and I think it's feasible to create a wrapper using Cython that would allow DAWG to be imported as a module in Python. Based on the examples I've seen from Cython book and the fact that DAWG doesn't use very many dependencies I think a wrapper for DAWG would consist of a single pyx file. The pyx is used by Python's distutils and the rest of the compilation is handled by Cython. There may be some issues to deal with handling Boost.
My first couple attempts are here . I've figured out how to wrap some standalone CPP files which use STL function calls.
Updated to include JavaScript, it was mainly an obsession of mine to finally build something with Emscripten, but both language modules are still very experimental.
Add GUI for Js module that lets you build a dawg/trick file
I've been doing a lot of research into Cython and I think it's feasible to create a wrapper using Cython that would allow DAWG to be imported as a module in Python. Based on the examples I've seen from Cython book and the fact that DAWG doesn't use very many dependencies I think a wrapper for DAWG would consist of a single
pyx
file. Thepyx
is used by Python's distutils and the rest of the compilation is handled by Cython. There may be some issues to deal with handling Boost.Updated to include JavaScript, it was mainly an obsession of mine to finally build something with Emscripten, but both language modules are still very experimental.