mz_msisdn
1.0.0
Mozambican MSISDNS를 검증하십시오
pip install mz-msisdn
기본적으로 유효성 검사 기능은 국제 형식의 숫자를 검증하기 위해 설정됩니다.
from mz_msisdn import mz_validator
# If the number is valid an empty array will be returned
mz_validator ( "258844245708" ) # []
# If the number is invalid an error bag containing all errors will be returned
errors = mz_validator ( "25889424570" )
print ( errors )
# ['The phone number must be 12 characters long. currently with 11.',
# "Invalid network code. Valid codes: ['82', '83', '84', '85', '86', '87']."]모잠비크 숫자 만받을 것이라는 점을 고려하여 숫자를 검증하려면 아래와 같이 국가 형성을 활성화 할 수 있습니다.
errors = mz_validator ( "89424570" , nr_format = "national" )
# ['The phone number must be 9 characters long. currently with 8.',
# "Invalid network code. Valid codes: ['82', '83', '84', '85', '86', '87']."]