Skip to main content

A validation library for Zambia

Project description

Zam-Authentic

Zam-Authentic is a Python package that provides validation functions for applications created in Zambia. It includes validation for phone numbers, National Registration Card (NRC) numbers, and location data.

GitHub Link

https://github.com/Munalula-Sikazwe/ZamAuthentic

Installation

You can install Zam-Authentic using pip:

Copy code

pip install zam-authentic

Usage Phone Number Validation To validate a phone number, you can use the phonenumber_is_valid function:

python Copy code

from zam_authentic.phone_number_validation import phonenumber_is_valid

is_valid = phonenumber_is_valid('+260978123456') # Returns True

NRC Validation

To validate an NRC number, you can use the validate_nrc function:

python Copy code

from zam_authentic.nrc_validation.validate import validate_nrc

is_valid = validate_nrc('123456/78/9', delimiter='/')  # Returns True

Location Data Validation To validate location data, you can use the validate_location function:

python Copy code

License This project is licensed under the MIT License - see the LICENSE file for details. Get Districts To get a list of districts in Zambia, you can use the get_districts function:

python Copy code

from zam_authentic.locations.get_locations import get_districts

districts = get_districts('province-name')

Returns a list of district names

Get Provinces

To get a list of provinces in Zambia, you can use the get_provinces function:

python Copy code

from zam_authentic.locations.get_locations import get_provinces

provinces = get_provinces()

Returns a list of province names

Get Constituencies

To get a list of constituencies in Zambia, you can use the get_constituencies function:

python Copy code

from zam_authentic.locations.get_locations import get_constituencies

constituencies = get_constituencies("district-name")

print(constituencies) # Returns a list of constituency names

Documentation

For full documentation follow the link -> https://zamauthentic.readthedocs.io/en/latest/

Disclaimer

This package is intended for educational purposes only and is not intended to be used in production systems without proper review and testing. The authors of this package are not responsible for any damages that may occur as a result of using this package. Use at your own risk.

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

zam_authentic-0.0.13.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

zam_authentic-0.0.13-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file zam_authentic-0.0.13.tar.gz.

File metadata

  • Download URL: zam_authentic-0.0.13.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for zam_authentic-0.0.13.tar.gz
Algorithm Hash digest
SHA256 514abecee719f5475dca9a1e00fd5684b348b4a628ccf43f5c8afe84166de16e
MD5 5b4285132134b6a8e3d3fbc5d1e5c88a
BLAKE2b-256 4f00fcbde5608ac1670c730783247aca42aab4b4e5e9dfdeeadbc40d0dc64615

See more details on using hashes here.

File details

Details for the file zam_authentic-0.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for zam_authentic-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 2983498fa122cac72bfd787a4b43ac60eee45db9c0d100c3fee8838c0862e538
MD5 2749bc17f44896baec6a8a94cafc0559
BLAKE2b-256 fb8a6555ed072f9ddb99e9dc83b768e6b0cc8450c88d08b74c3ca17211fd8341

See more details on using hashes here.

Supported by

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