Skip to main content

yuce.me

PySwip v0.3.0 is Released

PySwip logo

After 4 years, there’s a new version of PySwip. I’ve released v0.3.0.

PySwip is an open source library that enables running Prolog queries in Python via a foreign language interface to SWI-Prolog. It has no dependencies, and it works wherever SWI-Prolog runs, Linux, Windows, MacOS, OpenBSD, and elsewhere.

Here are some of the highlights from the change log:

  • SWI-Prolog 9.x is supported.
  • Dictionary support is addded,
  • Improved list representations, unicode support and multiple threading usage,
  • Refactored SWI-Prolog discovery.

If you have a recent version of SWI-Prolog installed, the following is sufficient to install PySwip in most cases:

pip install pyswip

You can also check the INSTALL documentation.