KiCAD CLI python bindings
Strongly typed, auto-generated python bindings for KiCAD's command line interface.
Usage
Setup
pip install kicadcliwrapper
Examples
from kicadcliwrapper.generated.kicad_cli import kicad_cli
# Get version
kicad_cli(
kicad_cli.version(),
).exec()
# Export pdf for pcb
kicad_cli(
kicad_cli.pcb(
kicad_cli.pcb.export(
kicad_cli.pcb.export.pdf(
INPUT_FILE="input.kicad_pcb"
)
)
),
).exec()
For more examples you can check faebryk
Development
git clone https://github.com/faebryk/kicadcliwrapper.git
poetry install
# Re-generate bindings (make sure kicad-cli is installed)
python src/kicadcliwrapper/main.py
See PARSER.md for an explanation of the internal parsing.
Metadata
Release files for kicadcliwrapper 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kicadcliwrapper-1.1.1.tar.gz | 48.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kicadcliwrapper-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 87.5 kB
Release files / kicadcliwrapper-1.1.1.tar.gz
| Download URL | kicadcliwrapper-1.1.1.tar.gz |
|---|---|
| Size | 48.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
faf209ca4dc0cd468803e1a7594ef3547ae5877b76444640b3bfd1214fcf4b18
|
|
BLAKE2b-256 checksum How to use checksums |
13dcf93360191c11455db0d50e4f6d0f3c664ee2e3234de42cf51260cff895b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Jun 26, 2025.
Transparency logRelease files / kicadcliwrapper-1.1.1-py3-none-any.whl
| Download URL | kicadcliwrapper-1.1.1-py3-none-any.whl |
|---|---|
| Size | 38.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13f17fd09a963669a2fb482fc92876d30d39bfbf0b3e60a980c0b9041155ff6b
|
|
BLAKE2b-256 checksum How to use checksums |
419dbbbc2bb70157b2b872ab73a51377e8a0df7c5eff79ac59c186d4ec9040b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Jun 26, 2025.
Transparency log