Skip to main content

PyPI - Version PyPI Downloads PyPI - Python Version Conda - Version Pixi License: MIT

GitHub Actions Workflow Status: Linux GitHub Actions Workflow Status: Windows GitHub Actions Workflow Status: macOS GitHub Actions Workflow Status: Lint Test Coverage GitHub Actions Workflow Status: Test Python Prerelease

giso

A simple command line tool to help with geocoding country/region ISO 3166-2 codes.

Includes a public domain reference dataset from Natural Earth Data which is stored in GeoParquet format and is accessed with SedonaDB.

Installation

python -m pip install giso

Basic Usage

giso takes one of two inputs:

  • A longitude/latitude coordinate pair. (Decimal degrees in WGS 1984 separated by a comma or a space.) Returns the corresponding ISO 3166-2 code.
giso -122.2483823, 37.8245529
# US-CA
  • A valid ISO 3166-2 code. Returns the corresponding geometry as Well-Known Text (WKT).
giso US-CA
# MULTIPOLYGON (((-114.724285 32.712836, -114.764541 32.709839, [...]

Returns None if there are no hits.

giso can also be used as a Python package:

>>> import giso
>>> giso.reverse_geocode(103.8455041, 1.2936855)
'SG-01'
>>> giso.geocode("SG-01")
< POLYGON((103.898 1.305, 103.888 1.301, 103.853 1.277, 103.847 1.272, 103.8 ... >

References

Metadata

Release files for giso 1.0.2

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

Source distribution (sdist)

Source distribution for giso 1.0.2
File Size Uploaded Provenance Actions
giso-1.0.2.tar.gz 11.2 MB With provenance Details for giso-1.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 22.3 MB

Release files / giso-1.0.2.tar.gz

Download URL giso-1.0.2.tar.gz
Size 11.2 MB
Tags Source
SHA-256 checksum
How to use checksums
26af4dab78423f548b0e451dc2e6213768632a2126cc62666920ca6fdb47400e
BLAKE2b-256 checksum
How to use checksums
175c2234f4204d5491ceb3c0da2c7e5652d289b9959921c6fc91fb666548c870
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / giso-1.0.2-py3-none-any.whl

Download URL giso-1.0.2-py3-none-any.whl
Size 11.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
83057c2fa8b5a98eccc14b4dfb01f3476497d7fdba7d0ab2ab1977ba510e7f5c
BLAKE2b-256 checksum
How to use checksums
1cf2c38c978dca9991d4fd96c328396dccb266d0c312619329f45fe31a07379f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Security for giso 1.0.2

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for giso-1.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

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