geoworld
A thin Python client for World GeoJSON: open, versioned administrative boundaries (countries, first-level divisions, municipalities) as GeoJSON.
The library ships no data. It reads data/index.json from a pinned data
release, downloads the files you ask for, caches them on disk and verifies
their sha256 against the index. Zero dependencies.
pip install geoworld
pip install "geoworld[geopandas]" # adds to_geopandas()
from geoworld import GeoWorld
world = GeoWorld("1.3.0") # a data release; the library has its own version
world.countries() # every territory: levels, licence, feature counts
world.country("CHL")["terms"] # {"adm1": {"en": "Region", "es": "Región"}, …}
world.levels("CHL") # ["ADM0", "ADM1", "ADM2", "ADM3"]
world.bbox("CHL", "ADM1") # [west, south, east, north] — no download
regions = world.get("CHL", "ADM1") # a GeoJSON FeatureCollection (dict)
regions["features"][0]["id"] # "CHL:ADM1:CL-CO"
world.get_part("USA", "ADM2", "US-CA") # one part of a split level
for code, counties in world.iter_parts("BRA", "ADM2"):
... # levels too big for one file come as parts
world.preview("CHL", "ADM3") # simplified (≤ 2 MB) for maps
world.find("CHL:ADM3:01402") # one feature by id
world.parent("CHL:ADM3:01402") # its province
world.children("CHL:ADM1:CL-TA") # the provinces of Tarapacá
world.search("santiago", "CHL", "ADM3") # accent- and case-insensitive
world.url("CHL", "ADM1") # the file's URL, if you would rather fetch it yourself
world.to_geopandas("CHL", "ADM1") # with the geopandas extra
Every feature has a stable id ({ISO3}:{LEVEL}:{key}), and every
sub-national feature a parentID, so joins and hierarchies work without
string matching on names.
Where the files come from
By default https://raw.githubusercontent.com/andresgmg/World-GeoJSON/v{version}/.
Pass base_url to read from any static host with the same layout, including a
local checkout or an unzipped release asset:
GeoWorld("1.3.0", base_url="file:///opt/world-geojson")
Downloads are cached under the platform cache directory
(~/.cache/geoworld/<version>/… on Linux, ~/Library/Caches on macOS,
%LOCALAPPDATA% on Windows; override with cache_dir= or $GEOWORLD_CACHE).
Cached files are re-hashed on read; a mismatch is refetched.
Versions
The library's version and the data's version are independent. Each release of
the library declares the data schema it understands
(geoworld.SUPPORTED_SCHEMA_VERSION) and a default data release
(geoworld.DEFAULT_DATA_VERSION); a newer index raises UnsupportedSchema.
Documentation
- Library guide
- Data reference — properties, levels, the index
- Licensing — the code is MIT; each dataset carries its own permissive licence, listed in the index
The same API exists for JavaScript and TypeScript as
geoworld on npm.
Metadata
Release files for geoworld 0.1.0
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 |
|---|---|---|---|---|
| geoworld-0.1.0.tar.gz | 17.3 kB | With provenance | Details for geoworld-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| geoworld-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for geoworld-0.1.0-py3-none-any.whl |
Total release size: 32.1 kB
Release files / geoworld-0.1.0.tar.gz
| Download URL | geoworld-0.1.0.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
310797a14e7e41b5592bf4b2edd027f106b1bcfd41f0fab97cd9e061a6e5dea2
|
|
BLAKE2b-256 checksum How to use checksums |
02f73849b0fbfced3f0774168f85ac6dda40128bf0cc1efe735789221cbf5689
|
| 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 Dec 2, 2026.
Transparency logRelease files / geoworld-0.1.0-py3-none-any.whl
| Download URL | geoworld-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9cb7cde9cf1fd6bbdcbe7a876cd3efc38d6bcb8dcca0ee204fd90135f5a6416d
|
|
BLAKE2b-256 checksum How to use checksums |
87aca8a5fba91a8636b2a8ac0bbab42b06c8ae1435ce2b709effa672fb6ed79a
|
| 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 Dec 2, 2026.
Transparency logSecurity for geoworld 0.1.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for geoworld-0.1.0.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 Dec 2, 2026.
Transparency logA 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.