Skip to main content

MHI XML File Readers & Updaters

Support for directly manipulating the following XML files:

  • PSCAD
    • Workspace (*.pswx)
    • Library and Case projects (*.pslx & *.pscx)

Examples

PSCAD

Change the simulation duration of all cases in a workspace to 2.0 seconds:

import mhi.xml.pscad

ws = mhi.xml.pscad.WorkspaceFile(r'C:\Path\To\Workspace.pswx')

for project_name, project_node in ws.project.items():
    if project_node.is_case:
        project = project_node.open()
        project.parameters.time_duration = "2.0 [sec]"
        project.save()

Documentation

Use py -m mhi.xml help to access the module documentation.

Metadata

Release files for mhi-xml 1.5.0

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

Built distribution (wheel)

Table of built distributions (wheels) for mhi-xml 1.5.0
File Interpreter ABI Platform Actions
mhi_xml-1.5.0-py3-none-any.whl Python 3 none any Details for mhi_xml-1.5.0-py3-none-any.whl

Release files / mhi_xml-1.5.0-py3-none-any.whl

Download URL mhi_xml-1.5.0-py3-none-any.whl
Size 80.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ff61c5446e8d72e45e0aa17db54f796efda99dbe5f286a5fbecf7581996ccee
BLAKE2b-256 checksum
How to use checksums
f8446de9c9ac78b7ea1c7b7b97a784a992fd8af52a02e08612b30aa66f70096f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0rc2

Security for mhi-xml 1.5.0

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