Skip to main content
License Python 3.9+ Documentation Coverage 98%

An open-source Python toolkit for power system automation, providing a high-performance wrapper for PowerWorld’s Simulator Automation Server (SimAuto). Transforms complex COM calls into intuitive, Pythonic operations.

  • Intuitive Indexing – Access grid data with pw[Bus, "BusPUVolt"] syntax

  • Full SimAuto Coverage – All PowerWorld API functions through modular mixins

  • Pandas Integration – Every query returns a DataFrame

  • Pythonic Settings – Solver and GIC options as descriptor attributes (pw.max_iterations = 250)

  • Convenience Methods – Flows, overloads, PTDF/LODF, snapshot context manager, case summary

  • Transient Stability – Fluent API with TS field intellisense

  • Analysis Utilities – Built-in GIC, network topology, and contingency tools

Installation

Requires Windows with PowerWorld Simulator (SimAuto enabled) and Python 3.9+.

pip install esapp

Quick Example

from esapp import PowerWorld
from esapp.components import *

pw = PowerWorld("path/to/case.pwb")

# Read data
bus_data = pw[Bus, ["BusName", "BusPUVolt"]]

# Solve power flow
V = pw.pflow()

# Inspect and modify
violations = pw.violations(v_min=0.95)
pw[Gen, "GenMW"] = 100.0

Documentation

Full tutorials, API reference, and examples at esapp.readthedocs.io.

Testing

pip install .[test]
pytest tests/

Citation

@article{esa2020,
  title={Easy SimAuto (ESA): A Python Package for PowerWorld Simulator Automation},
  author={Mao, Zeyu and Thayer, Brandon and Liu, Yijing and Birchfield, Adam},
  year={2020}
}

Authors

Developed by Luke Lowery and Adam Birchfield at Texas A&M University (Birchfield Research Group). See my personal (research website).

License

Distributed under the Apache License 2.0.

Metadata

Release files for esapp 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for esapp 0.2.0
File Size Uploaded
esapp-0.2.0.tar.gz 975.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for esapp 0.2.0
File Interpreter ABI Platform
esapp-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.9 MB

Release files / esapp-0.2.0.tar.gz

Download URL esapp-0.2.0.tar.gz
Size 975.1 kB
Tags Source
SHA-256 checksum
How to use checksums
38315a11838e3417723fd5ecf5157b22c80f791786545f70397ec996d8a0d28b
BLAKE2b-256 checksum
How to use checksums
7230f8b3f0cc57b8183f465bdd8741e5a9e4c5ea5e8c1564f4520e045671c4ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.

Transparency log

Release files / esapp-0.2.0-py3-none-any.whl

Download URL esapp-0.2.0-py3-none-any.whl
Size 970.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
799270de94116b2cbcfe61644b5183ef5c0a0071dad07fdfa2e79d018adf7cd9
BLAKE2b-256 checksum
How to use checksums
fbca945caca50f31ecbef8165f2e2fd61e40283c142f8a71a91eb5b1bb61dcfe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page