From d0d4203d206bc6a6da7899e3783fe251840be26d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Thu, 30 Mar 2023 22:11:43 +0200 Subject: [PATCH] make: add bom generator (not included in pip) --- KiBOM_CLI.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 KiBOM_CLI.py diff --git a/KiBOM_CLI.py b/KiBOM_CLI.py new file mode 100644 index 0000000..3ae019d --- /dev/null +++ b/KiBOM_CLI.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python3 +""" + @package + KiBOM - Bill of Materials generation for KiCad + + Generate BOM in xml, csv, txt, tsv, html or xlsx formats. + + - Components are automatically grouped into BoM rows (grouping is configurable) + - Component groups count number of components and list component designators + - Rows are automatically sorted by component reference(s) + - Supports board variants + + Extended options are available in the "bom.ini" config file in the PCB directory + (this file is auto-generated with default options the first time the script is executed). + + For usage help: + python KiBOM_CLI.py -h +""" + +import sys +import os + +here = os.path.abspath(os.path.dirname(__file__)) +sys.path.insert(0, here) + +from kibom.__main__ import main # noqa: E402 + +main()