Skip to main content

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

ne_loader-0.3.2.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ne_loader-0.3.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file ne_loader-0.3.2.tar.gz.

File metadata

  • Download URL: ne_loader-0.3.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ne_loader-0.3.2.tar.gz
Algorithm Hash digest
SHA256 8feca4ff37c4c07bf82c39926bc8631f7a06c5fc53d4fbe76b9881e59c3a135c
MD5 0d08b577d51ea69d5683f0e79ad8e2ce
BLAKE2b-256 74ea797898357f952fb223f28d7dae9ad9280dc6d10dc3a533f61c6c2439a737

See more details on using hashes here.

Provenance

The following attestation bundles were made for ne_loader-0.3.2.tar.gz:

Publisher: publish.yml on erictunn/NE_loader_package

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ne_loader-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: ne_loader-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ne_loader-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a6c73bd04d680b6464010ad302105ead9346344d19f42fa3e6511aa7e0f45b4c
MD5 21c9b61f3d6b0d28f0d12514a7f8a7c0
BLAKE2b-256 1bbaaef12f07a81acea75243d82e4a5d58e15e10db15de596da82b867c6005c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for ne_loader-0.3.2-py3-none-any.whl:

Publisher: publish.yml on erictunn/NE_loader_package

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page