{ "info": { "author": "Zacchaeus Bolaji", "author_email": "djunehor@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "\nNigerian Phone Number Validator (Python)\n========================================\n\n\n.. image:: http://hits.dwyl.io/djunehor/validate_nigerian_phone.svg\n :target: http://hits.dwyl.io/djunehor/validate_nigerian_phone\n :alt: HitCount\n\n.. image:: https://circleci.com/gh/djunehor/validate_nigerian_phone.svg?style=svg\n :target: https://circleci.com/gh/djunehor/validate_nigerian_phone\n :alt: CircleCI\n\n\nIssues and pull requests welcome.\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nA Python module to validate and format a Nigerian phone number as well as deduce the network provider or area code.\n\nTable of Contents\n^^^^^^^^^^^^^^^^^\n\n\n* `Installation <#installation>`_\n* `Usage <#usage>`_\n* `Features <#features>`_\n* `Contribute <#contribute>`_\n* `Run Tests <#tests>`_\n\nInstallation\n------------\n\nYou will need `Python 3.x `_ and `pip `_.\n\nInstall using pip: ``pip install validate_nigerian_phone``\nInstall via repo:\n\n\n* Clone repo ``git clone https://github.com/djunehor/validate_nigerian_phone``\n* Place validate_nigerian_phone in your project root folder\n\nUsage\n-----\n\n.. code-block:: python\n\n from validate_nigerian_phone import NigerianPhone\n\n phone = NigerianPhone('+2348135087966')\n\n # Check if is valid\n phone.is_valid() #True\n\n # Get formatted\n phone.formatted() #08135087966\n\n # Get Network\n phone.get_network() #mtn\n\n # Check if is mtn\n phone.is_mtn() # True\n\n\n # Get network from phone number prefix e.g\n phone.get_network_by_prefix('0703') # mtn\n\nFeatures\n--------\n\nCurrently implemented\n^^^^^^^^^^^^^^^^^^^^^\n\n\n* is_valid\n* formatted\n* get_network\n* get_area_code\n* is_mtn\n* is_glo\n* is_airtel\n* is_9mobile\n* is_smile\n* is_smile\n* is_multilinks\n* is_visafone\n* is_ntel\n* is_starcomms\n* is_zoom\n* get_prefixes_by_network\n* get_network_by_prefix\n* get_area_code_by_name\n\nTests\n^^^^^\n\n\n* Run ``python tests.py``\n\nContribute\n----------\n\nCheck out the issues on GitHub and/or make a pull request to contribute!\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/djunehor/validate_nigerian_phone", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "validate-nigerian-phone", "package_url": "https://pypi.org/project/validate-nigerian-phone/", "platform": "", "project_url": "https://pypi.org/project/validate-nigerian-phone/", "project_urls": { "Homepage": "https://github.com/djunehor/validate_nigerian_phone" }, "release_url": "https://pypi.org/project/validate-nigerian-phone/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Python Class to validate a Nigerian phone number as well as attempt to deduce the network", "version": "1.0.0" }, "last_serial": 5951475, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "697be86321df5f70a2b32d90fd9a9cee", "sha256": "c770cc32799b1b0aad48725faba9086c3d534b4df1f99e6f19a75de1edcb0759" }, "downloads": -1, "filename": "validate_nigerian_phone-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "697be86321df5f70a2b32d90fd9a9cee", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5603, "upload_time": "2019-10-09T19:03:36", "url": "https://files.pythonhosted.org/packages/75/9f/35532aa9ea51379c56476182575a998adb502bf3e7face8d42874c8b615b/validate_nigerian_phone-1.0.0-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "697be86321df5f70a2b32d90fd9a9cee", "sha256": "c770cc32799b1b0aad48725faba9086c3d534b4df1f99e6f19a75de1edcb0759" }, "downloads": -1, "filename": "validate_nigerian_phone-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "697be86321df5f70a2b32d90fd9a9cee", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5603, "upload_time": "2019-10-09T19:03:36", "url": "https://files.pythonhosted.org/packages/75/9f/35532aa9ea51379c56476182575a998adb502bf3e7face8d42874c8b615b/validate_nigerian_phone-1.0.0-py3-none-any.whl" } ] }