Abstract
Python Energy Communities (PyECOM) is a tool designed to facilitate the research into Energy Communities (EC) through the ability to create, simulate, and test various EC settings. Key components of EC functioning are implemented and provide a flexible basis for the integration of new components. Optimization algorithms from libraries such as Pymoo can be accessed and are facilitated through the use of the proposed data model. In future versions, PyECOM will also feature Reinforcement Learning as a method available to the users.