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.

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
mhi_xml-1.5.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.5.0 This release

1 release file

1.4.0

1 release file

1.3.0

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.4

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.0.1

1 release file

1.0.0

1 release file

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