Improved documentation

This commit is contained in:
Oliver Walters 2016-05-19 07:51:53 +10:00
parent 8aaa2bb110
commit baa8f570b8
5 changed files with 21 additions and 4 deletions

View File

@ -11,6 +11,7 @@ import argparse
here = os.path.abspath(os.path.dirname(sys.argv[0]))
sys.path.append(here)
sys.path.append(os.path.join(here,"KiBOM"))
from KiBOM.columns import ColumnList
from KiBOM.netlist_reader import *

View File

@ -9,6 +9,23 @@ KiBoM intelligently groups components based on multiple factors, and can generat
BoM options are user-configurable in a per-project configuration file.
## Usage
The *KiBOM_CLI* script can be run directly from KiCad or from the command line. For command help, run the script with the *-h* flag e.g.
python KiBOM_CLI.py -h
![alt tag](example/help.png?raw=True "Command Line")
**netlist** The netlist must be provided to the script. When running from KiCAD use "%I"
**--output / -o** If provided, this is the path to the BoM output. If not provided, the script will use the same name as the input file, with the suffix "_bom.csv"
**--cfg** If provided, this is the BOM config file that will be used. If not provided, options will be loaded from "bom.ini"
**--verbose / -v** Enable extra debugging information
To run from KiCad, simply add the same command line in the *Bill of Materials* script window. e.g. to generate a HTML output:
![alt tag](example/html_eg.png?raw=True "HTML Example")
## Features
### Intelligent Component Grouping
@ -107,7 +124,7 @@ Hit the "Generate" button, and the output window should show that the BoM genera
### HTML Output
The output HTML file is generated as follows:
![alt tag](example/html.png?raw=True "HTML")
![alt tag](example/html_eg.png?raw=True "HTML")
Here the components are correctly grouped, with links to datasheets where appropriate, and fields color-coded.

View File

@ -1,3 +1,2 @@
import sys
sys.path.append(".")
import KiBOM
from KiBOM import *

BIN
example/help.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
example/html_eg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB