Skip to main content

This is the Python 'pywdpa' package

Project description

Logo pywdpa

pywdpa Python package

PyPI version Python version Travis CI License GPLv3 Zenodo

Overview

The pywdpa Python package is an interface to the World Database on Protected Areas (WDPA) hosted on the Protected Planet website at https://www.protectedplanet.net. The pywdpa package provides functions to download shapefiles of protected areas (PA) for any countries with an iso3 code using the Protected Planet API at https://api.protectedplanet.net. The pywdpa package translates some functions of the R package worldpa (https://github.com/FRBCesab/worldpa) in the Python language.

protected-planet

Terms and conditions

You must ensure that the following citation is always clearly reproduced in any publication or analysis involving the Protected Planet Materials in any derived form or format:

UNEP-WCMC and IUCN (YEAR) Protected Planet: The World Database on Protected Areas (WDPA). Cambridge, UK: UNEP-WCMC and IUCN. Available at: www.protectedplanet.net (dataset downloaded the YEAR/MONTH).

For further details on terms and conditions of the WDPA usage, please visit the page: https://www.protectedplanet.net/c/terms-and-conditions.

Prerequisites

This package uses the Protected Planet API to access data on world protected areas. You must first have obtained a Personal API Token by filling in the form available at https://api.protectedplanet.net/request. Then you need to set an environment variable (we recommend using the name WDPA_KEY) using either the command os.environ["WDPA_KEY"]="your_token" or python-dotenv.

Installation

The easiest way to install the pywdpa Python package is via pip:

$ # For version on PyPI
$ python -m pip install pywdpa

or

$ # For development version on GitHub
$ python -m pip install https://github.com/ghislainv/pywdpa/archive/master.zip

but you can also install pywdpa executing the setup.py file:

$ git clone https://github.com/ghislainv/pywdpa
$ cd pywdpa
$ python setup.py install

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

pywdpa-0.1.2.tar.gz (19.5 kB view hashes)

Uploaded Source

Built Distributions

pywdpa-0.1.2-py3-none-any.whl (19.7 kB view hashes)

Uploaded Python 3

pywdpa-0.1.2-py2.py3-none-any.whl (19.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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