zam_authentic.nrc_validation package
Submodules
zam_authentic.nrc_validation.constants module
zam_authentic.nrc_validation.utils module
- zam_authentic.nrc_validation.utils.create_nrc_regex(delimiter: str) str
- zam_authentic.nrc_validation.utils.is_valid_nrc(nrc_number: str, nrc_pattern: str)
- zam_authentic.nrc_validation.utils.validate_delimiter(delimiter: str) bool
zam_authentic.nrc_validation.validate module
- zam_authentic.nrc_validation.validate.validate_nrc(nrc_number: str, delimiter: str = None) bool
function to validate nrc pattern Enter the number and a possible delimiter also known as a seperator to give the program a pattern to match. Delimiter Defaults to None , at which point it assumes that there is no seperator between the numbers. :param nrc_number: this is the nrc number you wish to validate e.g 223432/12/1 :param delimiter: this is the separator that determines how your nrc values are seperated. :return bool: it returns a boolean values that can be use to determine if nrc is valid or not True/False