Skip to main content

Kicad-CLI python bindings

Project description

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.

MIT License

Copyright (c) 2024 faebryk

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kicadcliwrapper-1.0.4.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

kicadcliwrapper-1.0.4-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

Details for the file kicadcliwrapper-1.0.4.tar.gz.

File metadata

  • Download URL: kicadcliwrapper-1.0.4.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for kicadcliwrapper-1.0.4.tar.gz
Algorithm Hash digest
SHA256 e80a0cfef838db5ab14f1699a268e154d9f5687a6dfd761dd57f624c70ac35a2
MD5 067d6f880efe5874c8b617966911777d
BLAKE2b-256 d93581ea7803d9f45d902ca79027e0d7475ca8a4be75d2432c198b8779a2d208

See more details on using hashes here.

File details

Details for the file kicadcliwrapper-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for kicadcliwrapper-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8f68b8d28c164211bc2aa3593bed091aad537a37b4cb6af1576061190485f214
MD5 6518b518320a2f817f3c8c5b2c606853
BLAKE2b-256 c79f14199af1b484b1821ad6b08c00715c9f38a2a127b9bc33ec7ad80e46bb9e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page