A simple python package for dealing with zip codes in python.
Project description
- Simple package for dealing with zip codes in python.
>>> import zipcode >>> >>> myzip = zipcode.isequal('44102') >>> myzip.state #=> 'OH' >>> myzip.city #=> 'Cleveland' >>> >>> myzip.to_dict() #=> {'zip_type': u'STANDARD', 'city': u'CLEVELAND', 'population': u'27699', 'zip': u'44102', 'yaxis': u'-0.74', 'location_text': u'Cleveland, OH', 'country': u'NA', 'notes': u'', 'lon': -81.67, 'tax_returns_filed': u'17409', 'state': u'OH', 'z axis': u'0.66', 'location': u'NA-US-OH-CLEVELAND', 'xaxis': u'0.1', 'lat': 41.47, 'wages': u'408225500', 'decommisioned': u'FALSE', 'location_type': u'PRIMARY', 'world_region': u'NA'} >>> >>> #all keys in the dictionary can be fetched with dot notation. >>> >>> zipcode.islike('00') #=> list of Zip objects that begin with given prefix.
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
zipcode-1.4.0.tar.gz
(1.6 MB
view hashes)
Built Distribution
Close
Hashes for zipcode-1.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5a3bb849c9bfa3eee9d0a9023472b4bdfbba0ef77025fb9fdc2a68e2012e37d |
|
MD5 | f3ec0fe376613335eb3126a472891a95 |
|
BLAKE2b-256 | 828b4514e700315ef5fee9c8cd4e20a2616814e972ed9fba0cef435eb3a2c298 |