Skip to main content

pypsdm

pypsdm aims to make power system model analysis a breeze. It is based upon the Power System Data Model (PSDM).

Its main functionalities include:

  • parsing grid models and associated result data
  • calculation utilities for event discrete time series data
  • plotting capabilities for grid and result data

It is currently under development. So if you want to use it, expect it to change quite frequently for now.

PyPI - Version

Installation

To add the project as dependency run

pip install pypsdm

or

poetry add pypsdm

depending on your depedency management system.

If you want to clone and explore the repository locally, run

poetry install 

inside the repository root folder. For more information about poetry, refer to their documentation.

Documentation

Please refer to:

  • docs/nbs/input_models.ipynb
  • docs/nbs/result_models.ipynb
  • docs/nbs/plotting_utilities.ipynb

to see exemplary notebooks outlining some of the basic functionalities.

Quickstart:

You can read grid models via

from pypsdm.models.gwr import GridWithResults

grid_path = "/path/to/my/psdm/grid"
result_path = "/path/to/my/psdm/results"

gwr = GridWithResults.from_csv(grid_path, result_path)

If you only want to read the grid model without the results

# All relevant input models can be imported from `pypsdm/models/input`
from pypsdm.models.input import GridContainer

grid_path = "/path/to/my/psdm/grid"
grid = GridContainer.from_csv(grid_path)

If you only want to read the results without the grid model

# All relevant result models can be imported from `pypsdm/models/result`
from pypsdm.models.results import GridResultContainer

result_path = "/path/to/my/psdm/results"
results = GridResultContainer.from_csv(result_path)

Known Issues

  • When adding the project as a dependency the language server of the code editors do not suggest autoimports for all symbols of the project, which means they have to be imported manually. It might have something to do with how poetry publishes the artifacts. If you have an idea what the issue could be any tipps are welcome.

Metadata

Release files for pypsdm 0.0.8

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

Source distribution (sdist)

Source distribution for pypsdm 0.0.8
File Size Uploaded Provenance Actions
pypsdm-0.0.8.tar.gz 75.7 kB Without provenance Details for pypsdm-0.0.8.tar.gz

Built distribution (wheel)

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

Total release size: 190.8 kB

Release files / pypsdm-0.0.8.tar.gz

Download URL pypsdm-0.0.8.tar.gz
Size 75.7 kB
Tags Source
SHA-256 checksum
How to use checksums
dff0cad764c88c041ce4272e889eaa17789c508e9ac4ea3490fb881ec3074d66
BLAKE2b-256 checksum
How to use checksums
7f74427a98b515a50c8917007dc0fb9ee099a4882e4552839421b8c5eac025c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.11.6 Windows/10

Release files / pypsdm-0.0.8-py3-none-any.whl

Download URL pypsdm-0.0.8-py3-none-any.whl
Size 115.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5eba072de0d4c6a91b4b7fddc0183aba86cc3e1f7175cca186c2996223e2f85c
BLAKE2b-256 checksum
How to use checksums
aa5d07b4e85ee9c4f5b6f67ac111e7ef2f57537d7b6c8ead3050aecb16a14524
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.11.6 Windows/10

Security for pypsdm 0.0.8

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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