This paper introduces the Maestro library. This library for Python focuses on the design of predictive controllers for small to mediumscale energy networks. It allows non-expert users to describe multicarrier (electricity, heat, gas) energy networks with a range of energy production, conversion, and storage component classes; together with consumption patterns. Based on this description a predictive controller can be synthesized and tested in simulation. This controller manages the dispatch of energy in the network, making sure that the demands are met, while minimizing the total energy cost. Alternative objectives can be specified. The library uses a mixed-integer linear modelling framework to describe the network and can be used in stand-alone based on standardized input files or as part of the larger energy network control platform PENTAGON.