dynrules is a small Python and C++ package that allows you to create rule-based scripts for AI systems automatically. It uses the Dynamic Scripting technique and algorithms as described by Pieter Spronck in his paper Adaptive Game AI with Dynamic Scripting.
The focus of the package is on weighted ruleset management and script generation, rather than weight adjustments and fitness evaluation. There is only limited support for that kind of functionality and most of it has to be implemented by the specific user code.
dynrules is not meant to be a fully functional AI package, but rather a supportive system for creating your own adaptive AI quickly.