Skip to main content

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


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.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

zipcode-1.1.0-cp27-none-macosx_10_10_intel.whl (2.2 kB view details)

Uploaded CPython 2.7macOS 10.10+ Intel (x86-64, i386)

File details

Details for the file zipcode-1.1.0.tar.gz.

File metadata

  • Download URL: zipcode-1.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zipcode-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e1e3d71769e9c0c588b74119235e5e99da44063c5bbb15c41b3ab3c488d5d90f
MD5 0257b1deeb80e7d9871e5fda6be0f44a
BLAKE2b-256 7f8ac79a398203ea7590b3c82977f5e3fb7d7285ef54f5c1d18dc7973c90fecf

See more details on using hashes here.

File details

Details for the file zipcode-1.1.0-cp27-none-macosx_10_10_intel.whl.

File metadata

File hashes

Hashes for zipcode-1.1.0-cp27-none-macosx_10_10_intel.whl
Algorithm Hash digest
SHA256 8023b4bc70c4d3833c09aa0444fb5c2c43681dea58f73d36b10fd30f22291fe9
MD5 7f5abb7f7963a928afb17073effc172e
BLAKE2b-256 949e490628227890899c0d49ee1cba92aec9769417475de037a151ea978e2b03

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page