gEDA gsymlib Module (tendril.gedaif.gsymlib)

class tendril.gedaif.gsymlib.EDASymbolBase[source]

Bases: object

Base class for EDA symbols. This class should not be used directly, but sub-classed per EDA suite, the sub-classes designed to interface with the way each EDA suite handles symbol libraries.

Todo

This class is to eventually move into a tendril.edaif module, which should be used to proxy to the specific implementation for the EDA suite being used.

The constructor for this class should be called from it’s subclasses after all the necessary implementation-specific variables are created and filled in.

_get_sym()[source]
_generate_img_repr()[source]
device
value
footprint
status
description
package
last_updated
ident
ident_generic
is_wire
is_modlen
img_repr_fname
indicative_sourcing_info
sourcing_info_qty(qty)[source]
datasheet_url
sym_ok
_validate()[source]
is_deprecated
is_experimental
is_virtual
class tendril.gedaif.gsymlib.GedaSymbol(fpath)[source]

Bases: tendril.gedaif.gsymlib.EDASymbolBase

gEDA symbols use a symbol file, located within the gEDA component library folders, usually defined within a gafrc file. Only the symbol filename is important, and not it’s location relative to the component library root.

This class accepts a (full) file path to a gEDA symbol in it’s constructor, and loads all the necessary detail abouts the symbol into itself.

gEDA symbols may also represent a sub-circuit in a hierarchical schematic. Support for handling this type of use is included here.

Todo

Generator support is also built into this class for the moment. It should eventually be moved into EDASymbolBase or a second base. It currently uses parameters seemingly specific gEDA, i.e., fpath and fname. Handling single-file libraries such as those used by Eagle may need a more thought through approach.

Parameters:fpath – os path to the symbol file to be loaded
_get_sym()[source]
_acq_sym(fpath)[source]
_generate_img_repr()[source]
_sch_img_repr()[source]
_validate()[source]
is_subcircuit
schematic_path
schematic_fname
subcircuitident
sch_img_repr_fname
is_generator
genident
genpath
generator
idents
class tendril.gedaif.gsymlib.GSymGeneratorFile(sympath)[source]

Bases: object

type
igenerators
iseries
ivalues
iunits
_get_data()[source]
values
tendril.gedaif.gsymlib.get_folder_symbols(path, template=None, resolve_generators=True, include_generators=False)[source]
tendril.gedaif.gsymlib.gen_symlib(path='/home/chintal/gEDA2/symbols', recursive=True, resolve_generators=True, include_generators=False)[source]
tendril.gedaif.gsymlib.gen_index(symlist, upper=False)[source]
tendril.gedaif.gsymlib._jinja_init()[source]
tendril.gedaif.gsymlib.regenerate_symlib()[source]
tendril.gedaif.gsymlib.get_generator(gen)[source]
tendril.gedaif.gsymlib.get_subcircuit(sc)[source]
tendril.gedaif.gsymlib.is_recognized(ident)[source]
tendril.gedaif.gsymlib.get_symbol(ident, case_insensitive=False, get_all=False)[source]
tendril.gedaif.gsymlib.get_symbol_folder(ident, case_insensitive=False)[source]
tendril.gedaif.gsymlib.get_latest_symbols(n=10, include_virtual=False)[source]
tendril.gedaif.gsymlib.find_capacitor(capacitance, footprint, device='CAP CER SMD', voltage=None)[source]
tendril.gedaif.gsymlib.find_resistor(resistance, footprint, device='RES SMD', wattage=None)[source]
tendril.gedaif.gsymlib.export_gsymlib_audit()[source]
exception tendril.gedaif.gsymlib.NoGedaSymbolException[source]

Bases: exceptions.Exception