# PySD

Python system\-dynamics translation and simulation library for Vensim and XMILE models\.

ID: Q589 · Revision: 637

Type: software · License: MIT[^ps-license] · Status: active

Website: https://pysd.readthedocs.io/



PySD is a library for translating system\-dynamics models into Python and running them alongside Python analysis tools\. It reads Vensim and XMILE models, providing programmatic access to parameters, simulation runs and outputs rather than a replacement diagram editor\.[^ps-home][^ps-start]

## Capabilities and substitutions

### Vensim/XMILE execution — limited

Translation supports many models but not every function or feature\.[^ps-home][^ps-xmile]

Use case: Dynamic system modeling and simulation · Platforms: Python environment · Region: Edition, deployment and model dependencies affect availability

### Analysis\-friendly outputs — supported

Returns data frames or CSV/TAB/netCDF results with dependency differences\.[^ps-start]

Use case: Dynamic system modeling and simulation · Platforms: Python environment · Region: Edition, deployment and model dependencies affect availability

### XMILE macros — unsupported

Current XMILE translation guide identifies macros as unsupported\.[^ps-xmile]

Use case: Dynamic system modeling and simulation · Platforms: Python environment · Region: Edition, deployment and model dependencies affect availability

### [Substitute for Vensim](/vensim) — limited

Can replace execution and Python\-based analysis of supported translated models; numerical checks and graphical\-authoring alternatives remain necessary\.[^ps-home][^ps-start][^vs-about]

Use case: Dynamic system modeling and simulation · Platforms: Python environment · Region: Edition, deployment and model dependencies affect availability

## References

[^ps-license]: [PySD license](<https://github.com/SDXorg/pysd/blob/master/LICENSE>) — MIT license (vendor; retrieved 2026-10-07T09:42:51Z)

[^ps-home]: [PySD overview](<https://pysd.readthedocs.io/en/master/>) — Vensim/XMILE translation and unsupported functions (vendor; retrieved 2026-10-07T09:42:32Z)

[^ps-start]: [PySD getting started](<https://pysd.readthedocs.io/en/master/getting_started.html>) — Data inputs, results formats, parameters and initial conditions (vendor; retrieved 2026-10-07T09:42:56Z)

[^ps-readme]: [PySD repository](<https://github.com/SDXorg/pysd/blob/master/README.md>) — Python requirements and community\-maintained simulation library (vendor; retrieved 2026-10-07T09:42:40Z)

[^ps-xmile]: [PySD XMILE translation](<https://pysd.readthedocs.io/en/master/structure/xmile_translation.html>) — XMILE/Vensim support gap and unsupported XMILE macros (vendor; retrieved 2026-10-07T09:42:23Z)

[^vs-about]: [Vensim software](<https://vensim.com/software/>) — Dynamic feedback, causal tracing and analysis (vendor; retrieved 2026-10-07T09:32:43Z)

[^vs-files]: [Vensim file types](<https://www.vensim.com/documentation/file_types.html>) — Native model, packaged model and result formats (vendor; retrieved 2026-10-07T09:32:31Z)

Source revision: https://substitutefor.net/entities/Q589?revision=637
