This release is a pre-release and may not be stable for production use.
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
Metadata
Release files for geotz 0.0.2b0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| geotz-0.0.2b0.tar.gz | 16.7 MB | Without provenance | Details for geotz-0.0.2b0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| geotz-0.0.2b0-py3-none-any.whl | Python 3 | none | any | Details for geotz-0.0.2b0-py3-none-any.whl |
Total release size: 33.8 MB
Release files / geotz-0.0.2b0.tar.gz
| Download URL | geotz-0.0.2b0.tar.gz |
|---|---|
| Size | 16.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b77a395c69b5e6c7187b12dcf31d9e2ade662aa1e6db98bb101405ce5835de04
|
|
BLAKE2b-256 checksum How to use checksums |
67758c6f6074fb29a52166a0880df7a529ba3a18b43a90d5c33f3ddee606bf19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / geotz-0.0.2b0-py3-none-any.whl
| Download URL | geotz-0.0.2b0-py3-none-any.whl |
|---|---|
| Size | 17.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14e191df826144812b7a5fdf7cc0f67f03458b3ed01787ee375e090f816e3693
|
|
BLAKE2b-256 checksum How to use checksums |
5714a3f76baf0c610484ed843e07d7e72b201ea7e3c72dc262fb1479e7e34a82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Security for geotz 0.0.2b0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.