Skip to main content

Simple library for offline lookup of the timezone for a location.

Project description

GeoTZ v0.0.1-alpha

Docs: https://geotz.readthedocs.io/

This is a small library for looking up the timezone for a given country code and postal code / postal code prefix.

Compared to alternatives like geopy or pgeocode, it’s intended to be easier to use, less feature rich, and more lightweight.

It uses offline data from www.geonames.org to find the approximate location and then uses another library to convert that into a timezone.

Please read the LICENSE file for important information about using this library and the data contained within.

Motivation

  1. Easy to use. No API key or external API service required.

  2. Fast offline lookup.

  3. No downloads required; the necessary data comes bundled with the package.

  4. No network requests.

  5. I tried to keep the extra dependencies to a minimum.

  6. Data is loaded from disk on demand, so as to not use unnecessary memory.

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

geotz-0.0.1a0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

geotz-0.0.1a0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file geotz-0.0.1a0.tar.gz.

File metadata

  • Download URL: geotz-0.0.1a0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for geotz-0.0.1a0.tar.gz
Algorithm Hash digest
SHA256 ef4c33b2c5224f4f8b9507499e647f9fd99decbf02cc7755ff812370accf2c9f
MD5 72bf66dea23da0c321ed74e89903a5fe
BLAKE2b-256 9624c21c43032e95b7c208810c5c14beffefef57ca395b196d17b97e1391d2fe

See more details on using hashes here.

File details

Details for the file geotz-0.0.1a0-py3-none-any.whl.

File metadata

  • Download URL: geotz-0.0.1a0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for geotz-0.0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 3eb0957e24a5b367b7dea7c4c8eb38fe90534da7e4926f98b7faf0e675803325
MD5 f1aa5e62b65f605a49e1e661501ef2ea
BLAKE2b-256 2c11025bfd70266991bf9702ac6c4c3daca71f0ff5b9a89f98dee67f95b50b75

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