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
py-area-code-nanp-1.0.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for py_area_code_nanp-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3452aa705a93aa3ba7c1508454d9defc179df0f909720fb8768d48cc96826f77 |
|
MD5 | 4e3f2487bb7bf0cdb176c511a0448363 |
|
BLAKE2b-256 | c841caa87f82acc77fb9a1e89e1e4dc2ebffe95af2e109f8a86e65b7119b071b |