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 theYEAR/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
Metadata
Release files for pywdpa 0.1
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 | |
|---|---|---|---|---|
| pywdpa-0.1.tar.gz | 17.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pywdpa-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.7 kB
Release files / pywdpa-0.1.tar.gz
| Download URL | pywdpa-0.1.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ff3da9189270e5b372fc4f9a2e218f436f3f0f99fbf2ae9abeb9e24a181eba0
|
|
BLAKE2b-256 checksum How to use checksums |
d439f0b1a43d4f20da69ac4dd6e6f12348d4c94c101b743b9545be9d97ac09cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pywdpa-0.1-py3-none-any.whl
| Download URL | pywdpa-0.1-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8210c4454d072d3352c7e6cd36e16f0f5f4385c35ac3458f2721ede008c9fda9
|
|
BLAKE2b-256 checksum How to use checksums |
9caa550391a469dab9204cdced88e44ff0737baa6aa859e9f8e0e8e675836299
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for pywdpa 0.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.