Release v1.0.1 (What’s new?).
If you are on www.pypi.org or www.github.com, this is not the complete document. Here is the Complete Document.
If you are looking for technical support, click the badge below to join this gitter chat room and ask question to the author.
uszipcode is the most powerful and easy to use programmable zipcode database in Python. It comes with a rich feature and easy-to-use zipcode search engine. And it is easy to customize the search behavior as you wish.
About the Data¶
I started from a academic research project for personal use. I don’t promise for data accuracy, please use with your own risk.
Where the data comes from?
The data is crawled from data.census.gov. There’s data tool allows you to explore 1300+ data points of a zipcode. You can play it yourself with this link https://data.census.gov/cedsci/table?q=94103.
Is this data set Up-to-Date?
Even the data.census.gov use different source for different data fields. For example, the latest general population / income / education data by zipcode are still from Census2010. But population over time data are based from IRS until FY 2018.
In general, static statistic data are from Census 2010. Demographic statistics over time has data utill 2020.
How many Zipcode in this Database
There are 42,724 zipcodes in this database. There are four different type zipcode:
STANDARD: most common zipcode
PO Box: for post office
UNIQUE: special location, usually a single building
MILITARY: military location
Number of zipcodes for each type:
+--------------+-------+------------+ | zipcode_type | count | percentage | +--------------+-------+------------+ | STANDARD | 30001 | 70.22 | | PO BOX | 9397 | 21.99 | | UNIQUE | 2539 | 5.94 | | MILITARY | 787 | 1.84 | +--------------+-------+------------+
I found a Great data source, how to contribute?
You can open an Issue and leave the URL of the data source, brief description about the dataset.
The Data point¶
Stats and Demographics
Real Estate and Housing
Employment, Income, Earnings, and Work
uszipcode is released on PyPI, so all you need is:
$ pip install uszipcode
To upgrade to latest version:
$ pip install --upgrade uszipcode