Metadata-Version: 2.4
Name: open-geo-service
Version: 0.2.0
Summary: Climate, Earth Observation and geospatial data API
Keywords: dhis2,geospatial,climate,earth-observation,zarr,stac
Author: University of Oslo
Author-email: University of Oslo <climate@dhis2.org>
License-Expression: BSD-3-Clause
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: GIS
Requires-Dist: httpx>=0.28.1
Requires-Dist: pystac>=1.10,<2
Requires-Dist: dhis2-client>=0.3.2 ; extra == 'dhis2'
Requires-Dist: exactextract>=0.3.0 ; extra == 'server'
Requires-Dist: fastapi>=0.100.0 ; extra == 'server'
Requires-Dist: license-expression>=30.4 ; extra == 'server'
Requires-Dist: jinja2>=3.1 ; extra == 'server'
Requires-Dist: jsonschema>=4.23 ; extra == 'server'
Requires-Dist: starlette>=0.49.1 ; extra == 'server'
Requires-Dist: uvicorn>=0.41.0 ; extra == 'server'
Requires-Dist: python-dotenv>=1.0.1 ; extra == 'server'
Requires-Dist: geojson-pydantic>=2.1.0 ; extra == 'server'
Requires-Dist: metpy>=1.7,<2 ; extra == 'server'
Requires-Dist: xstac>=1.0,<2 ; extra == 'server'
Requires-Dist: xarray>=2025.12.0 ; extra == 'server'
Requires-Dist: zarr>=3.1.6,<4 ; extra == 'server'
Requires-Dist: icechunk>=2.2,<3 ; extra == 'server'
Requires-Dist: geozarr-toolkit==0.1.* ; extra == 'server'
Requires-Dist: topozarr>=0.3.0,<0.4 ; extra == 'server'
Requires-Dist: rioxarray>=0.17 ; extra == 'server'
Requires-Dist: pandas>=2.3,<3 ; extra == 'server'
Requires-Dist: portalocker>=3.2.0 ; extra == 'server'
Requires-Dist: openeo-pg-parser-networkx>=2026.3.3 ; extra == 'server'
Requires-Dist: openeo-processes-dask>=2026.6.3 ; extra == 'server'
Requires-Dist: dask-geopandas>=0.4 ; extra == 'server'
Requires-Dist: odc-geo>=0.4.1 ; extra == 'server'
Requires-Dist: odc-stac>=0.3.9 ; extra == 'server'
Requires-Dist: planetary-computer>=0.5.1 ; extra == 'server'
Requires-Dist: pystac-client>=0.6.1 ; extra == 'server'
Requires-Dist: stac-validator>=3.3.1 ; extra == 'server'
Requires-Dist: xvec>=0.3 ; extra == 'server'
Requires-Dist: joblib>=1.3 ; extra == 'server'
Requires-Dist: python-multipart>=0.0.29 ; extra == 'server'
Requires-Dist: xclim>=0.61.1 ; extra == 'server'
Requires-Dist: earthkit-transforms>=1.0 ; extra == 'server'
Requires-Dist: earthkit-meteo>=1.0 ; extra == 'server'
Requires-Dist: earthkit-utils>=1.0 ; extra == 'server'
Requires-Dist: ecmwf-datastores-client>=0.4 ; extra == 'server'
Requires-Dist: netcdf4>=1.7 ; extra == 'server'
Requires-Dist: apscheduler>=3.11,<4 ; extra == 'server'
Requires-Dist: overturemaps>=0.17 ; extra == 'server'
Requires-Dist: iso3166>=2.1 ; extra == 'server'
Requires-Dist: tylertoo==0.8.0 ; extra == 'server'
Requires-Dist: xarray>=2025.12.0 ; extra == 'xarray'
Requires-Dist: zarr>=3.1.6,<4 ; extra == 'xarray'
Requires-Dist: fsspec>=2024.6.0 ; extra == 'xarray'
Requires-Dist: aiohttp>=3.10 ; extra == 'xarray'
Requires-Python: >=3.12
Project-URL: Repository, https://github.com/dhis2/open-geo-service
Project-URL: Documentation, https://github.com/dhis2/open-geo-service/tree/main/docs
Project-URL: Bug Tracker, https://github.com/dhis2/open-geo-service/issues
Project-URL: Changelog, https://github.com/dhis2/open-geo-service/releases
Provides-Extra: dhis2
Provides-Extra: server
Provides-Extra: xarray
Description-Content-Type: text/markdown

