• Stars
    star
    223
  • Rank 177,447 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 9 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

USA zipcode programmable database, includes up-to-date census and geometry information.
Documentation Status https://img.shields.io/pypi/dm/uszipcode https://img.shields.io/badge/STAR_Me_on_GitHub!--None.svg?style=social

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

More Repositories

1

pygitrepo-project

A simplified, minimal but powerful Python Git Project development workflow CLI tools.
Python
33
star
2

potplayer-project

A tools to manipulate potplayer playlist
Python
26
star
3

Python-with-GitHub-PyPI-and-Readthedoc-Guide

ๆ•™ไฝ ๅฆ‚ไฝ•ๅฐ†ไฝ ็š„Python้กน็›ฎ็”จGithubไฟ็ฎก, ๅนถๅœจPypiไธŠๅ‘ๅธƒ, ๅ’Œ้ƒจ็ฝฒไฝ ็š„ๅœจ็บฟๆ–‡ๆกฃ็ฝ‘็ซ™
Python
26
star
4

elementary_math-project

Ease your python library development, use pygitrepo (https://github.com/MacHu-GWU/pygitrepo-project) to generate your code skeleton. This is just a dummy python library for demonstration.
Python
25
star
5

afwf_fts_anything-project

Alfred Workflow, Full Text Search Anything
Python
23
star
6

Python-OpenSource-Project-Developer-Guide

ๆ•™ไฝ ๅฆ‚ไฝ•ๅšไธ€ไธช้ซ˜ๅคงไธŠ็š„Pythonic Developerๅคšๅฟซๅฅฝ็œๅœฐๅšPythonๅผ€ๆบ้กน็›ฎใ€‚ๅŒ…ๅซGitHubไปฃ็ ๆ‰˜็ฎก, ๅœจPyPIๅ‘ๅธƒไฝ ็š„ๆ‰ฉๅฑ•ๅŒ…, ้ƒจ็ฝฒๆ–‡ๆกฃ็ฝ‘็ซ™, ไฝฟ็”จTravis-CI่‡ชๅŠจๅŒ–ๆต‹่ฏ•, ไธ€ๆก้พ™ๅ…จๅฅ—ๆœๅŠกใ€‚ๆˆ‘ๅšไบ†ไธ€ไธชๅทฅๅ…ท, ๅฏไปฅ่ฎฉไฝ ไป…ไป…ๅกซๅ†™้กน็›ฎๅ็งฐๅ’ŒPython็‰ˆๆœฌ, ๅฐฑ่‡ชๅŠจ็”Ÿๆˆไฝ ๆ‰€้œ€่ฆ็š„ไธ€ๅˆ‡: https://github.com/MacHu-GWU/pygitrepo-project
Python
22
star
7

pal95_doc-project

ไป™ๅ‰‘ๅฅ‡ไพ ไผ 95็‰ˆ่ฏฆ็ป†่ต„ๆ–™ๅŠๆ”ป็•ฅ
Python
16
star
8

mm6doc-project

Might and Magic VI Document
HTML
16
star
9

macro-project

Automate keyboard and mouse scripting.
Python
12
star
10

Denial-Reason-Prediction-Model

A machine learning model to predict the Denial Reason for insurance claim
Python
10
star
11

pysecret-project

Load your secret information nicely and securely.
Python
10
star
12

troposphere_mate-project

A Productive Pythonic Cloudformation Orchestration Tool, 100% compatible with Troposphere.
Python
9
star
13

pynamodb_mate-project

Provide additional features for PynamoDB
Python
9
star
14

cottonformation-project

Modern CloudFormation Python tool with Type hint, Parameter hint, Doc hint + Auto Validation in Real Objective Programming Style
Python
8
star
15

mongoengine_mate-project

A library extend power of mongoengine.
Python
8
star
16

attrs_mate-project

A plugin extends power of attrs library. Empower your class writing.
Python
8
star
17

pyknackhq-project

A minimal knackhq API Python wrapper.
Python
6
star
18

pathlib_mate-project

An extended and more powerful pathlib in Python.
Python
6
star
19

dataIO-project

data I/O tool set
Python
5
star
20

attrsmallow-project

Integration of attrs and marshmallow.
Python
5
star
21

compress-project

All in one data compression library.
Python
5
star
22

wotlkdoc-project

World of Warcraf - Wrath of the Lich King - Private Server Documentation
Python
5
star
23

ctmatching-project

Treatment group, control group matching algorithm high level python implementation.
Python
4
star
24

afwf_s3-project

โญ AWS S3 Alfred Workflow. Navigate, fuzzy search your S3 bucket, folder, object from anywhere.
Python
4
star
25

afwf_aws_tools-project

AWS Swiss Knife tools for developer
Python
4
star
26

hotkeynet-project

Write hotkeynet script in Python.
Python
4
star
27

inspect_mate-project

Extend the standard inspect library.
Python
4
star
28

laptop

Quickly Setup Your Developer Laptop
Shell
3
star
29

loggerFactory-project

Provide several commonly used logger.
Python
3
star
30

Dev-Exp-Share

Share some miscellaneous about development experience.
Shell
3
star
31

rolex-project

An elegant datetime library
Python
3
star
32

sqlite4dummy-project

A high performance and easy to use sqlite API for Data Scientist.
Python
3
star
33

cookiecutter-pygitrepo

An Python GitHub Project Template, Virtualenv, Unittest, Coverage Test, Multi Python Version Text, Continous Integration, Document Site Builder Deploy, AWS Lambda Function Integration are out of the box
Python
3
star
34

apipool-project

Multiple API Key Manager
Python
2
star
35

python-arsenal

List of stable, actively maintained, rich featured, fully tested, documented Python Package.
Python
2
star
36

boto_session_manager-project

Python AWS SDK boto3 library enhancement
Python
2
star
37

superjson-project

Extendable json encode/decode library.
Python
2
star
38

constant2-project

provide extensive way of managing your constant variable.
Python
2
star
39

learn_sqlalchemy-project

Sanhe's personal sqlalchemy guide and note
Python
2
star
40

pandas_mate-project

``pandas_mate`` provides lots of utility method for pandas
Python
2
star
41

alfred-python-boto3-ref

Allow quickly jump to python boto3 documents using Alfred
Python
2
star
42

single_file_module-project

A collection of excellent single file module
Python
2
star
43

awscli_mate-project

AWS CLI helper
Python
2
star
44

Data-Science-in-Python

Learn to do Data analysis, Machine Learning, Statistical Project using open source OOD programming language in Python
Jupyter Notebook
2
star
45

sqlalchemy_mate-project

A library extend pymongo module, makes CRUD easier.
Python
2
star
46

learn_datasette-project

Notes for learning datasettle
Python
1
star
47

torchlight2_doc-project

Torchlight2 Game Documentation
Shell
1
star
48

geomate-project

This library is deprecated, another library apipool is created to replace geomate: https://github.com/MacHu-GWU/apipool-project. Batch geocoding tools that auto-handle API KEY, result storage and todo schedule.
Python
1
star
49

learn_polars-project

Learn Polars, the blazingly fast DataFrame library.
Python
1
star
50

crawl_trulia-project

Trulia Crawler Tool Set
HTML
1
star
51

cryptology-in-python

A cryptology quick guide and python cryptology extension usage examples
Python
1
star
52

ssan-project

ssan is a simple boto3 S3 wrapper that provide very basic put, get, delete conventional method
Python
1
star
53

windtalker-project

Super easy-to-use encryption and decryption tool
Python
1
star
54

WorldCup-Betting-in-Python

Use social media data to predict the poll in betting. Hence, we can make use of this information to win money!
Python
1
star
55

aws_dla_lbd_api_gateway_load_test_examples

Python
1
star
56

Learn-Bottle

Python
1
star
57

numpymate-project

numpymate is a library to provide minor improvement of numpy.
Python
1
star
58

crawlib-project

tool set for crawler project.
Python
1
star
59

Torchlight2-Cheatsheet

HTML
1
star
60

GeoPopulation

USA population calculation system
Python
1
star
61

afwf_genpass-project

Alfred Workflow - Generate secure password
Python
1
star
62

learn_pyminifier-project

Learn how to use pyminifier to remove comments and docstrings.
Python
1
star
63

cookiecutter-aws-lambda-python-project

A git repo template for AWS Lambda Python project
Python
1
star
64

aws_dla_opensearch_examples

Learn the basic usage of AWS Opensearch in 4 hours
Python
1
star
65

mongomock_mate-project

Add additional features for mongomock.
Python
1
star
66

diablo2_doc-project

diablo2 document
Python
1
star
67

dynamodb_modeler-project

A Proof-of-Concept Playground to do DynamoDB data modeling
Jupyter Notebook
1
star
68

learn_mongoengine-project

Learn MongoEngine, the MongoDB ORM.
Python
1
star
69

whoosh_examples-project

Python
1
star
70

constant-project

Use IDLE autocomplete feature to manage large amount of constants.
Python
1
star
71

acore_soap_app-project

Azerothcore World of Warcraft Soap Remote Access Python Library
Python
1
star
72

Trulia-House-Detail-Query-Webapp

A tool can batch process address and zipcode and get house detail information.
HTML
1
star
73

afwf_example-project

Alfred Workflow example project based on afwf python library
Python
1
star
74

Learn-MongoDB

Learn MongoDB from zero
Python
1
star
75

Tech-Blog

My Chinese Tech Blog
1
star
76

iterproxy-project

โฉ Give any iterable object capability to use .one(), .one_or_none(), .many(k), .skip(k), .all() API
Python
1
star
77

Ashare-climate-zone

crawl the ashare data and plot a map view to see if this data helpful for our new app
Python
1
star
78

configirl-project

Single Script, Pure Python, No Dependencies, Drop in ready, Centralized Config Management Tool for DevOps
Python
1
star
79

afwf-project

A powerful framework enables fast and elegant development of Alfred Workflows in Python.
Python
1
star
80

Tala

A fast, light, portable sqlite database backed search engine
Python
1
star