power-grid-model
Python/C++ library for distribution power system analysis
Decision gist · record as of 2026-08-14
Yes, if you work on power system analysis. The library is production-stable, actively maintained, has no known vulnerabilities, and solves a specialized but well-defined problem. Medium install friction is manageable given pre-compiled wheels for common platforms. The copyleft license (MPL-2.0) is a consideration only if you plan to distribute modified versions of the library itself; using it as-is in proprietary applications is permitted.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.12 or later; compiled wheels are available for common platforms but source builds require a C++ compiler.
- Medium install friction due to compiled C++ bindings; wheels are available for macOS (arm64, x86_64), Linux (aarch64, x86_64), and Windows, reducing build complexity.
- Requires Python 3.12 or later.
License · maintenance · safety
MPL-2.0 (copyleft) — Licensed under MPL-2.0 (copyleft). Derivative works and modifications must be distributed under the same license; proprietary applications can link to the library but must disclose modifications to the library itself.
last release 2026-08-14 (0 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 152,047 downloads/mo, #10,912 on PyPI
Alternatives
Verify before relying
pip install power-grid-model
import power_grid_model
# Create and analyze a power grid network using the library's API- Specific API surface and ease of use for common power flow scenarios
- Performance characteristics for large-scale grid models
- Integration patterns with external grid data formats or tools
What it is and what it does
Power Grid Model is a production-grade library for analyzing electrical distribution networks. The core is implemented in C++ for performance, with a Python interface for ease of use. It handles three main types of steady-state power system calculations: power flow (determining voltages and currents), state estimation (inferring grid state from measurements), and short circuit analysis (computing fault currents). The library depends only on numpy and is distributed as pre-compiled wheels for most platforms, making installation straightforward despite its compiled nature.
Developers use it to model and analyze distribution grids—the lower-voltage networks that deliver power to neighborhoods and industrial sites. It's aimed at researchers, engineers, and developers working on grid planning, operation, or optimization. The project is actively maintained under the LF Energy umbrella and includes documentation and examples for common workflows.
Use it for
- Run power flow studies to determine steady-state voltages and currents in a distribution network
- Perform state estimation to infer grid conditions from real-world measurement data
- Analyze short circuit faults to size protective equipment and validate grid resilience
- Validate input data and export results for integration with other grid analysis tools
- Build grid optimization or planning workflows that require repeated steady-state calculations
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you work on power system analysis.
The library is production-stable, actively maintained, has no known vulnerabilities, and solves a specialized but well-defined problem. Medium install friction is manageable given pre-compiled wheels for common platforms. The copyleft license (MPL-2.0) is a consideration only if you plan to distribute modified versions of the library itself; using it as-is in proprietary applications is permitted.
Install
power-grid-model on PyPI
Before you install
Medium install friction due to compiled C++ bindings; wheels are available for macOS (arm64, x86_64), Linux (aarch64, x86_64), and Windows, reducing build complexity. Requires Python 3.12 or later. Active maintenance with a recent release.
Requires Python 3.12 or later; compiled wheels are available for common platforms but source builds require a C++ compiler.
License in practice
Licensed under MPL-2.0 (copyleft). Derivative works and modifications must be distributed under the same license; proprietary applications can link to the library but must disclose modifications to the library itself.
Quickstart
pip install power-grid-model
import power_grid_model
# Create and analyze a power grid network using the library's API
Verify before relying
- Specific API surface and ease of use for common power flow scenarios
- Performance characteristics for large-scale grid models
- Integration patterns with external grid data formats or tools
Package facts
| License | MPL-2.0 copyleft |
| Python support | Supports the current Python release >=3.12 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | 1 packagenumpy |
| Maintenance | Actively maintained 0 days since the last release |
| First released | |
| Downloads | 152,047 / month, #10,912 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Science/ResearchOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: C++Programming Language :: Python :: 3Programming Language :: Python :: Implementation :: CPythonTopic :: Scientific/Engineering :: Physics |
Evidence: power_grid_model-1.13.142-py3-none-macosx_13_0_arm64.whl; power_grid_model-1.13.142-py3-none-macosx_13_0_x86_64.whl; power_grid_model-1.13.142-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl; power_grid_model-1.13.142-py3-none-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl; power_grid_model-1.13.142-py3-none-musllinux_1_2_aarch64.whl; power_grid_model-1.13.142-py3-none-musllinux_1_2_x86_64.whl; power_grid_model-1.13.142-py3-none-win_amd64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “power flow calculation”
- power-grid-modelPower Grid Model is a Python/C++ library for steady-state…
- pandapowerpandapower automates power system modeling, analysis, and…
- pypsaPyPSA is a Python framework for optimizing and simulating power and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Physics packages
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.
Pydicom reads, modifies, and writes DICOM medical imaging files in pure Python, with optional NumPy support for pixel data as arrays.
Install it if you work with medical imaging data, DICOM files, or healthcare IT systems.
Albumentations applies image transformations to training data, supporting classification, segmentation, object detection, and pose estimation with a unified API for images, masks, bounding boxes, and keypoints.
Install it if you need a unified, production-grade augmentation API for computer vision tasks.
CoolProp provides thermodynamic and transport property calculations for fluids and fluid mixtures, offering open-source functionality similar to REFPROP.
Provides quaternion representation, manipulation, and rotation operations for 3D geometry and animation, with support for smooth interpolation between orientations.
See also pandapower · gridstatus · pypsa · opower · pvlib · ansys-dpf-core · gplugins · powershap · PySpice · lscsoft-glue