Krangpower is a Python package for electrical network simulations based on OpenDSS by EPRI and a Python api for its direct library incarnation,, by Dheepak Krishnamurthy.

Design goals

  • Providing an even easier and more intuitive frontend;
  • Introducing measurement units through the package pint, allowing the user to worry less about errors, to demand the burden of conversion and to correctly interpret the results without recurring to the OpenDSS docs;
  • Returning results in interoperable data structures and containers;
  • Enabling advanced analysis modes, for example:
    • Exporting the network topology in a networkx graph
    • Solving duty cycles that involve smart components that need to update themselves after every n steps
  • Providing a I/O facility based on json files, allowing easier bookkeping and search and procedural generation of circuits with custom tools


Run as appropriate for your system:

pip install krangpower
pip3 install krangpower


Krangpower is a python 3.x package; currently, compatibility with python 2.x is not sought after.

Alternatively, if you wish to contribute to the codebase too, you can clone and use the Github repo. As of june 2018, krangpower is in intense development and the Github repo is typically a few days/weeks ahead of the pypi index.

Indices and tables