Skip to content

Strongly typed, auto-generated python bindings for KiCAD's command line interface.

License

Notifications You must be signed in to change notification settings

atopile/kicadcliwrapper

Repository files navigation

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.

About

Strongly typed, auto-generated python bindings for KiCAD's command line interface.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages