PyPLECS¶
Fast, cached, scalable PLECS simulation framework with REST API and Web GUI
PyPLECS automates PLECS power electronics simulation with modern software engineering practices.
Key Features¶
- 5x faster batch simulations leveraging PLECS native parallel API
- 100-1000x cache speedup on repeated simulations (hash-based deduplication)
- REST API for language-agnostic integration
- Web GUI for real-time monitoring and control
- Priority queue with automatic retry logic
- Flexible caching with Parquet, HDF5, or CSV storage
Quick Start¶
from pyplecs import PlecsServer
with PlecsServer("model.plecs") as server:
results = server.simulate({"Vi": 12.0, "Vo": 5.0})
Documentation¶
| Document | Description |
|---|---|
| PRD | Product requirements and roadmap |
| Architecture | System design, layers, data flow |
| API Reference | REST API endpoints and examples |
| Installation | Setup, configuration, troubleshooting |
| Web GUI | Dashboard features and usage |
| Migration | v0.x to v1.0.0 upgrade guide |
| Changelog | Version history |
| Contributing | Development setup and workflow |
| Auto-Context | Generated project summary |
Architecture¶
Two-layer design:
- Core Layer (
pyplecs.py): Thin wrapper around PLECS XML-RPC + GUI automation - Value-Add Layer: Orchestration, caching, API, web UI