Skip to main content

This is the Python 'pywdpa' package

Project description

pywdpa Python package

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 WDPA 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.

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 WDPA 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 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:

~$ python -m pip install https://github.com/ghislainv/pywdpa/archive/master.zip

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

~$ git clone https://github.com/ghislainv/pywdpa
~$ cd pywdpa
~/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.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

pywdpa-0.1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file pywdpa-0.1.tar.gz.

File metadata

  • Download URL: pywdpa-0.1.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for pywdpa-0.1.tar.gz
Algorithm Hash digest
SHA256 1ff3da9189270e5b372fc4f9a2e218f436f3f0f99fbf2ae9abeb9e24a181eba0
MD5 8c7c3242a59c1e0dce1173033ffe763b
BLAKE2b-256 d439f0b1a43d4f20da69ac4dd6e6f12348d4c94c101b743b9545be9d97ac09cf

See more details on using hashes here.

File details

Details for the file pywdpa-0.1-py3-none-any.whl.

File metadata

  • Download URL: pywdpa-0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for pywdpa-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8210c4454d072d3352c7e6cd36e16f0f5f4385c35ac3458f2721ede008c9fda9
MD5 67a378e436dd0294099d4cd83924abb8
BLAKE2b-256 9caa550391a469dab9204cdced88e44ff0737baa6aa859e9f8e0e8e675836299

See more details on using hashes here.

Supported by

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