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
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 Distribution
Built Distribution
Close
Hashes for py_area_code_nanp-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9477ef4b60087b4990a20745cd4991d27263b8340657814ec6994a858ff6f771 |
|
MD5 | 69bfb164ac34fb3edf4ec35cbe354420 |
|
BLAKE2b-256 | a7a6f46944a07472550815c32b27e24b0e6052fc8f98804a13e70b370fbfc3b0 |