def is_primary ( self ) : return isinstance ( self . _key , Primary ) and not isinstance ( self . _key , Sub )
sqlachemu python foreign key reflective base
True if this is a primary key ; False if this is a subkey
def is_primary(self):
        """``True`` if this is a primary key; ``False`` if this is a subkey"""
        return isinstance(self._key, Primary) and not isinstance(self._key, Sub)