USA zipcode programmable database, includes 2020 census data and geometry information.
Project description
Welcome to uszipcode Documentation
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
Disclaimer
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
Address, Postal
zipcode
zipcode_type
major_city
post_office_city
common_city_list
county
state
area_code_list
Geography
lat
lng
timezone
radius_in_miles
land_area_in_sqmi
water_area_in_sqmi
bounds_west
bounds_east
bounds_north
bounds_south
border polygon
Stats and Demographics
population
population_density
population_by_year
population_by_age
population_by_gender
population_by_race
head_of_household_by_age
families_vs_singles
households_with_kids
children_by_age
Real Estate and Housing
housing_units
occupied_housing_units
median_home_value
median_household_income
housing_type
year_housing_was_built
housing_occupancy
vacancy_reason
owner_occupied_home_values
rental_properties_by_number_of_rooms
monthly_rent_including_utilities_studio_apt
monthly_rent_including_utilities_1_b
monthly_rent_including_utilities_2_b
monthly_rent_including_utilities_3plus_b
Employment, Income, Earnings, and Work
employment_status
average_household_income_over_time
household_income
annual_individual_earnings
sources_of_household_income____percent_of_households_receiving_income
sources_of_household_income____average_income_per_household_by_income_source
household_investment_income____percent_of_households_receiving_investment_income
household_investment_income____average_income_per_household_by_income_source
household_retirement_income____percent_of_households_receiving_retirement_incom
household_retirement_income____average_income_per_household_by_income_source
source_of_earnings
means_of_transportation_to_work_for_workers_16_and_over
travel_time_to_work_in_minutes
Education
educational_attainment_for_population_25_and_over
school_enrollment_age_3_to_17
Install
uszipcode is released on PyPI, so all you need is:
$ pip install uszipcode
To upgrade to latest version:
$ pip install --upgrade uszipcode
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
File details
Details for the file uszipcode-1.0.1.tar.gz
.
File metadata
- Download URL: uszipcode-1.0.1.tar.gz
- Upload date:
- Size: 37.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1bc2e0e47f4f4446447b6be205e76943f7978a4dcd651d4059c78002634cabb |
|
MD5 | f78216674f93d3eb1c55931874bcd4f8 |
|
BLAKE2b-256 | fd8c90a695e3c6ae85ccdc24fc9292a1ddc151231a95df957b8257604bebc4ee |
File details
Details for the file uszipcode-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: uszipcode-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 35.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19bd1ee160e96544fbeefb624540ce342ae139462cce5465ae1dff6819cdbedc |
|
MD5 | 171d20e8d5cbadfd63ed021cd20f9044 |
|
BLAKE2b-256 | b6baa3e285c39363fe94c961cf483bd37064d19c454611d73c31dedd54e3373e |