Skip to main content

A package to convert ZIP codes to time zones and get geographic coordinates.

Project description

documentation status https://img.shields.io/pypi/wheel/ziptimezone.svg total PyPI downloads latest version on PyPI https://img.shields.io/badge/code%20style-black-000000.svg

This is a python package with US Zip Code convenience functions such as those listed in the examples below. It uses the geonames data, coupled with the timezonefinder package. It uses a mapping of the popular timezone regions in US, and returns the outputs accordingly.

Quick Guide:

pip install ziptimezone
import ziptimezone as zpt

# returns a tuple (42.377, -71.1256)
zpt.get_lat_long_for_zip('02138')

# returns 'Eastern' the timezone has been reduced to the more popular zones
# for United States Regions
zpt.get_timezone_by_zip('02138')

# returns a dictionary, {'02138': 'Eastern', '85260': 'Mountain'}
zpt.get_timezone_for_many_zips(['02138', '85260'])

For more refer to the Documentation.

Also check:

PyPI

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

ziptimezone-1.1.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

ziptimezone-1.1.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file ziptimezone-1.1.1.tar.gz.

File metadata

  • Download URL: ziptimezone-1.1.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.9 Windows/10

File hashes

Hashes for ziptimezone-1.1.1.tar.gz
Algorithm Hash digest
SHA256 a5ba92531a22d12f392aa0ed17e7b9ab0f62a3e6e5dba9744693364319c21ae6
MD5 f7d4d608d50b66336e70d65b04c838b3
BLAKE2b-256 7ef51018aecaed7529122475aca3b5e64021471a756307ced8e173e1346ba9eb

See more details on using hashes here.

File details

Details for the file ziptimezone-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: ziptimezone-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.9 Windows/10

File hashes

Hashes for ziptimezone-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 641306d39b0aa48eb30a124863748bb34b9520235eda1de2683adc36e41fafe4
MD5 fdd02180dba1e7d694c2c4f7a205c018
BLAKE2b-256 e57fe4365dac7ba384c04c56da69feff515e6f8a5d6d3a458a685ed5fcca0eb7

See more details on using hashes here.

Supported by

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