PyAffective is a standalone affective module for intelligent agents. It is general purpose enough so it can be used independently of your agent framework, yet specialized enough so it can provide a comprehensive model for managing an internal affective state.
Based on the paper ALMA - A Layered Model of Affect by Patrick Gebhard