Winding Lab: Your powerful winding design assistant
Project description
WDG Lab — Winding Design Laboratory
WDG Lab is a concise, developer-friendly toolkit for designing, analyzing, and visualizing electrical windings. It focuses on practical outputs for design validation, documentation, and quick iteration.
Table of contents
Key features
- Stranded and hairpin winding generators
- Magnetic calculations: MMF, harmonics, and winding factors
- Slot current distribution and pin/connection details
- 2D visualization utilities for winding layouts and reports
- Example scripts and a lightweight web UI (see Quick links)
Quick links
- Documentation: docs/
- Examples: examples/
- Web UI (optional): https://github.com/DawnEver/wdg-lab-webui
Installation
Recommended: install from source (development mode).
- Clone the repository
git clone https://github.com/DawnEver/wdg-lab.git
cd wdg-lab
- Create and activate a virtual environment, uv is recommanded:
uv venv
# or use venv
pip -m venv .venv
- Install the package
uv pip install -e . # for normal user
uv pip install -e ".[web]" # for web user
uv pip install -e ".[dev,web]" # for developer
Quick start
- Generate a winding from parameters (examples include basic parameter sets):
python examples/gen_winding_from_params.py
- Generate a winding from winding configuration files:
python examples/gen_winding_from_toml.py
Project layout
wdg_lab/— core library modules and APIsexamples/— runnable examples and small utilitiestests/— unit tests and validation cases
Contributing
Contributions, bug reports, and feature requests are welcome. To contribute:
- Open an issue to discuss large changes.
- Fork the repo and create a feature branch.
- Add tests where applicable and follow the existing code style.
- Open a pull request describing your change.
License
This project is licensed under the Apache License, Version 2.0. See the full license in the LICENSE file or at https://www.apache.org/licenses/LICENSE-2.0
Contact
For questions or collaboration, open an issue or contact the maintainers through the repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wdg_lab-0.1.1.tar.gz.
File metadata
- Download URL: wdg_lab-0.1.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68cdc9ed7c3253cf54b87ff056cedc55b4243b7172d5a6a7ee8ae6f2cbc0aa88
|
|
| MD5 |
a9130eac531cc1c228e0a7dd366d0074
|
|
| BLAKE2b-256 |
18c4d6ff441f3ef7daf4d47a8d6eb9594bc71cda74b73994a47f1b0206cd3c1f
|
File details
Details for the file wdg_lab-0.1.1-py3-none-any.whl.
File metadata
- Download URL: wdg_lab-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbf5fa51c2751b502772fe8d089a0688edfa2fdec9272e15cfafc6681c7d621b
|
|
| MD5 |
910712772d2855fb530f3ab4ca60dc87
|
|
| BLAKE2b-256 |
eb63f50d7e9f93fa22f341d6900b9468304e52f1566747fb9b27bf92e89ae8b3
|