GHOclient
Sponsored by Kwar-AI - AI-powered epidemiological intelligence
Introduction
The WHO Global Health Observatory is a large global health data repository that makes available an enormous collection of indicators which can be downloaded through their API. GHOclient is a Python client which helps data scientists search and access their data programmatically.
- Free software: MIT license
- Documentation: https://ghoclient.readthedocs.io.
Installation
Using pip:
pip install ghoclient
Using uv:
uv pip install ghoclient
For development:
git clone https://github.com/fccoelho/ghoclient.git
cd ghoclient
uv sync --extra dev
Features
- Search for indicators by keyword
- Browse available datasets
- List region and country codes
- Get the data as pandas DataFrames
Example usage
Basic usage with the GHO class:
from ghoclient import GHO
gho = GHO()
# Get all available indicators
indicators = gho.get_indicators()
# Search for specific indicators
malaria_indicators = gho.search_indicators('malaria')
# Get data for a specific indicator
life_expectancy = gho.get_data('WHOSIS_000001', countries=['BRA', 'USA'])
Legacy usage with index search:
import ghoclient
ghoclient.index.search('smoking')
The above lines will fetch a DataFrame with all indicators containing the word smoking in their description.
API Reference
GHO Class
Main interface for accessing WHO GHO data.
-
get_indicators()Returns a DataFrame with all available indicators.
-
search_indicators(query)Search for indicators containing the query string.
query: Search term- Returns: DataFrame with matching indicators
-
get_data(code, countries=None, filter_query=None)Get data for a specific indicator.
code: Indicator code (e.g.,'WHOSIS_000001')countries: Optional list of country codes to filter byfilter_query: Optional OData filter query string- Returns: DataFrame with the requested data
GHOSession Class
Low-level session class for direct API access.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Release files for ghoclient 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ghoclient-1.2.0.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ghoclient-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.9 kB
Release files / ghoclient-1.2.0.tar.gz
| Download URL | ghoclient-1.2.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ce41b17561d05a499d95215b488ab28103230c30566f1f0d4c759f09bfc4113
|
|
BLAKE2b-256 checksum How to use checksums |
848ec1497e6b86accfc7490f382406a54d1fd796ec42ecab762b1be2c5f24829
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 14, 2026.
Transparency logRelease files / ghoclient-1.2.0-py3-none-any.whl
| Download URL | ghoclient-1.2.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8039d6d9c12c55cd6ba6cab19800a60ee97c063bd604b471e2f8e07e3941d56b
|
|
BLAKE2b-256 checksum How to use checksums |
8a1296b521a8e6217fa8162e97162672a9f26db8bb0d62c7ddecd8802da38810
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 14, 2026.
Transparency log