Skip to main content

Phone number generator for libphonenumber

Project description

Phone Gen

Build Status codecov

Phone number generator for Google's libphonenumber library

Install

pip install phone-gen

Example

from phone_gen import PhoneNumber

phone_number = PhoneNumber('GB')

# Get full phone number
number = phone_number.get_number()
print(number)  # +442908124840

# Get country code
country_code = phone_number.get_code()
print(country_code)  # 44

# Phone number without country code
number = phone_number.get_number(full=False)
print(number)  # 183782623

Contributing

Contributions are very welcome.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

phone_gen-1.0.0b2-py2.py3-none-any.whl (19.4 kB view hashes)

Uploaded Python 2 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