plugin module#

JITX export plugin: write a Gerber fabrication data set from a design.

Registration is an import side effect of the decorator, reached through the jitx-plugin entry point. The CLI derives its flags from the keyword parameters of export, so everything settable from the command line is a flat scalar; a caller that needs more - a configured naming strategy, the written file set back - uses jitxlib.gerber.export_gerber directly.

class GerberExport[source]#

Bases: Export

Export Gerber X2/X3 fabrication data.

preflight(*, output=None, overwrite=False, names='descriptive', drill_format='gerber', compat=None)[source]#

Reject an unusable request before the design is instantiated.

The naming scheme, the drill format and the compatibility adjustments are checked here because an unknown one is a usage error and should not cost a design build. The output guard can only run when –output was given, since the default path depends on the design name; the real enforcement is in the writer, which knows the exact set of paths it is about to write.

Return type:

None

Overrides:

Export.preflight

Parameters:
export(design, *, output=None, overwrite=False, names='descriptive', drill_format='gerber', compat=None)[source]#
Return type:

None

Overrides:

Export.export

Parameters: