Skip to main content

Information about phone area codes in the North American Numbering Plan

Project description

py-area-code-nanp

Information about phone area codes in the North American Numbering Plan.

This package provides a simple lookup table from area code to region, and from region to list of area codes. Area code data was most recently retrieved from Wikipedia in October 2020.

Example usage:

>>> import area_code_nanp
>>> area_code_nanp.get_area_codes('Texas')
[210, 214, 254, 281, 325, 346, 361, 409, 430, 432, 469, 512, 682, 713, 726, 737, 806, 817, 830, 832, 903, 915, 936, 940, 945, 956, 972, 979]
>>> area_code_nanp.get_region(817)
'Texas'
>>> 

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

py-area-code-nanp-1.0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

py_area_code_nanp-1.0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file py-area-code-nanp-1.0.1.tar.gz.

File metadata

  • Download URL: py-area-code-nanp-1.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for py-area-code-nanp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 22ea23493d78364bc8756c50cb41e12d7b0090f9a2c23abb37f1cf3a0dda9a95
MD5 d19b6176b243f08de3b7d6fe19b43a9f
BLAKE2b-256 f03fb3ffa9f844719758b505ba3bf8b73fbb72c566f073014e3efff42ba7c5dc

See more details on using hashes here.

File details

Details for the file py_area_code_nanp-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: py_area_code_nanp-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for py_area_code_nanp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9477ef4b60087b4990a20745cd4991d27263b8340657814ec6994a858ff6f771
MD5 69bfb164ac34fb3edf4ec35cbe354420
BLAKE2b-256 a7a6f46944a07472550815c32b27e24b0e6052fc8f98804a13e70b370fbfc3b0

See more details on using hashes here.

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