PySWIP is a bridge between Python and SWI-Prolog that allows you to incorporate Prolog queries into your Python applications. This tool enables querying in Prolog, through the use of SWI-Prolog, directly in Python.
To install PySWIP, you'll need SWI-Prolog's libpl as a shared library, which may require compiling SWI-Prolog with shared library production enabled. Then, simply install a recent version of ctypes and run `python setup.py install` after satisfying the previous requirements.
To test your installation, open the Python shell and run the provided code snippet. If you encounter an error, check that SWI-Prolog has been installed as a shared library and that `libpl.so` is located in the default library directory.
Recent improvements to PySWIP include a removal of the reliance on the functor handle of "=/2" and a patch to enable the software to work on Mac OS X. While it has only been tested on Linux systems, this versatile software should work on a variety of POSIX and Win32 systems.
Version 0.2.2: N/A