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

zpt.get_lat_long_for_zip('02138') # returns a tuple (42.377, -71.1256)
zpt.get_timezone_by_zip('02138') # returns 'Eastern' the timezone has been reduced to the more popular zones fo United States Regions
zpt.get_timezone_for_many_zips(['02138', '85260']) # returns a dictionary, {'02138': 'Eastern', '85260': 'Mountain'}

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

Uploaded Source

Built Distribution

ziptimezone-1.0.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ziptimezone-1.0.1.tar.gz
  • Upload date:
  • Size: 5.7 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.0.1.tar.gz
Algorithm Hash digest
SHA256 a281d7b30cb5f8ffe0f00d824e82c315191402d2f54f9418bc93cfd56e798c06
MD5 f06764454b59522fa15e3a90efd809cd
BLAKE2b-256 1848cd954db8f1eddc2e311acc537dc46e8da3911b788663fe8cc6f4cf167c76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ziptimezone-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9170051c8c37e2f4b874fff5a0c03383b32f2aa6461394c431346301d294f5b1
MD5 e1e55a85874288bc043e358786b38ff3
BLAKE2b-256 edbbf38811e5d528cd865e80294cd97247b06f5b39ac6f36320d984b004f5a9c

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