(self, num)
return self._luhn_is_valid(num)
Determine whether num is valid. Meant to be used in constrains
        Params:
            num (str or int): Number to validate using NPI algorithm.
        Returns:
            bool
Determine whether num is valid. Meant to be used in constrains
        Params:
            num (str or int): Number to validate using NPI algorithm.
        Returns:
            bool
Determine whether num is valid . Meant to be used in constrains Params : num ( str or int ) : Number to validate using NPI algorithm . Returns : bool
def _npi_is_valid(self, num):
        """ Determine whether num is valid. Meant to be used in constrains
        Params:
            num (str or int): Number to validate using NPI algorithm.
        Returns:
            bool
        """

        if not num:
            return False

        num = '80840%s' % num
        return self._luhn_is_valid(num)
def _npi_is_valid ( self , num ) : if not num : return False num = '80840%s' % num return self . _luhn_is_valid ( num )