Skip to main content

A collection of small PSS/E utility scripts built on psse-model-util.

Project description

psse-utils

A collection of small PSS/E utility scripts built on psse-model-util. Instead of a new repo + PyPI project per script, scripts live here and ship as one package.

Installation

pip install --pre psse-utils

--pre is required while this package (and psse-model-util) are pre-releases.

Scripts

flowgate-key-facilities

Identify the key facilities for a set of PSS/E flowgates — the equipment whose outage would most likely have a high impact on those flowgates. For each flowgate in a .mon file, it keeps AC lines in a kV range and generators above a PMax, all within n buses (hops) of the flowgate's elements, and writes the results to CSVs.

flowgate-key-facilities \
  --mon flowgates.mon --raw Model.raw \
  --areas 1 2 3 --sc SCA --out-dir outputs/

Full options: flowgate-key-facilities --help. Outputs branches.csv, generators.csv, transformers_3w.csv, unresolved.csv in --out-dir.

Adding a script

  1. Create src/psse_utils/<name>.py with the logic as importable functions plus a thin main(argv=None) -> int that parses args and calls them (keeping logic separate from the CLI leaves room for a future TUI/web UI).
  2. Add a console command in pyproject.toml: [project.scripts]your-command = "psse_utils.<name>:main".
  3. Add tests tests/test_<name>_*.py (script-prefixed).
  4. Put any heavy/extra dependencies behind an extra in [project.optional-dependencies].

Development

python -m venv .venv
.venv\Scripts\python -m pip install --pre -e .
.venv\Scripts\python -m pip install pytest pytest-cov
.venv\Scripts\python -m pytest

Versioning is CalVer (YYYY.M.micro) from src/psse_utils/__about__.py. Releases publish to PyPI via Trusted Publishing — see the team setup runbook and psse-model-util's docs/PUBLISHING.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

psse_utils-2026.6.0b1.tar.gz (66.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

psse_utils-2026.6.0b1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file psse_utils-2026.6.0b1.tar.gz.

File metadata

  • Download URL: psse_utils-2026.6.0b1.tar.gz
  • Upload date:
  • Size: 66.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for psse_utils-2026.6.0b1.tar.gz
Algorithm Hash digest
SHA256 fdff0e68320d3cb2f6eca64760239fe902666356c94d6904fe8290fc978a4902
MD5 82587a46b2d4206a6fdb539b0daf9cd3
BLAKE2b-256 87e87b9d3442c2db9e6fea51a3bf4de057258f02650fcc46c188c2f26c7ae243

See more details on using hashes here.

Provenance

The following attestation bundles were made for psse_utils-2026.6.0b1.tar.gz:

Publisher: publish.yml on ppsyOps/psse_utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file psse_utils-2026.6.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for psse_utils-2026.6.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 474640c970e37312f14f9a6e123e545b23b9ac6d77c050225bcfcf96c76ea026
MD5 a5213f346a58cdd48fddf6207940d524
BLAKE2b-256 7793187c218a91c033b816631263ff485917d03f44ead224495fd07c02d2547d

See more details on using hashes here.

Provenance

The following attestation bundles were made for psse_utils-2026.6.0b1-py3-none-any.whl:

Publisher: publish.yml on ppsyOps/psse_utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page