pyaltium.base#
base.py
Baase classes for everything we do
Module Contents#
Classes#
Magic values and strings used in Altium files |
|
Helper functions for anything with an ole file_name object. |
|
This class will generally not be exposed. |
|
An item in a library. |
|
Single item in a library. |
Attributes#
- class pyaltium.base.Magic#
Magic values and strings used in Altium files
- SCHLIB_HEADER = HEADER=Protel for Windows - Schematic Library Editor Binary File Version 5.0#
- PCBLIB_HEADER = PCB 6.0 Binary Library File#
- class pyaltium.base.OleMixin#
Helper functions for anything with an ole file_name object.
- file_name :str#
- class pyaltium.base.AltiumFileMixin(file_name=None, lazyload=False)#
Bases:
OleMixinThis class will generally not be exposed. Just intended to set up children
- lazyload :bool#
- pyaltium.base.LibItemType#
- class pyaltium.base.AltiumLibMixin(file_name=None, lazyload=False)#
Bases:
AltiumFileMixin,Generic[LibItemType]An item in a library.
Library items should be able to load themselves from a file.
- items_list :List[LibItemType]#
- pyaltium.base.RecordType#
- class pyaltium.base.AltiumLibItemMixin#
Bases:
OleMixin,Generic[RecordType]Single item in a library.
- property records#
Load data if it hasn’t been loaded yet. If it has, return it.
- Return type
List[RecordType]
- abstract draw(ax)#
Draw self on a canvas.
- Parameters
ax (matplotlib.pyplot.Axes) –
- Return type
None
- get_svg()#