Skip to main content

A python library for getting details of a Nigerian mobile number.

Project description

Python Library to determine details of a Nigerian mobile number

Getting started

  • Install from pip pip install verify-nigerian-number

Usage

  • Get details of a number:

    from models import NigerianNumber
    from enums import NigerianTelco
    
    number = NigerianNumber(<the number here>)
    number.get_telco()  # Returns the name of telco
    
    # There are bool methods that determines if the number is for a specific telco
    # You could check this way (using the telco name after is_*):
    number.is_glo()  # Returns True if it's a glo number
    # Or do this:
    number.is_for_telco(NigerianTelco.GLO)  # Returns True if it's a glo number
    
    # Telcos covered (as contained in enums.NigerianTelco):
    AIRTEL
    GLO
    MTN
    MULTI_LINKS
    NINE_MOBILE
    NTEL
    SMILE
    STARCOMMS
    ZOOMMOBILE
  • Enjoy!

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

verify-nigerian-number-1.0.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

verify_nigerian_number-1.0.1-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

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