Skip to main content

Scripts, templates, and examples for managing KiCad projects.

Project description

kicad-helpers

Scripts, templates, and examples for managing KiCad projects.

Build, Test, Package PyPI version shields.io

Project goals:

  • provide a sensible default project structure and scripts for managing KiCad projects with git
  • automate anything that can be automated (update BOMs, produce manufacturing files, run tests, generate documentation, etc.)
  • configure git and KiCad to play nicely together
  • support customization via command line arguments, environment variables, etc.
  • make everything easy to install/setup/use
  • make awesome documentation

Install

pip install kicad_helpers

How to use

Navigate to the directory containing your KiCad project:

cd KICAD/PROJECT/PATH

Run the kh_update script to update all project templates:

kh_update --help
usage: kh_update [-h] [--v] [--overwrite] [--root ROOT]

Update project templates from the `kicad_helpers/templates` directory (ignoring anything in the project's `.gitignore`
list).

optional arguments:
  -h, --help   show this help message and exit
  --v          verbose (default: False)
  --overwrite  overwrite existing templates (default: False)
  --root ROOT  project root directory (default: .)

The following templates are installed by default:

To overwrite existing templates, run the command with the --overwrite flag, e.g.:

kh_update --v --overwrite
kitspace.yaml already exists
Rendering kitspace.yaml template.
.github/workflows/build.yml already exists
Rendering .github/workflows/build.yml template.
.ipynb_checkpoints/kitspace-checkpoint.yaml already exists
Rendering .ipynb_checkpoints/kitspace-checkpoint.yaml template.
.kicad_helpers_config/config.kibot.yaml already exists
Rendering .kicad_helpers_config/config.kibot.yaml template.
.kicad_helpers_config/manufacturers/PCBWay.kibot.yaml already exists
Rendering .kicad_helpers_config/manufacturers/PCBWay.kibot.yaml template.

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

kicad_helpers-0.6.0.tar.gz (18.8 kB view hashes)

Uploaded Source

Built Distribution

kicad_helpers-0.6.0-py3-none-any.whl (17.6 kB view hashes)

Uploaded Python 3

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