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.5.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

zipcode-1.5.0-py2.py3-none-any.whl (1.6 MB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: zipcode-1.5.0.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zipcode-1.5.0.tar.gz
Algorithm Hash digest
SHA256 0f8c97630c7d4917d709668e492287d5e01421ddcb9a95126e5f47d39d77c8a3
MD5 677dbc4d2ce3be7a46b6488b9e7b0769
BLAKE2b-256 48e4cfef174d8dac0ff9110c7ba51937476f494215304f61659f7f86d11ac03a

See more details on using hashes here.

File details

Details for the file zipcode-1.5.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for zipcode-1.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d05cd47c6f1605f5e5fce05e3a7fa98cbc80195a6830209e110648c6d5092a60
MD5 7762cafabe7fe96c8e80827bb243b930
BLAKE2b-256 b4254502ca2d935b797e5cb1d990d43a436c52252ee89268f2618fc8f649eb54

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