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

Uploaded Source

Built Distribution

ziptimezone-1.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ziptimezone-1.1.0.tar.gz
  • Upload date:
  • Size: 6.3 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.0.tar.gz
Algorithm Hash digest
SHA256 6aab082c7ec7682a335d9090bfec921ad36ddae8e6ca258bc4c17939e5413e42
MD5 ef849739b1de0697e2b9721aa054f53d
BLAKE2b-256 e46d579809248a50d14c181156921438d69020e1eda6ce8a1399842ec80082b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ziptimezone-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a0e7aece968d55423a7d8951fc9004625f16afb7b8d845a08b0ad9492b23a3f
MD5 c16b7fc01f269d79a3c6867b66b6fe65
BLAKE2b-256 681d490a7cae4d77d8f35f509a02c9792bf68cc41a079b169f6dc71f86b3e1a6

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