Module Expr Str ImportFrom alias alias Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore TupleLoad Num Num Assign NameStore Num Assign NameStore Num Import alias Import alias Import alias Import alias ImportFrom alias identifier alias identifier ImportFrom alias alias alias alias FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore BinOpMult UnaryOpUSub BinOpDiv BinOpSub NameLoad Num Num Num For NameStore Call NameLoad NameLoad body Assign NameStore IfExp CompareEq NameLoad Num Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad Num Str NameLoad TupleLoad NameLoad Num ListLoad Num Num ListLoad Str Str Str Str keyword ListLoad Num AugAssignAdd NameStore Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore BinOpMult UnaryOpUSub BinOpDiv BinOpSub NameLoad Num Num Num For NameStore Call NameLoad NameLoad body Assign NameStore IfExp CompareEq BinOpAdd BinOpMult Num NameLoad Num Num Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd BinOpMult Num NameLoad Num Str NameLoad TupleLoad NameLoad Num ListLoad Num Num ListLoad Str Str Str Str keyword ListLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd BinOpMult Num NameLoad Num Str Str TupleLoad NameLoad Num ListLoad Num Num ListLoad Str Str Str Str keyword ListLoad Num AugAssignAdd NameStore Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call NameLoad BinOpMult NameLoad Num Num TupleLoad Num Num Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call NameLoad BinOpMult NameLoad Num BinOpMult Num Num TupleLoad Num Num Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call NameLoad BinOpMult NameLoad Num Num TupleLoad Num Num Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call NameLoad BinOpMult NameLoad Num BinOpMult Num Num TupleLoad Num Num Str NameLoad Assign NameStore Str Assign NameStore NameLoad Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad TupleLoad Num SubscriptLoad NameLoad Index Num NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad TupleLoad Num SubscriptLoad NameLoad Index Num NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd BinOpMult NameLoad Num BinOpMult Num NameLoad Assign NameStore BinOpAdd Num BinOpMult Num NameLoad Assign NameStore BinOpMult Num NameLoad Assign NameStore BinOpMult NameLoad Call NameLoad Call AttributeLoad NameLoad attr BinOpDiv NameLoad NameLoad Assign NameStore BinOpMult NameLoad Call NameLoad Call AttributeLoad NameLoad attr BinOpDiv NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad TupleLoad Num Num Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd BinOpMult NameLoad Num BinOpMult Num NameLoad Assign NameStore BinOpAdd BinOpMult Num Num BinOpMult Num NameLoad Assign NameStore BinOpMult Num NameLoad Assign NameStore BinOpMult NameLoad Call NameLoad Call AttributeLoad NameLoad attr BinOpDiv NameLoad NameLoad Assign NameStore BinOpMult NameLoad Call NameLoad Call AttributeLoad NameLoad attr BinOpDiv NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad TupleLoad Num Num Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore BinOpAdd Num BinOpMult Num NameLoad Assign NameStore BinOpAdd BinOpDiv NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Num UnaryOpUSub NameLoad Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad TupleLoad Num NameLoad Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore BinOpAdd BinOpMult Num Num BinOpMult Num NameLoad Assign NameStore BinOpAdd BinOpDiv NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Num UnaryOpUSub NameLoad Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad TupleLoad Num NameLoad Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Str NameLoad TupleLoad Str Str TupleLoad Str NameLoad AugAssignAdd NameStore Call NameLoad NameLoad AugAssignAdd NameStore Call NameLoad NameLoad AugAssignAdd NameStore Call NameLoad NameLoad AugAssignAdd NameStore Call NameLoad NameLoad AugAssignAdd NameStore Call NameLoad NameLoad Return TupleLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr BinOpMult Num NameLoad Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Str NameLoad TupleLoad Str Str TupleLoad Str NameLoad AugAssignAdd NameStore Call NameLoad NameLoad AugAssignAdd NameStore Call NameLoad NameLoad AugAssignAdd NameStore Call NameLoad NameLoad AugAssignAdd NameStore Call NameLoad NameLoad AugAssignAdd NameStore Call NameLoad NameLoad Return TupleLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body For NameStore Call NameLoad Num Num body For NameStore TupleLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd NameLoad Str If NameLoad body Expr Call NameLoad Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension NameStore Call NameLoad NameLoad CompareNotEq SubscriptLoad NameLoad Index Num Str Assign NameStore ListComp NameLoad comprehension NameStore Call NameLoad NameLoad CompareNotEq SubscriptLoad NameLoad Index Num Str If CompareEq NameLoad NameLoad body Continue If NameLoad body Return NameLoad orelse With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Return NameLoad decorator_list If CompareEq NameLoad Str body If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call NameLoad NameLoad orelse If BoolOpAnd CompareEq Call NameLoad AttributeLoad NameLoad attr Num CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If Call NameLoad NameLoad keyword NameLoad body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Num orelse Expr Call NameLoad Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num orelse Expr Call NameLoad Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Num
N/A N/A 
build_mod_sil_dil.py
Copyright 2016 Adam Greig
Licensed under the MIT licence, see LICENSE file for details.

Generate footprints for standard 0.1" SIL and DIL headers.
 __future__ print_function division N/A ctyd_gap 0.25 N/A ctyd_grid 0.05 N/A ctyd_width 0.01 N/A silk_width 0.15 N/A fab_width 0.01 N/A font_size N/A 1.0 1.0 N/A font_thickness 0.15 N/A font_halfheight 0.7 N/A os N/A sys N/A time N/A math sexp parse sexp_parse generate sexp_generate kicad_mod fp_line fp_text pad draw_square sil_pads N/A N/A pins N/A N/A N/A pads N/A N/A x N/A N/A N/A N/A pins 1 2 2.54 N/A pin N/A range pins N/A N/A shape N/A N/A pin 0 rect circle N/A N/A N/A pads append N/A pad N/A pin 1 thru_hole shape N/A x 0 N/A 1.9 1.9 N/A *.Cu F.SilkS F.Mask B.Mask drill N/A 1.0 N/A x 2.54 N/A pads N/A dil_pads N/A N/A pins N/A N/A N/A pads N/A N/A x N/A N/A N/A N/A pins 1 2 2.54 N/A pin N/A range pins N/A N/A shape N/A N/A N/A N/A 2 pin 1 1 rect circle N/A N/A N/A pads append N/A pad N/A N/A 2 pin 1 thru_hole shape N/A x 1.27 N/A 1.9 1.9 N/A *.Cu F.SilkS F.Mask B.Mask drill N/A 1.0 N/A N/A N/A pads append N/A pad N/A N/A 2 pin 2 thru_hole circle N/A x -1.27 N/A 1.9 1.9 N/A *.Cu F.SilkS F.Mask B.Mask drill N/A 1.0 N/A x 2.54 N/A pads N/A sil_fab N/A N/A pins N/A N/A N/A N/A _ _ _ _ sq N/A draw_square N/A pins 2.54 2.54 N/A 0 0 F.Fab fab_width N/A sq N/A dil_fab N/A N/A pins N/A N/A N/A N/A _ _ _ _ sq N/A draw_square N/A pins 2.54 N/A 2 2.54 N/A 0 0 F.Fab fab_width N/A sq N/A sil_silk N/A N/A pins N/A N/A N/A N/A _ _ _ _ sq N/A draw_square N/A pins 2.54 2.54 N/A 0 0 F.SilkS silk_width N/A sq N/A dil_silk N/A N/A pins N/A N/A N/A N/A nw ne se sw _ N/A draw_square N/A pins 2.54 N/A 2 2.54 N/A 0 0 F.SilkS silk_width N/A l F.SilkS N/A w silk_width N/A out N/A N/A N/A N/A out append N/A fp_line nw ne l w N/A N/A N/A out append N/A fp_line ne se l w N/A N/A N/A out append N/A fp_line se N/A 1.27 N/A se N/A 1 l w N/A N/A N/A out append N/A fp_line N/A -1.27 N/A sw N/A 1 sw l w N/A N/A N/A out append N/A fp_line sw nw l w N/A out N/A sil_ctyd N/A N/A pins N/A N/A N/A w N/A N/A pins 2.54 N/A 2 ctyd_gap N/A h N/A 2.54 N/A 2 ctyd_gap N/A grid N/A 2 ctyd_grid N/A w N/A grid N/A int N/A N/A math ceil N/A w grid N/A h N/A grid N/A int N/A N/A math ceil N/A h grid N/A N/A _ _ _ _ sq N/A draw_square w h N/A 0 0 F.CrtYd ctyd_width N/A sq N/A dil_ctyd N/A N/A pins N/A N/A N/A w N/A N/A pins 2.54 N/A 2 ctyd_gap N/A h N/A N/A 2 2.54 N/A 2 ctyd_gap N/A grid N/A 2 ctyd_grid N/A w N/A grid N/A int N/A N/A math ceil N/A w grid N/A h N/A grid N/A int N/A N/A math ceil N/A h grid N/A N/A _ _ _ _ sq N/A draw_square w h N/A 0 0 F.CrtYd ctyd_width N/A sq N/A sil_refs N/A N/A name N/A N/A N/A out N/A N/A ctyd_h N/A 2.54 N/A 2 ctyd_gap N/A y N/A N/A ctyd_h 2.0 font_halfheight N/A N/A N/A out append N/A fp_text reference REF** N/A 0 N/A y F.Fab font_size font_thickness N/A N/A N/A out append N/A fp_text value name N/A 0 y F.Fab font_size font_thickness N/A out N/A dil_refs N/A N/A name N/A N/A N/A out N/A N/A ctyd_h N/A N/A 2 2.54 N/A 2 ctyd_gap N/A y N/A N/A ctyd_h 2.0 font_halfheight N/A N/A N/A out append N/A fp_text reference REF** N/A 0 N/A y F.Fab font_size font_thickness N/A N/A N/A out append N/A fp_text value name N/A 0 y F.Fab font_size font_thickness N/A out N/A sil N/A N/A pins N/A N/A N/A name N/A N/A SIL-254P-{:02d} format pins N/A tedit N/A format N/A int N/A N/A time time X N/A sexp N/A module name N/A layer F.Cu N/A tedit tedit N/A sexp N/A sil_pads pins N/A sexp N/A sil_fab pins N/A sexp N/A sil_silk pins N/A sexp N/A sil_ctyd pins N/A sexp N/A sil_refs name N/A N/A name N/A sexp_generate sexp N/A dil N/A N/A pins N/A N/A N/A name N/A N/A DIL-254P-{:02d} format N/A 2 pins N/A tedit N/A format N/A int N/A N/A time time X N/A sexp N/A module name N/A layer F.Cu N/A tedit tedit N/A sexp N/A dil_pads pins N/A sexp N/A dil_fab pins N/A sexp N/A dil_silk pins N/A sexp N/A dil_ctyd pins N/A sexp N/A dil_refs name N/A N/A name N/A sexp_generate sexp N/A main N/A N/A prettypath verify N/A False N/A N/A pins N/A range 1 21 N/A N/A generator N/A sil dil N/A N/A N/A name fp N/A generator pins N/A path N/A N/A N/A os path join prettypath N/A name .kicad_mod N/A verify N/A N/A N/A print Verifying path N/A N/A N/A N/A os path isfile path N/A N/A N/A open path f N/A N/A old N/A N/A f read N/A old N/A n N/A n N/A sexp_parse old N/A N/A n N/A 0 tedit N/A new N/A n N/A n N/A sexp_parse fp N/A N/A n N/A 0 tedit N/A N/A new old N/A N/A N/A verify N/A N/A False N/A N/A N/A open path w f N/A N/A N/A N/A f write fp N/A verify N/A N/A True N/A N/A N/A __name__ __main__ N/A N/A N/A N/A len N/A sys argv 2 N/A N/A prettypath N/A N/A sys argv N/A 1 N/A N/A main prettypath N/A N/A N/A N/A N/A len N/A sys argv 3 N/A N/A N/A sys argv N/A 2 --verify N/A N/A prettypath N/A N/A sys argv N/A 1 N/A N/A main prettypath verify True N/A N/A N/A print OK: all footprints up-to-date. N/A N/A N/A sys exit 0 N/A N/A N/A print Error: footprints not up-to-date. file N/A sys stderr N/A N/A N/A sys exit 1 N/A N/A N/A print N/A N/A Usage: {} <.pretty path> format N/A N/A sys argv N/A 0 N/A N/A N/A sys exit 0