Updated the README and generic example.

This commit is contained in:
SET 2020-08-16 00:22:32 -03:00
parent 71d1ee3bc7
commit 70cec67f19
2 changed files with 36 additions and 36 deletions

View File

@ -344,7 +344,7 @@ Next time you need this list just use an alias, like this:
Can be just the name of the field. Can be just the name of the field.
* Valid keys: * Valid keys:
- `field`: [string=''] Name of the field to use for this column. - `field`: [string=''] Name of the field to use for this column.
- `join`: [list(string)|string] List of fields to join to this column. - `join`: [list(string)|string=''] List of fields to join to this column.
- `name`: [string=''] Name to display in the header. The field is used when empty. - `name`: [string=''] Name to display in the header. The field is used when empty.
- `component_aliases`: [list(list(string))] A series of values which are considered to be equivalent for the part name. - `component_aliases`: [list(list(string))] A series of values which are considered to be equivalent for the part name.
Each entry is a list of equivalen names. Example: ['c', 'c_small', 'cap' ] Each entry is a list of equivalen names. Example: ['c', 'c_small', 'cap' ]
@ -401,12 +401,12 @@ Next time you need this list just use an alias, like this:
* Valid keys: * Valid keys:
- `col_colors`: [boolean=true] Use colors to show the field type. - `col_colors`: [boolean=true] Use colors to show the field type.
- `datasheet_as_link`: [string=''] Column with links to the datasheet. - `datasheet_as_link`: [string=''] Column with links to the datasheet.
- `digikey_link`: [string|list(string)] Column/s containing Digi-Key part numbers, will be linked to web page. - `digikey_link`: [string|list(string)=''] Column/s containing Digi-Key part numbers, will be linked to web page.
- `generate_dnf`: [boolean=true] Generate a separated section for DNF (Do Not Fit) components. - `generate_dnf`: [boolean=true] Generate a separated section for DNF (Do Not Fit) components.
- `hide_pcb_info`: [boolean=false] Hide project information. - `hide_pcb_info`: [boolean=false] Hide project information.
- `hide_stats_info`: [boolean=false] Hide statistics information. - `hide_stats_info`: [boolean=false] Hide statistics information.
- `highlight_empty`: [boolean=true] Use a color for empty cells. Applies only when `col_colors` is `true`. - `highlight_empty`: [boolean=true] Use a color for empty cells. Applies only when `col_colors` is `true`.
- `logo`: [string|boolean] PNG file to use as logo, use false to remove. - `logo`: [string|boolean=''] PNG file to use as logo, use false to remove.
- `style`: [string='modern-blue'] Page style. Internal styles: modern-blue, modern-green, modern-red and classic. - `style`: [string='modern-blue'] Page style. Internal styles: modern-blue, modern-green, modern-red and classic.
Or you can provide a CSS file name. Please use .css as file extension.. Or you can provide a CSS file name. Please use .css as file extension..
- `title`: [string='KiBot Bill of Materials'] BoM title. - `title`: [string='KiBot Bill of Materials'] BoM title.
@ -428,18 +428,18 @@ Next time you need this list just use an alias, like this:
- `test_regex`: [boolean=true] Each component group will be tested against a number of regular-expressions - `test_regex`: [boolean=true] Each component group will be tested against a number of regular-expressions
(see `include_only` and `exclude_any`). (see `include_only` and `exclude_any`).
- `use_alt`: [boolean=false] Print grouped references in the alternate compressed style eg: R1-R7,R18. - `use_alt`: [boolean=false] Print grouped references in the alternate compressed style eg: R1-R7,R18.
- `variant`: [string=''] Board variant(s), used to determine which components - `variant`: [string|list(string)=''] Board variant(s), used to determine which components
are output to the BoM.. are output to the BoM..
- `xlsx`: [dict] Options for the XLSX format. - `xlsx`: [dict] Options for the XLSX format.
* Valid keys: * Valid keys:
- `col_colors`: [boolean=true] Use colors to show the field type. - `col_colors`: [boolean=true] Use colors to show the field type.
- `datasheet_as_link`: [string=''] Column with links to the datasheet. - `datasheet_as_link`: [string=''] Column with links to the datasheet.
- `digikey_link`: [string|list(string)] Column/s containing Digi-Key part numbers, will be linked to web page. - `digikey_link`: [string|list(string)=''] Column/s containing Digi-Key part numbers, will be linked to web page.
- `generate_dnf`: [boolean=true] Generate a separated section for DNF (Do Not Fit) components. - `generate_dnf`: [boolean=true] Generate a separated section for DNF (Do Not Fit) components.
- `hide_pcb_info`: [boolean=false] Hide project information. - `hide_pcb_info`: [boolean=false] Hide project information.
- `hide_stats_info`: [boolean=false] Hide statistics information. - `hide_stats_info`: [boolean=false] Hide statistics information.
- `highlight_empty`: [boolean=true] Use a color for empty cells. Applies only when `col_colors` is `true`. - `highlight_empty`: [boolean=true] Use a color for empty cells. Applies only when `col_colors` is `true`.
- `logo`: [string|boolean] PNG file to use as logo, use false to remove. - `logo`: [string|boolean=''] PNG file to use as logo, use false to remove.
- `max_col_width`: [number=60] [20,999] Maximum column width (characters). - `max_col_width`: [number=60] [20,999] Maximum column width (characters).
- `style`: [string='modern-blue'] Head style: modern-blue, modern-green, modern-red and classic.. - `style`: [string='modern-blue'] Head style: modern-blue, modern-green, modern-red and classic..
- `title`: [string='KiBot Bill of Materials'] BoM title. - `title`: [string='KiBot Bill of Materials'] BoM title.
@ -656,7 +656,7 @@ Next time you need this list just use an alias, like this:
Can be just the name of the field. Can be just the name of the field.
* Valid keys: * Valid keys:
- `field`: [string=''] Name of the field to use for this column. - `field`: [string=''] Name of the field to use for this column.
- `join`: [list(string)|string] List of fields to join to this column. - `join`: [list(string)|string=''] List of fields to join to this column.
- `name`: [string=''] Name to display in the header. The field is used when empty. - `name`: [string=''] Name to display in the header. The field is used when empty.
- `component_aliases`: [list(list(string))] A series of values which are considered to be equivalent for the part name. - `component_aliases`: [list(list(string))] A series of values which are considered to be equivalent for the part name.
Each entry is a list of equivalen names. Example: ['c', 'c_small', 'cap' ] Each entry is a list of equivalen names. Example: ['c', 'c_small', 'cap' ]
@ -669,7 +669,7 @@ Next time you need this list just use an alias, like this:
- ['zener', 'zenersmall'] - ['zener', 'zenersmall']
- ['d', 'diode', 'd_small']. - ['d', 'diode', 'd_small'].
- `datasheet_as_link`: [string=''] Column with links to the datasheet (HTML only). - `datasheet_as_link`: [string=''] Column with links to the datasheet (HTML only).
- `digikey_link`: [string|list(string)] Column/s containing Digi-Key part numbers, will be linked to web page (HTML only). - `digikey_link`: [string|list(string)=''] Column/s containing Digi-Key part numbers, will be linked to web page (HTML only).
- `exclude_any`: [list(dict)] A series of regular expressions used to exclude parts. - `exclude_any`: [list(dict)] A series of regular expressions used to exclude parts.
If a component matches ANY of these, it will be excluded. If a component matches ANY of these, it will be excluded.
Column names are case-insensitive. Column names are case-insensitive.
@ -741,14 +741,14 @@ Next time you need this list just use an alias, like this:
- `bottom`: [boolean=false] render the bottom side of the board (default is top side). - `bottom`: [boolean=false] render the bottom side of the board (default is top side).
- `dpi`: [number=300] [10,1200] dots per inch (resolution) of the generated image. - `dpi`: [number=300] [10,1200] dots per inch (resolution) of the generated image.
- `format`: [string='svg'] [svg,png,jpg] output format. Only used if no `output` is specified. - `format`: [string='svg'] [svg,png,jpg] output format. Only used if no `output` is specified.
- `highlight`: [list(string)] list of components to highlight. - `highlight`: [list(string)=[]] list of components to highlight.
- `libs`: [list(string)] list of libraries. - `libs`: [list(string)=[]] list of libraries.
- `mirror`: [boolean=false] mirror the board. - `mirror`: [boolean=false] mirror the board.
- `no_drillholes`: [boolean=false] do not make holes transparent. - `no_drillholes`: [boolean=false] do not make holes transparent.
- `output`: [string='%f-%i.%x'] name for the generated file. Affected by global options. - `output`: [string='%f-%i.%x'] name for the generated file. Affected by global options.
- `placeholder`: [boolean=false] show placeholder for missing components. - `placeholder`: [boolean=false] show placeholder for missing components.
- `remap`: [dict|None] replacements for PCB references using components (lib:component). - `remap`: [dict|None] replacements for PCB references using components (lib:component).
- `show_components`: [string|list(string)] [none,all] list of components to draw, can be also a string for none or all. - `show_components`: [string|list(string)=none] [none,all] list of components to draw, can be also a string for none or all.
The default is none. The default is none.
- `style`: [string|dict] PCB style (colors). An internal name, the name of a JSON file or the style options. - `style`: [string|dict] PCB style (colors). An internal name, the name of a JSON file or the style options.
* Valid keys: * Valid keys:

