Metadata-Version: 2.4
Name: pulsimgui
Version: 0.9.1
Summary: Cross-platform GUI for Pulsim power electronics simulator
Project-URL: Homepage, https://github.com/lgili/PulsimGui
Project-URL: Repository, https://github.com/lgili/PulsimGui
Author-email: Luiz Gili <luizcarlosgili@gmail.com>
License-Expression: MIT
Keywords: GUI,Qt,circuit simulation,power electronics
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
Requires-Python: >=3.10
Requires-Dist: numpy>=1.24.0
Requires-Dist: pulsim>=0.9.0
Requires-Dist: pyqtgraph>=0.13.0
Requires-Dist: pyside6>=6.5.0
Requires-Dist: qtawesome>=1.3.0
Provides-Extra: build
Requires-Dist: dmgbuild>=1.6.0; (sys_platform == 'darwin') and extra == 'build'
Requires-Dist: pillow>=10.0.0; extra == 'build'
Requires-Dist: pulsim>=0.9.0; extra == 'build'
Requires-Dist: pyinstaller>=6.0.0; extra == 'build'
Provides-Extra: dev
Requires-Dist: black>=23.0.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
Requires-Dist: pytest-qt>=4.2.0; extra == 'dev'
Requires-Dist: pytest>=7.0.0; extra == 'dev'
Requires-Dist: ruff>=0.1.0; extra == 'dev'
Description-Content-Type: text/markdown

<div align="center">

<img src="docs/imgs/dashboard_dark.png" alt="PulsimGui — Dark Theme" width="100%" />

# PulsimGui

**Professional GUI for power electronics simulation with Pulsim.**

[![Release](https://img.shields.io/github/v/release/lgili/PulsimGUI?label=latest&color=brightgreen)](https://github.com/lgili/PulsimGUI/releases/latest)
[![PyPI](https://img.shields.io/pypi/v/pulsimgui?label=PyPI&color=orange)](https://pypi.org/project/pulsimgui/)
[![Docs](https://img.shields.io/badge/docs-GitHub%20Pages-0ea5e9)](https://lgili.github.io/PulsimGUI/)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
[![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue)](https://www.python.org/)

[**Download latest release**](https://github.com/lgili/PulsimGUI/releases/latest) · [**Install from PyPI**](https://pypi.org/project/pulsimgui/) · [**Documentation**](https://lgili.github.io/PulsimGUI/) · [**Report a bug**](https://github.com/lgili/PulsimGUI/issues)

</div>

---

**PulsimGui** is a cross-platform desktop interface for [Pulsim](https://github.com/lgili/PulsimCore), focused on modeling and validating power converter topologies.

## Key Features

- Schematic editor with drag-and-drop workflow.
- Component library focused on power electronics.
- Transient simulation with advanced solver controls.
- Advanced backend telemetry for convergence, fallback, and loss/thermal diagnostics.
- Integrated waveform viewer with signal measurements.
- Ready-to-run examples (`RC`, `buck`, `boost`, and more).

## Official Documentation

Full documentation is available at:

- [https://lgili.github.io/PulsimGUI/](https://lgili.github.io/PulsimGUI/)

Main content includes:

- Installation and execution
- GUI guides and workflow
- Simulation and backend configuration
- Practical tutorials
- Technical reference for contributors

## Installation

### 1. Release (Recommended)

Use installers from [Releases](https://github.com/lgili/PulsimGUI/releases/latest).

### 2. Install via pip

```bash
python3 -m pip install --upgrade pip
python3 -m pip install pulsimgui
```

Run:

```bash
pulsimgui
```

The `pulsimgui` package is published to PyPI by the release pipeline (`.github/workflows/release.yml`) whenever a new tag `v*` is released.

### 3. Development setup (source code)

```bash
git clone https://github.com/lgili/PulsimGUI.git
cd PulsimGui
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -e ".[dev]"
python3 -m pulsimgui
```

## Recommended Backend

For reproducible behavior, use **`pulsim v0.7.9`**.

This is required for full advanced electrothermal support in GUI runtime:

- staged thermal networks (`single_rc`, `foster`, `cauer`)
- shared-sink coupling (`shared_sink_id`, `shared_sink_rth`, `shared_sink_cth`)
- datasheet switching-loss surfaces (`loss.model=datasheet`)

Quick check:

```bash
python3 -c "import pulsim; print(pulsim.__version__)"
```

In the app: `Preferences → Simulation → Backend Runtime`.

## Runtime Telemetry

With modern Pulsim backends, transient runs expose structured diagnostics in `SimulationResult.statistics`, including solver/backend telemetry and electrothermal summaries:

- `linear_solver_telemetry`
- `backend_telemetry`
- `fallback_trace`
- `loss_summary`
- `thermal_summary`
- `component_electrothermal`

## Development

### Tests

```bash
pytest
```

### Template Smoke Test (Pre-release)

```bash
PYTHONPATH=src python3 scripts/smoke_templates.py
```

### Lint

```bash
ruff check src tests
```

### Local docs build

```bash
python3 -m pip install -r docs/requirements.txt
mkdocs build --strict
mkdocs serve
```

## GitHub Pages (Docs)

Documentation is published through:

- `.github/workflows/docs-pages.yml`

Automatic deploy runs on `main` and `workflow_dispatch`.

> Repository setting required: **Settings → Pages → Source: GitHub Actions**.

## Contributing

- Open issues for bug reports and feature requests.
- For PRs, include context, validation steps, and evidence (logs/screenshots).
- Update docs whenever a user workflow or feature changes.

## License

MIT — see [LICENSE](LICENSE).
