Pyke is a knowledge-based embeddable inference engine (expert system) written in 100% python that can do both forward-chaining (data driven) and backward-chaining (goal directed) inferencing and automatically generate python programs by assembling individual python functions into complete call graphs.