Geotz 0.0.2b0 | GitLocker.com Product

geotz 0.0.2b0

Last updated:

0 purchases

geotz 0.0.2b0 Image
geotz 0.0.2b0 Images
Add to Cart

Description:

geotz 0.0.2b0

GeoTZ v0.0.2b0
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. The main logic under geotz is very
small indeed, so you can easily read it for yourself.
It’s well tested - see the coverage badge above and take a look at the tests
for all the cases that are covered.
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

Easy to use. No API key or external API service required.
Fast offline lookup.
No downloads required; the necessary data comes bundled with the package.
No network requests.
I tried to keep the extra dependencies to a minimum.
Data is loaded from disk on demand, so as to not use unnecessary memory.



Development
To run the build, there’s the GitHub actions workflows as well as the option to run locally.
For running the build locally, use pip install tox and the run tox in the repository base
directory (or tox -p to run the build in parallel).

Ensure you have tox installed e.g. by running pip install tox
Extract data tox -e extract_data
Run the build: tox

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.