Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Github Actions Status https://codecov.io/github/dmayo3/geosub/graph/badge.svg?token=A0WO17S0KD Documentation Status PyPI Package Supported versions Code style: black Type checked by mypy License

geosub v0.1.2a0

Docs: https://geosub.readthedocs.io/

Lookup ISO 3166-2 geographic subdivisions from postal and country codes, using GeoNames and pycountry.

Adapted from a very similar library for looking up timezones: https://github.com/dmayo3/geotz

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. Only pycountry is required.

  6. 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).

  1. Ensure you have tox installed e.g. by running pip install tox

  2. Extract data tox -e extract_data

  3. Run the build: tox

Metadata

Release files for geosub 0.1.2a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geosub 0.1.2a0
File Size Uploaded Provenance Actions
geosub-0.1.2a0.tar.gz 16.7 MB Without provenance Details for geosub-0.1.2a0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for geosub 0.1.2a0
File Interpreter ABI Platform Actions
geosub-0.1.2a0-py3-none-any.whl Python 3 none any Details for geosub-0.1.2a0-py3-none-any.whl

Total release size: 33.8 MB

Release files / geosub-0.1.2a0.tar.gz

Download URL geosub-0.1.2a0.tar.gz
Size 16.7 MB
Tags Source
SHA-256 checksum
How to use checksums
40aeb1da7ac24917dfc38272353c231e4b7d1deed865288aed7ed43ac9b04350
BLAKE2b-256 checksum
How to use checksums
9a3bb12ef05d050586541a261cb5fab5a4cb43d8cb97208f5cd415008ed0d4da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / geosub-0.1.2a0-py3-none-any.whl

Download URL geosub-0.1.2a0-py3-none-any.whl
Size 17.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
bc4aa9c8238df07423330dc91d123c45029dcdc36212118d56b85aa4594fc1f1
BLAKE2b-256 checksum
How to use checksums
2d96f91e8d59b41ddf2d561252934f7ad2df00acec0f1b37b24851017089b40f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.5

Security for geosub 0.1.2a0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page