# Open Geo Service

An open-source platform that integrates data from many different sources to produce tailored climate services — to help make informed decisions, manage risks, and adapt to climate change.

> **Status: under active development.** APIs and data models may change without notice.

> **Renamed from Open Climate Service.** The package is now `open-geo-service` (module `open_geo_service`), the image `ghcr.io/dhis2/open-geo-service`, the CLI `geoservice`, the config file `geoservice.yaml` and the env vars `GEOSERVICE_*` (was `CLIMATE_SERVICE_*`). There are no aliases: update them together.

**Documentation: <https://dhis2.github.io/open-geo-service/>**

Each instance is configured for a specific country or region: it scopes all data extraction, processing, and storage to that spatial extent, draws from sources such as CHIRPS, ERA5, and WorldPop, stores outputs as GeoZarr, and exposes them through open standards (STAC, Zarr over HTTP, openEO). It runs independently of DHIS2 and can be deployed on local, cloud-hosted, or sovereign country infrastructure.

## Install

```bash
pip install open-geo-service            # client only — talk to an instance over HTTP
pip install open-geo-service[xarray]    # + open published datasets as xarray
pip install open-geo-service[dhis2]     # + DHIS2 Web API client
```

The client, `[xarray]` and `[dhis2]` extras install with `pip` on any platform.

> **Running a server?** Don't `pip install` the `[server]` extra — it depends on packages with upstream version pins (e.g. `geojson-pydantic`, `zarr`) that need dependency **overrides** to resolve, which `uv` applies but `pip` cannot. Run an instance with **uv** or **Docker** instead — see [Run a server](#run-a-server), the [quick start](https://dhis2.github.io/open-geo-service/setup_guide/) (try it locally), and the [instance guide](https://dhis2.github.io/open-geo-service/instance_guide/) (operational deployments), which give you a ready-to-use `pyproject.toml` with the required overrides.

## Quick start (client)

```python
from open_geo_service import GeoService

service = GeoService("https://my-instance.example.org")
datasets = service.datasets()  # discover published collections
ds = service.open_dataset(datasets[0]["id"])  # open as xarray (needs the [xarray] extra)
```

## Run a server

To try it locally, see the [quick start](https://dhis2.github.io/open-geo-service/setup_guide/); for an operational deployment, see the [instance guide](https://dhis2.github.io/open-geo-service/instance_guide/). In short:

```bash
uv sync --extra server
uv run uvicorn open_geo_service.main:app --reload
```

## Documentation

- [Quick start](https://dhis2.github.io/open-geo-service/setup_guide/) — try it locally and ingest data
- [Instance guide](https://dhis2.github.io/open-geo-service/instance_guide/) — run a service for your country (recommended)
- [Using the web interface](https://dhis2.github.io/open-geo-service/web_interface/) — manage ingestion, sync, and the map viewer
- [Accessing data](https://dhis2.github.io/open-geo-service/user_guide/) — the Python client, STAC, and xarray
- [openEO](https://dhis2.github.io/open-geo-service/openeo/) — process graphs, workflows, and exports
- [API reference](https://dhis2.github.io/open-geo-service/managed_data_api_guide/)
- [Roadmap](https://dhis2.github.io/open-geo-service/roadmap/) · [Team](https://dhis2.github.io/open-geo-service/team/)

## Development

```bash
make sync   # install all dependencies (client + server + xarray)
make run    # start the dev server with hot reload
make lint   # ruff + mypy + pyright
make test   # pytest on 2 workers; PYTEST_WORKERS=4 for more
make test-serial  # pytest in one process, to diagnose a failure
make test-integration  # fetch from every built-in data source; needs their keys
```

Dependabot opens a weekly PR with the minor and patch updates of the Python dependencies, a separate PR for each major update, and one PR for GitHub Actions updates ([.github/dependabot.yml](.github/dependabot.yml)).

## License

BSD-3-Clause.
