CfgBase#
- class pyedb.configuration.cfg_common.CfgBase#
Provide common attribute export and assignment helpers.
Overview#
Return a filtered dictionary of instance attributes. |
|
Set all non-protected attributes from this instance onto pedb_object. |
Import detail#
from pyedb.configuration.cfg_common import CfgBase
Attribute detail#
- CfgBase.protected_attributes = ['pedb', 'pyedb_obj', 'api']#
Method detail#
- CfgBase.get_attributes(exclude=None)#
Return a filtered dictionary of instance attributes.
- CfgBase.set_attributes(pedb_object)#
Set all non-protected attributes from this instance onto pedb_object.
- Parameters:
- pedb_object
object Target object that must already expose the same attribute names.
- pedb_object
- Raises:
AttributeErrorIf an attribute returned by
get_attributes()is not present on pedb_object.