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.
-
device
¶
-
value
¶
-
footprint
¶
-
status
¶
-
description
¶
-
package
¶
-
last_updated
¶
-
ident
¶
-
ident_generic
¶
-
is_wire
¶
-
is_modlen
¶
-
img_repr_fname
¶
-
indicative_sourcing_info
¶
-
datasheet_url
¶
-
sym_ok
¶
-
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
andfname
. 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 -
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
¶
-
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.
find_capacitor
(capacitance, footprint, device='CAP CER SMD', voltage=None)[source]¶
-
tendril.gedaif.gsymlib.
find_resistor
(resistance, footprint, device='RES SMD', wattage=None)[source]¶
-
exception
tendril.gedaif.gsymlib.
NoGedaSymbolException
[source]¶ Bases:
exceptions.Exception