Skip to main content

OCHA AnticiPy: Access data for anticipating humanitarian risk

license Test Status PyPI Status Documentation Status Coverage Status pre-commit Code style: black Imports: isort

OCHA AnticiPy is a Python library for simple downloading and processing of data related to the anticipation of humanitarian risk, from climate observations and forecasts to food insecurity.

The datasets that we currently support are:

  • CHIRPS rainfall
  • COD ABs (Common Operational Datasets administrative boundaries)
  • FEWS NET food insecurity
  • GloFAS river discharge
  • IRI seasonal rainfall forecast
  • USGS NDVI (normalized difference vegetation index)

For more information, please see the documentation.

Installing

Install and update using pip:

pip install ocha-anticipy

Some modules of the toolbox have specific dependencies not installed by default. These are documented within each module, but all dependencies can be installed using.

pip install -U ocha-anticipy[full]

A Simple Example

OCHA AnticiPy downloads data to the directory referenced by the environment variable OAP_DATA_DIR. Before beginning, please make sure that this environment variable is defined and points to where you would like the data to go.

Next, you can simply download the admin boundary CODs for Nepal, and retrieve provinces as a GeoDataFrame:

from ochanticipy import create_country_config, CodAB

country_config = create_country_config('npl')
codab = CodAB(country_config=country_config)
codab.download()
provinces = codab.load(admin_level=1)

Contributing

For guidance on setting up a development environment, see the contributing guidelines

Metadata

Release files for ocha-anticipy 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ocha-anticipy 1.1.3
File Size Uploaded Provenance Actions
ocha-anticipy-1.1.3.tar.gz 115.7 kB Without provenance Details for ocha-anticipy-1.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ocha-anticipy 1.1.3
File Interpreter ABI Platform Actions
ocha_anticipy-1.1.3-py3-none-any.whl Python 3 none any Details for ocha_anticipy-1.1.3-py3-none-any.whl

Total release size: 203.1 kB

Release files / ocha-anticipy-1.1.3.tar.gz

Download URL ocha-anticipy-1.1.3.tar.gz
Size 115.7 kB
Tags Source
SHA-256 checksum
How to use checksums
be1ea7d3d043786e3792041e760b981429a2bd8bc4d5abfda1f725235c7d4447
BLAKE2b-256 checksum
How to use checksums
a94e5e614286ae0a04cc30b879acb2b2c6463b48981db4b51f442060c365ec41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / ocha_anticipy-1.1.3-py3-none-any.whl

Download URL ocha_anticipy-1.1.3-py3-none-any.whl
Size 87.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f51deed87f12d37a70de78b41290e67108da837a23f056703ce628e84341df6
BLAKE2b-256 checksum
How to use checksums
79cedc3b3e8c941c3533dd21f72d2597f65c0416116b836544221d1ea7e8398d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for ocha-anticipy 1.1.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page