pyedb
Higher-Level Pythonic Ansys Electronics Data Base
What it is and what it does
PyEDB is a Python wrapper around Ansys's Electronics Database (EDB) format, designed to make layout automation accessible without deep knowledge of the underlying database implementation. It provides high-level, application-oriented workflows for common tasks like opening or creating EDB projects, editing stackups and materials, managing components and nets, working with padstacks and ports, building cutouts, and preparing designs for electromagnetic solver workflows (HFSS, SIwave, Maxwell, Q3D, Icepak).
The package abstracts backend complexity through a consistent public API, meaning most users can focus on their layout tasks rather than implementation details. It runs as a standalone API without requiring a graphical interface, enabling fast batch processing of large and complex layouts. The package depends on numpy, pydantic, toml, ansys-edb-core, psutil, defusedxml, xmltodict, and typer, and supports Python 3.10 through 3.14.
Use it for:
- Automate PCB layout design workflows in batch without opening Ansys Electronics Desktop UI.
- Programmatically edit stackups, materials, and component placement in existing AEDB files.
- Prepare complex layouts for electromagnetic simulation by scripting port and padstack definitions.
- Translate and process large layout designs from external formats into AEDB for solver workflows.
- Build custom design validation or modification tools on top of the PyEDB API.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
PyEDB is a high-level Python API for reading, creating, and editing Ansys Electronics Database (EDB) layout designs, exposing workflows for stackups, materials, components, nets, padstacks, ports, and cutouts without requiring direct backend knowledge.
Yes, if you have a licensed copy of AEDT and need to automate EDB layout workflows. The package is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive MIT license. The main constraint is the external dependency on ansys-edb-core and AEDT itself, which limits use to organizations with existing Ansys licenses.
Install
pyedb on PyPI
pip
pip install pyedbuv
uv add pyedbpoetry
poetry add pyedbInstalling pyedb
Before you install
Low friction: pure Python wheel with no compiled dependencies. Active maintenance with a release 19 days old and recent commits. Requires ansys-edb-core as a runtime dependency, which may require a separate Ansys installation.
License in practice
MIT license permits commercial and private use with minimal restrictions. Note that PyEDB itself is licensed permissively, but using it requires a legally licensed local copy of AEDT.
Quickstart
pip install pyedb
from pyedb import Edb
edb = Edb(edbpath="myedb.aedb", version="2026.1")
# stackup, materials, components, nets, ports, padstacks, cutouts...
edb.close()
Requires a legally licensed local copy of AEDT (Ansys Electronics Desktop) and ansys-edb-core installed; Python 3.10 or later.
Verify before relying
- Whether ansys-edb-core is freely available or requires a separate Ansys license purchase.
- Performance characteristics when handling very large or complex layouts.
- Compatibility matrix between PyEDB versions and AEDT versions beyond the example shown.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — numpy, pydantic, toml, ansys-edb-core, psutil, defusedxml, xmltodict, typer |
| Maintenance | actively maintained — 19 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 142,682/month — #11,203 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyedb-0.81.0-py3-none-any.whl
Tags
More Information Analysis packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyarrowpyarrow provides Python bindings to Apache…
permissive · top 100 on PyPI
networkxNetworkX provides data structures and…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
contourpyContourPy calculates contours of 2D…
permissive · top 1,000 on PyPI
snowflake-snowpark-pythonSnowpark Python provides APIs to query and…
permissive · top 1,000 on PyPI
ansys-edb-corePyEDB-Core is a Python client for the…
permissive · top 15,000 on PyPI
pyaedtPyAEDT provides a Python API to script and…
permissive · top 15,000 on PyPI
ansys-api-edbProvides auto-generated gRPC Python interface…
permissive · top 15,000 on PyPI
pyDOE3pyDOE3 provides functions to construct…
permissive · top 15,000 on PyPI
ansys-tools-visualization-interfaceProvides a Python API that abstracts…
permissive · top 15,000 on PyPI
gdsfactoryGDSFactory generates CAD files (GDS, OASIS,…
unclear · top 15,000 on PyPI
ansys-tools-commonProvides shared utilities and tools for the…
permissive · top 15,000 on PyPI
pydoePyDOE constructs experimental designs for…
permissive · top 5,000 on PyPI
kfactoryKFactory is a Python framework for designing…
unclear · top 15,000 on PyPI
klayoutKLayout is a Python package for layout viewing,…
copyleft · top 15,000 on PyPI