Exporters#

class fretboardgtr.exporters.Exporter[source]#

Bases: ABC

Interface to implement for a new exporter.

__init__(drawing)[source]#
Parameters:

drawing (Drawing) –

abstract export(to)[source]#
Parameters:

to (str | Path) –

Return type:

None

class fretboardgtr.exporters.PDFExporter[source]#

Bases: Exporter

PDF Exporter.

Need reportlab and svglib module installed

export(to)[source]#
Parameters:

to (str | Path) –

Return type:

None

class fretboardgtr.exporters.PNGExporter[source]#

Bases: Exporter

PNG Exporter.

Need reportlab and svglib module installed

export(to)[source]#
Parameters:

to (str | Path) –

Return type:

None

class fretboardgtr.exporters.SVGExporter[source]#

Bases: Exporter

SVG Exporter.

export(to)[source]#
Parameters:

to (str | Path) –

Return type:

None

fretboardgtr.exporters.register_exporter(exporter, extension)[source]#

Register an exporter.

When creating a new exporter one have to use this function to register the exporter and be able to use it

Parameters:
  • exporter (Type[Exporter]) –

  • extension (str) –

Return type:

None