Files
-
bulkhead_terminal_block / bulkhead_terminal_block.kicad_pcb
-
bulkhead_terminal_block / bulkhead_terminal_block.kicad_sch
-
fcb_v2 / ble.kicad_sch
-
fcb_v2 / buffers.kicad_sch
-
fcb_v2 / buzzer.kicad_sch
-
fcb_v2 / fcb_v2.kicad_pcb
-
fcb_v2 / fcb_v2.kicad_sch
-
fcb_v2 / input_prot.kicad_sch
-
fcb_v2 / mcu.kicad_sch
-
fcb_v2 / periph_pwr.kicad_sch
-
fcb_v2 / power.kicad_sch
-
fcb_v2 / pyro_chan.kicad_sch
-
fcb_v2 / pyros_servos.kicad_sch
-
fcb_v2 / radio.kicad_sch
-
fcb_v2 / radio_fe.kicad_sch
-
fcb_v2 / sensors.kicad_sch
-
fcb_v2 / stlink.kicad_sch
-
fcb_v2 / storage.kicad_sch
-
fcb_v2 / switchover.kicad_sch
-
fcb_v2 / umbilical.kicad_sch
-
fcb_v2 / usb_hub.kicad_sch
-
fcb_v2_gpsonly / ble.kicad_sch
-
fcb_v2_gpsonly / buffers.kicad_sch
-
fcb_v2_gpsonly / buzzer.kicad_sch
-
fcb_v2_gpsonly / fcb_v2_gpsonly.kicad_pcb
-
fcb_v2_gpsonly / fcb_v2_gpsonly.kicad_sch
-
fcb_v2_gpsonly / input_prot.kicad_sch
-
fcb_v2_gpsonly / mcu.kicad_sch
-
fcb_v2_gpsonly / periph_pwr.kicad_sch
-
fcb_v2_gpsonly / power.kicad_sch
-
fcb_v2_gpsonly / pyro_chan.kicad_sch
-
fcb_v2_gpsonly / pyros_servos.kicad_sch
-
fcb_v2_gpsonly / radio.kicad_sch
-
fcb_v2_gpsonly / radio_fe.kicad_sch
-
fcb_v2_gpsonly / sensors.kicad_sch
-
fcb_v2_gpsonly / stlink.kicad_sch
-
fcb_v2_gpsonly / storage.kicad_sch
-
fcb_v2_gpsonly / switchover.kicad_sch
-
fcb_v2_gpsonly / umbilical.kicad_sch
-
fcb_v2_gpsonly / usb_hub.kicad_sch
-
fcgps_elvin / fcgps_elvin.kicad_pcb
-
fcgps_elvin / fcgps_elvin.kicad_sch
-
groundstation_v3 / groundstation_v3.kicad_pcb
-
groundstation_v3 / groundstation_v3.kicad_sch
-
groundstation_v4 / ble.kicad_sch
-
groundstation_v4 / buzzer.kicad_sch
-
groundstation_v4 / groundstation_v4.kicad_pcb
-
groundstation_v4 / groundstation_v4.kicad_sch
-
groundstation_v4 / input_prot.kicad_sch
-
groundstation_v4 / mcu.kicad_sch
-
groundstation_v4 / power.kicad_sch
-
groundstation_v4 / pyro_chan.kicad_sch
-
groundstation_v4 / pyros_servos.kicad_sch
-
groundstation_v4 / radio.kicad_sch
-
groundstation_v4 / sensors.kicad_sch
-
groundstation_v4 / storage.kicad_sch
-
groundstation_v4 / usb_hub.kicad_sch
-
line_cutter_r5 / ble.kicad_sch
-
line_cutter_r5 / buzzer.kicad_sch
-
line_cutter_r5 / input_prot.kicad_sch
-
line_cutter_r5 / line_cutter_r5.kicad_pcb
-
line_cutter_r5 / line_cutter_r5.kicad_sch
-
line_cutter_r5 / mcu.kicad_sch
-
line_cutter_r5 / power.kicad_sch
-
line_cutter_r5 / pyro_chan.kicad_sch
-
line_cutter_r5 / pyros_servos.kicad_sch
-
line_cutter_r5 / sensors.kicad_sch
-
line_cutter_r5 / storage.kicad_sch
-
line_cutter_r5 / usb_hub.kicad_sch
-
LTC2946_breakout / LTC2946_breakout.kicad_pcb
-
LTC2946_breakout / LTC2946_breakout.kicad_sch
-
LTC2946_breakout / periph_pwr.kicad_sch
-
mini_fcb_v2 / ble.kicad_sch
-
mini_fcb_v2 / buffers.kicad_sch
-
mini_fcb_v2 / buzzer.kicad_sch
-
mini_fcb_v2 / input_prot.kicad_sch
-
mini_fcb_v2 / mcu.kicad_sch
-
mini_fcb_v2 / mini_fcb_v2.kicad_pcb
-
mini_fcb_v2 / mini_fcb_v2.kicad_sch
-
mini_fcb_v2 / periph_pwr.kicad_sch
-
mini_fcb_v2 / power.kicad_sch
-
mini_fcb_v2 / pyro_chan.kicad_sch
-
mini_fcb_v2 / pyros_servos.kicad_sch
-
mini_fcb_v2 / radio.kicad_sch
-
mini_fcb_v2 / radio_fe.kicad_sch
-
mini_fcb_v2 / sensors.kicad_sch
-
mini_fcb_v2 / stlink.kicad_sch
-
mini_fcb_v2 / storage.kicad_sch
-
mini_fcb_v2 / switchover.kicad_sch
-
mini_fcb_v2 / umbilical.kicad_sch
-
mini_fcb_v2 / usb_hub.kicad_sch
-
protection_breakout / input_prot.kicad_sch
-
protection_breakout / protection_breakout.kicad_pcb
-
protection_breakout / protection_breakout.kicad_sch
Last update 3 months 3 weeks
by
Matt M
import.pyimport glob import os from kiutils.symbol import SymbolLib for f in glob.iglob('import/**/*', recursive=True): if f.endswith("kicad_sym"): # Is symbol -- append to big symbol list new_lib = SymbolLib.from_file(f) fcb_lib = SymbolLib.from_file("fcb_v2_lib.kicad_sym") existing_symbol_names = [it.entryName for it in fcb_lib.symbols] for it in new_lib.symbols: if it.entryName not in existing_symbol_names: fcb_lib.symbols.append(it) print(f"Added {it.entryName} to big library") else: print("Symbol already in library -- not replacing") # Everything's in Git, we don't care if we blow local changes away. S3ndit fcb_lib.to_file("fcb_v2_lib.kicad_sym") os.remove(f) print("Wrote new changes") if f.lower().endswith("step") or f.lower().endswith("kicad_mod"): # file is footprint/3d model -- copy in new_path = os.path.join("fcb_footprints.pretty", f.split(os.sep)[-1]) if not os.path.exists(new_path): os.rename(f, new_path) print(f"imported {new_path}") else: print(f"file {new_path} exists -- not replacing")