View File

@ -36,8 +36,8 @@ outputs:
columns: columns:
# [string=''] Name of the field to use for this column # [string=''] Name of the field to use for this column
field: '' field: ''
# [list(string)|string] List of fields to join to this column # [list(string)|string=''] List of fields to join to this column
join: join: ''
# [string=''] Name to display in the header. The field is used when empty # [string=''] Name to display in the header. The field is used when empty
name: '' name: ''
# [list(list(string))] A series of values which are considered to be equivalent for the part name. # [list(list(string))] A series of values which are considered to be equivalent for the part name.
@ -50,7 +50,7 @@ outputs:
# - ['sw', 'switch'] # - ['sw', 'switch']
# - ['zener', 'zenersmall'] # - ['zener', 'zenersmall']
# - ['d', 'diode', 'd_small'] # - ['d', 'diode', 'd_small']
component_aliases: component_aliases: [['r', 'r_small', 'res', 'resistor'], ['l', 'l_small', 'inductor'], ['c', 'c_small', 'cap', 'capacitor'], ['sw', 'switch'], ['zener', 'zenersmall'], ['d', 'diode', 'd_small']]
# [dict] Options for the CSV, TXT and TSV formats # [dict] Options for the CSV, TXT and TSV formats
csv: csv:
# [boolean=false] Hide project information # [boolean=false] Hide project information
@ -101,15 +101,15 @@ outputs:
# Components which match (comparing *all* fields) will be grouped together. # Components which match (comparing *all* fields) will be grouped together.
# Field names are case-insensitive. # Field names are case-insensitive.
# If empty: ['Part', 'Part Lib', 'Value', 'Footprint', 'Footprint Lib'] is used # If empty: ['Part', 'Part Lib', 'Value', 'Footprint', 'Footprint Lib'] is used
group_fields: group_fields: ['part', 'part lib', 'value', 'footprint', 'footprint lib']
# [dict] Options for the HTML format # [dict] Options for the HTML format
html: html:
# [boolean=true] Use colors to show the field type # [boolean=true] Use colors to show the field type
col_colors: true col_colors: true
# [string=''] Column with links to the datasheet # [string=''] Column with links to the datasheet
datasheet_as_link: '' datasheet_as_link: ''
# [string|list(string)] Column/s containing Digi-Key part numbers, will be linked to web page # [string|list(string)=''] Column/s containing Digi-Key part numbers, will be linked to web page
digikey_link: digikey_link: ''
# [boolean=true] Generate a separated section for DNF (Do Not Fit) components # [boolean=true] Generate a separated section for DNF (Do Not Fit) components
generate_dnf: true generate_dnf: true
# [boolean=false] Hide project information # [boolean=false] Hide project information
@ -118,8 +118,8 @@ outputs:
hide_stats_info: false hide_stats_info: false
# [boolean=true] Use a color for empty cells. Applies only when `col_colors` is `true` # [boolean=true] Use a color for empty cells. Applies only when `col_colors` is `true`
highlight_empty: true highlight_empty: true
# [string|boolean] PNG file to use as logo, use false to remove # [string|boolean=''] PNG file to use as logo, use false to remove
logo: logo: ''
# [string='modern-blue'] Page style. Internal styles: modern-blue, modern-green, modern-red and classic. # [string='modern-blue'] Page style. Internal styles: modern-blue, modern-green, modern-red and classic.
# Or you can provide a CSS file name. Please use .css as file extension. # Or you can provide a CSS file name. Please use .css as file extension.
style: 'modern-blue' style: 'modern-blue'
@ -153,7 +153,7 @@ outputs:
test_regex: true test_regex: true
# [boolean=false] Print grouped references in the alternate compressed style eg: R1-R7,R18 # [boolean=false] Print grouped references in the alternate compressed style eg: R1-R7,R18
use_alt: false use_alt: false
# [string=''] Board variant(s), used to determine which components # [string|list(string)=''] Board variant(s), used to determine which components
# are output to the BoM. # are output to the BoM.
variant: '' variant: ''
# [dict] Options for the XLSX format # [dict] Options for the XLSX format
@ -162,8 +162,8 @@ outputs:
col_colors: true col_colors: true
# [string=''] Column with links to the datasheet # [string=''] Column with links to the datasheet
datasheet_as_link: '' datasheet_as_link: ''
# [string|list(string)] Column/s containing Digi-Key part numbers, will be linked to web page # [string|list(string)=''] Column/s containing Digi-Key part numbers, will be linked to web page
digikey_link: digikey_link: ''
# [boolean=true] Generate a separated section for DNF (Do Not Fit) components # [boolean=true] Generate a separated section for DNF (Do Not Fit) components
generate_dnf: true generate_dnf: true
# [boolean=false] Hide project information # [boolean=false] Hide project information
@ -172,8 +172,8 @@ outputs:
hide_stats_info: false hide_stats_info: false
# [boolean=true] Use a color for empty cells. Applies only when `col_colors` is `true` # [boolean=true] Use a color for empty cells. Applies only when `col_colors` is `true`
highlight_empty: true highlight_empty: true
# [string|boolean] PNG file to use as logo, use false to remove # [string|boolean=''] PNG file to use as logo, use false to remove
logo: logo: ''
# [number=60] [20,999] Maximum column width (characters) # [number=60] [20,999] Maximum column width (characters)
max_col_width: 60 max_col_width: 60
# [string='modern-blue'] Head style: modern-blue, modern-green, modern-red and classic. # [string='modern-blue'] Head style: modern-blue, modern-green, modern-red and classic.
@ -442,8 +442,8 @@ outputs:
columns: columns:
# [string=''] Name of the field to use for this column # [string=''] Name of the field to use for this column
field: '' field: ''
# [list(string)|string] List of fields to join to this column # [list(string)|string=''] List of fields to join to this column
join: join: ''
# [string=''] Name to display in the header. The field is used when empty # [string=''] Name to display in the header. The field is used when empty
name: '' name: ''
# [list(list(string))] A series of values which are considered to be equivalent for the part name. # [list(list(string))] A series of values which are considered to be equivalent for the part name.
@ -456,11 +456,11 @@ outputs:
# - ['sw', 'switch'] # - ['sw', 'switch']
# - ['zener', 'zenersmall'] # - ['zener', 'zenersmall']
# - ['d', 'diode', 'd_small'] # - ['d', 'diode', 'd_small']
component_aliases: component_aliases: [['r', 'r_small', 'res', 'resistor'], ['l', 'l_small', 'inductor'], ['c', 'c_small', 'cap', 'capacitor'], ['sw', 'switch'], ['zener', 'zenersmall'], ['d', 'diode', 'd_small']]
# [string=''] Column with links to the datasheet (HTML only) # [string=''] Column with links to the datasheet (HTML only)
datasheet_as_link: '' datasheet_as_link: ''
# [string|list(string)] Column/s containing Digi-Key part numbers, will be linked to web page (HTML only) # [string|list(string)=''] Column/s containing Digi-Key part numbers, will be linked to web page (HTML only)
digikey_link: digikey_link: ''
# [list(dict)] A series of regular expressions used to exclude parts. # [list(dict)] A series of regular expressions used to exclude parts.
# If a component matches ANY of these, it will be excluded. # If a component matches ANY of these, it will be excluded.
# Column names are case-insensitive. # Column names are case-insensitive.
@ -496,7 +496,7 @@ outputs:
# Components which match (comparing *all* fields) will be grouped together. # Components which match (comparing *all* fields) will be grouped together.
# Field names are case-insensitive. # Field names are case-insensitive.
# If empty: ['Part', 'Part Lib', 'Value', 'Footprint', 'Footprint Lib'] is used # If empty: ['Part', 'Part Lib', 'Value', 'Footprint', 'Footprint Lib'] is used
group_fields: group_fields: ['Part', 'Part Lib', 'Value', 'Footprint', 'Footprint Lib']
# [boolean=false] Hide column headers # [boolean=false] Hide column headers
hide_headers: false hide_headers: false
# [boolean=false] Hide project information # [boolean=false] Hide project information
@ -552,10 +552,10 @@ outputs:
dpi: 300 dpi: 300
# [string='svg'] [svg,png,jpg] output format. Only used if no `output` is specified # [string='svg'] [svg,png,jpg] output format. Only used if no `output` is specified
format: 'svg' format: 'svg'
# [list(string)] list of components to highlight # [list(string)=[]] list of components to highlight
highlight: highlight: []
# [list(string)] list of libraries # [list(string)=[]] list of libraries
libs: libs: []
# [boolean=false] mirror the board # [boolean=false] mirror the board
mirror: false mirror: false
# [boolean=false] do not make holes transparent # [boolean=false] do not make holes transparent
@ -566,9 +566,9 @@ outputs:
placeholder: false placeholder: false
# [dict|None] replacements for PCB references using components (lib:component) # [dict|None] replacements for PCB references using components (lib:component)
remap: remap:
# [string|list(string)] [none,all] list of components to draw, can be also a string for none or all. # [string|list(string)=none] [none,all] list of components to draw, can be also a string for none or all.
# The default is none # The default is none
show_components: show_components: none
# [string|dict] PCB style (colors). An internal name, the name of a JSON file or the style options # [string|dict] PCB style (colors). An internal name, the name of a JSON file or the style options
style: style:
# [string='#4ca06c'] color for the board without copper (covered by solder mask) # [string='#4ca06c'] color for the board without copper (covered by solder mask)