microservice to check phone numbers using libphonenumber and the python port python-phonenumbers
Switch branches/tags
Nothing to show
Clone or download
jms Merge pull request #2 from jms/dist
travis build status
Latest commit 2709581 May 31, 2016
Permalink
Failed to load latest commit information.
check_phonenumber remove import May 31, 2016
tests deps for tox requirements-dev.txt May 31, 2016
.gitignore tox and pytest setup May 31, 2016
.travis.yml testing travis and bitbucket pipelines May 31, 2016
LICENSE
MANIFEST tox and pytest setup May 31, 2016
README.md travis build status May 31, 2016
bitbucket-pipelines.yml
main.py tox and pytest setup May 31, 2016
requirements-dev.txt
requirements.txt tox and pytest setup May 31, 2016
setup.cfg tox and pytest setup May 31, 2016
setup.py
test_data.json documentation May 19, 2016
tox.ini testing travis and bitbucket pipelines May 31, 2016
wsgi.py tox and pytest setup May 31, 2016

README.md

check-phone-number-service Build Status

microservice to check phone numbers using libphonenumber and the python port python-phonenumbers

Test data

{
    "phone_number": "+40721234567",
    "country_code": "RO"
}

Run the service:

$ python main.py

Testing using httpie:

$ http POST localhost:8080/check-phone < test_data.json
HTTP/1.0 200 OK
Content-Length: 137
Content-Type: application/json
Date: Thu, 19 May 2016 23:53:32 GMT
Server: WSGIServer/0.1 Python/2.7.10

{
    "carrier_data": "Vodafone", 
    "number_data": "Country Code: 40 National Number: 721234567", 
    "possible_number": true, 
    "valid_number": true
}