Package: zim-validate
FeaturesThis is package to assist developers to validate zimbabwean driver’s license numbers, vehicle registration numbers, mobile numbers for Telecel,Econet,Netone and any other valid zim number registered under the major MNOs,Zim passports, national IDs among other things. Visit the project homepage for further information on how to use the package.InstallationTo can install the zim_validate package open shell or terminal and run:pip install zim_validateUsageValidate National ID:If dashes are mandatory the ID will be in the format12-3456789-X-01If thedashesare not mandatory the format will be123456789X01Note parameterdashes: (Optional) If you want to make dashes compulsory on the input stringfromzim_validateimportnational_idprint(national_id("12-3456789-X-01",dashes=True))Validate Passport:All Zimbabwean passports are in the format AB123456fromzim_validateimportpassportprint(passport("AB123456"))Validate ID or passport:All Zimbabwean passports are in the formatAB123456If dashes are mandatory the ID will be in the format12-3456789-X-01If thedashesare not mandatory the format will be123456789X01fromzim_validateimportid_or_passportprint(id_or_passport("12-3456789-X-01",dashes=True))Validate Telecel Numbers:This can be used to check if the given mobile number is a valid Telecel number.
Pass the optional parameterprefixyou want to make the prefix 263 mandatoryfromzim_validateimporttelecel_numberprint(telecel_number("263735111111",prefix=True))Validate Econet Numbers:This can be used to check if the given mobile number is a valid Econet number.
Pass the optional parameterprefixyou want to make the prefix 263 mandatoryfromzim_validateimporteconet_numberprint(econet_number("263775111111",prefix=True))Validate Netone Numbers:This can be used to check if the given mobile number is a valid Netone number.
Pass the optional parameterprefixyou want to make the prefix 263 mandatoryfromzim_validateimportnetone_numberprint(netone_number("263715111111",prefix=True))Validate Any Number from Telecel,Econet,Netone among other MNOs:This can be used to check if the given mobile number is a valid Telecel,Econet or Netone number.
Pass the optional parameterprefixyou want to make the prefix 263 mandatoryfromzim_validateimportmobile_numberprint(mobile_number("263782123345",prefix=True))Validate Drivers License:All Zimbabwean drivers licenses are in the format111111ABPass the optional parameterspaceif you want a space between the first 6 numbers and the last two lettersfromzim_validateimportlicense_numberprint(license_number("111111AB",space=False))Validate Zim Vehicle Registration Number:All Zimbabwean number plates are in the formatABC1234Pass the optional parameterspaceif you want a space between the first three letters and the preceding letters numbersfromzim_validateimportnumber_plateprint(number_plate("ABF4495",space=False))Bonus :Password:Validate password to contain at at least one upper case,at least one lower case,at least one digit, at least one special character, minimum length 8fromzim_validateimportpasswordprint(password("Password@1"))LicenseThe project is licensed under the MIT license.Change Log0.0.1(04-February-2022)First Release of the Zim Validate Library that will assist developers validating Zim National Ids, Mobile numbers from all MNOs,Zim passports,Drivers licenses among other things0.0.2(05-February-2022)-Fixing the documentation0.0.1(05-February-2022)-Fixing the bug on the validation of mobile numbers