Skip to main content

Zimbabwean ID Number Validator

Project description

Zimbabwean ID Number Validator

The ID numbers issued in Zimbabwe consist of either 11 or 12 alphanumeric characters. Each ID contains one alphabetic letter, while the remaining characters are numeric digits. Various systems may capture ID numbers in different formats, with the most common formats including:

  • 082047823Q29
  • 08-2047823-Q-29
  • 08-2047823Q29
ID Description
08 District Code
2047823 6 or 7 digit sequence
Q Alphabetic letter
29 District Code

This package uses regular expressions to validate the input against the established patterns. It also includes a lookup of District Codes to ensure the correctness of the ID number. The three possible responses are as follows:

{
    "is_id_number_valid": False,
    "description": "id number must be in one of the formats: (082047823Q29), (08-2047823Q29), or (08-2047823-Q-29)"
},

{
    "is_id_number_valid": False,
    "description": "id number is invalid"
},

{
    "is_id_number_valid": True,
    "description": "id number is valid"
}

District Codes used in the validation procedures were acquired from the following source.

Usage

Install the package using the following command:

pip install zimbabwean-id-number-validator

Usage In Python

from zimbabwean_id_number_validator import validator
validation_results = validator.validate_id_number("082047823Q21")

Keywords

Zimbabwe ID Number Validator

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zimbabwean_id_number_validator-1.0.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file zimbabwean_id_number_validator-1.0.2.tar.gz.

File metadata

File hashes

Hashes for zimbabwean_id_number_validator-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8e76f207907039fd8d62428bf48c33cd94a7324b6658bc806de470b6ea3fd067
MD5 57f164665790eeae200c100db78019dc
BLAKE2b-256 15a68fa35aff9206aeab64327746d55d0908ebffa1252b4bbadb8947910d5c8a

See more details on using hashes here.

File details

Details for the file zimbabwean_id_number_validator-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for zimbabwean_id_number_validator-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e936b6d168cedfd61ac26efd9625659465cefe46997eb2f27951e5d283c5495b
MD5 f41afacd82c2eb05d888e3a333f75356
BLAKE2b-256 7bd16db4615e9a14ffb36f9a3cc4a0c9b3982da0bfd644688fc0b370b64a494d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page