Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Brazil phone number formatting utils.

Project Description

Phone Number Brazil provides a easy of formatting brazilian phone numbers. Typical usage often looks like this:

#!/usr/bin/env python

from phone_numbers_br import clean_phone_number

cleaned = clean_phone_number(number='33167700', ddd_default='65')
# or
cleaned = clean_phone_number(number='06533167700', ddd_default='65')
print "Cleaned phone number:", cleaned['number']
print "Phone number type:", cleaned['type']

Testing

I’ve used Behaviour Driven Development with Lettuce <http://lettuce.it/> for ease of using testing. After installing, you can simply run lettuce to run the tests.

Release History

Release History

This version
History Node

0.1.0

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting