Pyke introduces a form of Logic Programming (inspired by Prolog) to the
Python community by providing a knowledge-based inference engine (expert
system) written in 100% Python.
Unlike Prolog, Pyke integrates with Python allowing you to invoke Pyke from
Python and intermingle Python statements and expressions within your expert
Pyke was developed to significantly raise the bar on code reuse. Here’s how
- You write a set of Python functions, and a set of Pyke rules to direct the
configuration and combination of these functions.
- These functions refer to Pyke pattern variables within the function body.
- Pyke may instantiate each of your functions multiple times, providing a
different set of constant values for each of the pattern variables used
within the function body. Each of these instances appears as a different
- Pyke then automatically assembles these customized functions into