A simple loader for Natural Earth map data.
Project description
NE Loader
A simple, robust Python package to download and load Natural Earth map data using GeoPandas.
Features
- Download and cache Natural Earth datasets
- Load shapefiles as GeoDataFrames
Installation
pip install ne-loader
Usage
from ne_loader import map_loader
world = map_loader.get_natural_earth('cultural', 'admin_0_countries')
Errors are raised by default. To return the caught exception instead:
result = map_loader.get_natural_earth(
'cultural',
'admin_0_countries',
error_mode='return',
)
CLI
ne-loader --help
To set an environment override for the NE data save path:
export NATURAL_EARTH_CACHE_DIR="..."
Tests
python3 -m pytest tests
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ne_loader-0.3.1.tar.gz.
File metadata
- Download URL: ne_loader-0.3.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d4bf2029f9bcb37c231d4a6ebe4f073a58ae08b38f50db06425313661a78374
|
|
| MD5 |
2218ae74cc413d530657850182181d66
|
|
| BLAKE2b-256 |
183193ec4966d0934dcf1da89d9fc0d0bbe437696d0e6fde98df40731cfdabac
|
Provenance
The following attestation bundles were made for ne_loader-0.3.1.tar.gz:
Publisher:
publish.yml on erictunn/NE_loader_package
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ne_loader-0.3.1.tar.gz -
Subject digest:
4d4bf2029f9bcb37c231d4a6ebe4f073a58ae08b38f50db06425313661a78374 - Sigstore transparency entry: 1748539138
- Sigstore integration time:
-
Permalink:
erictunn/NE_loader_package@8705610b7f66e7ba5a9fcafbb459d769354a7a67 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/erictunn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8705610b7f66e7ba5a9fcafbb459d769354a7a67 -
Trigger Event:
release
-
Statement type:
File details
Details for the file ne_loader-0.3.1-py3-none-any.whl.
File metadata
- Download URL: ne_loader-0.3.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68b45961e3d829bdd203f3ecebfe61731ea8912821dbf0bb63fb58afdbb5ec3c
|
|
| MD5 |
f7a1c1d70b17e74ce553911d6ab81a76
|
|
| BLAKE2b-256 |
127ae21ec836607caa1d7bb56f81a1c30272b9dfba286572dff30d6eb562a0f5
|
Provenance
The following attestation bundles were made for ne_loader-0.3.1-py3-none-any.whl:
Publisher:
publish.yml on erictunn/NE_loader_package
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ne_loader-0.3.1-py3-none-any.whl -
Subject digest:
68b45961e3d829bdd203f3ecebfe61731ea8912821dbf0bb63fb58afdbb5ec3c - Sigstore transparency entry: 1748539236
- Sigstore integration time:
-
Permalink:
erictunn/NE_loader_package@8705610b7f66e7ba5a9fcafbb459d769354a7a67 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/erictunn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8705610b7f66e7ba5a9fcafbb459d769354a7a67 -
Trigger Event:
release
-
Statement type: