OpenDFX for Printed Circuit Boards
This package holds the recommendations of OpenDFX for Printed Circuit Boards by Chris Denney. The book is free and open. It gives practical advice from electronics manufacturing for designing circuit boards that are easy to fabricate, assemble and test. These are recommendations, not rules.
Each recommendation has a permanent ID, such as PCB-DFA-006, and a permanent address, such as opendfx.org/PCB-DFA-006. The address leads to the recommendation's page in the book, which has the drawings and the full discussion.
The package has no dependencies. It needs Python 3.9 or later.
pip install opendfx
What is in it
The package holds three things from the book.
- The data file, with every recommendation: its text, the reasons for it, typical values, the design stages it applies to and its sources.
- The KiCad 10 design-rules file, which checks the recommendations that KiCad's design rule check can see. The book's page KiCad design rules explains how to use it.
- The release checker, which checks the Gerber, drill, netlist, placement and BOM files exported from KiCad 10, and reports each recommendation as Met, Not met or Needs a person.
From the command line
Print one recommendation in full:
opendfx show PCB-DFM-020
Print every recommendation for one design stage. The stages, in order, are parts, library, placement, routing, outline, release and production.
opendfx stage placement
Find the recommendations that contain every word you give:
opendfx search fiducial
Add --json to show, stage or search to print the records as JSON.
Check a board's release files before sending them to the fab and the assembler.
With --board, it also runs KiCad's design rule check on the board, which needs kicad-cli.
Run opendfx check-release --help for the KiCad commands that export the files.
opendfx check-release release/ --board myboard.kicad_pcb
Copy the KiCad rules file next to a project, named after it:
opendfx kicad-rules myboard.kicad_pro
From Python
import opendfx
rec = opendfx.get("PCB-DFA-006")
print(rec["title"], rec["permalink"])
for rec in opendfx.for_stage("routing"):
print(rec["id"], rec["title"])
opendfx.search("tooling hole") # recommendations that contain every word
opendfx.recommendations() # all of them
opendfx.data_path() # the data file, recommendations.json
opendfx.rules_path() # the KiCad rules file, opendfx.kicad_dru
The fields of each record are described in the book's data notes.
For AI agents
The book's page Using this book with an AI agent explains how an agent should work through the book while designing a board.
In short: work stage by stage, run opendfx stage <stage> at the start of each, use the recommended values, and run the KiCad rules file and the release checker before release.
When you cite a recommendation, give its ID and its permanent address.
Licenses and credit
The data is licensed CC BY 4.0. The code and the KiCad rules file are licensed MIT. The book's text is licensed CC BY-SA 4.0. Credit "OpenDFX for Printed Circuit Boards by Chris Denney, https://opendfx.org". The book's How to cite page gives the full citation.
The package's version is the book's version. Corrections and suggestions are welcome as issues or at hello@opendfx.org.
Trademark
OpenDFX is a trademark of Chris Denney.
The licenses cover the text, drawings, data and code, but not the OpenDFX name, so readers can always tell what is official.
This package is the official opendfx package.
The book's About page explains how you may use the name.
Metadata
Release files for opendfx 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| opendfx-1.0.tar.gz | 173.8 kB | With provenance | Details for opendfx-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| opendfx-1.0-py3-none-any.whl | Python 3 | none | any | Details for opendfx-1.0-py3-none-any.whl |
Total release size: 351.2 kB
Release files / opendfx-1.0.tar.gz
| Download URL | opendfx-1.0.tar.gz |
|---|---|
| Size | 173.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51f2be646c84661368a7a394ff34f24551881869841a1bf27b1e13c7b5c8e87d
|
|
BLAKE2b-256 checksum How to use checksums |
62132e4b0a695e0db79cdf0734aa68a9c25d3aa9706108803032395a6f2ac757
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logRelease files / opendfx-1.0-py3-none-any.whl
| Download URL | opendfx-1.0-py3-none-any.whl |
|---|---|
| Size | 177.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd44f003c4ac38f632c4edeb8768de327095bac4d86618185dc90cdd02968136
|
|
BLAKE2b-256 checksum How to use checksums |
f3aee237c5dd7a4d6e95d066df5c0fea5b13e2cac103b6d53082615ae2850905
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logSecurity for opendfx 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for opendfx-1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.