Python 2 and Python 3 interface to XSB Prolog, SWI Prolog, ECLiPSe Prolog, Flora-2/Ergo Lite and DES (Datalog Educational System).
Just run the setup file:
python setup.py build
python setup.py install
To install with pip just type (you might gave to install pexpect beforehand):
sudo pip install git+https://github.com/AILab-FOI/pyxf
or for Python 3
sudo pip3 install git+https://github.com/AILab-FOI/pyxf