Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.3.0 instead.

pourpoint

pourpoint is the Python package for the pourpoint watershed delineation engine. Give it a point on a river and it returns the whole upstream watershed as a polygon. It reads HFX datasets, which are folders of pre-built river-network files. Only HFX v0.3.0 datasets load; older versions report a clear unsupported format error.

The wheel bundles the full native stack, including GDAL, PROJ, GEOS, libtiff, SQLite, and more, so no system GDAL install is needed.

Install

uv add pourpoint

(or pip install pourpoint)

Prebuilt wheels are published for:

  • macOS (Apple Silicon + Intel)
  • Linux (x86_64 + aarch64)
  • Windows (x86_64)

as macosx_11_0_arm64, macosx_11_0_x86_64, manylinux_2_28_x86_64, manylinux_2_28_aarch64, win_amd64.

Zero-download quickstart

Use the hosted public GRIT (Global River Topology) dataset without downloading it first:

import pourpoint

# No local dataset: this reads the hosted GRIT dataset over the network.
engine = pourpoint.Engine("https://basin-delineations-public.upstream.tech/grit/hfx-v0.3.0/")
result = engine.delineate(lat=47.3769, lon=8.5417)
print(result.area_km2)

The engine fetches only the pieces of the dataset it needs, so the full dataset never lands on your machine. The one public dataset hosted today is GRIT 2.0.0 (the source river network), compiled to HFX v0.3.0 (the format version). To use a different HFX dataset, change the URL and nothing else in your code changes.

Local quickstart

import pourpoint

engine = pourpoint.Engine("/path/to/hfx/dataset")
result = engine.delineate(lat=47.3769, lon=8.5417)
print(result.area_km2)

Engine accepts local paths and remote dataset URLs such as s3:// and https://. For constructor options such as snap search radius and geometry repair, see the Tuning Knobs section of API.md.

Reuse the Engine

The first open fetches dataset metadata over the network and is slower, so keep the engine around and reuse it. Repeated delineations in the same session reuse data already fetched, so overlapping watersheds are faster.

Going further

Logging and verbose output, batch delineation with a progress callback, the staged step-by-step API, and GeoParquet export are documented in API.md and on the docs site at https://cooperbigfoot.github.io/pourpoint/.

What it does

  • Finds the catchment your point sits in.
  • Gathers every catchment upstream.
  • Merges them into one watershed polygon.
  • Returns the geometry plus geodesic area in km².

API Reference

For the full developer-oriented API surface, including argument types, return types, and the exception hierarchy, see API.md.

Links

Metadata

Release files for pourpoint 0.2.1

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

Source distribution (sdist)

Source distribution for pourpoint 0.2.1
File Size Uploaded
pourpoint-0.2.1.tar.gz 699.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pourpoint 0.2.1
File
pourpoint-0.2.1-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
pourpoint-0.2.1-cp39-abi3-manylinux_2_28_x86_64.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-64 Details
pourpoint-0.2.1-cp39-abi3-manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.28+ ARM64 Details
pourpoint-0.2.1-cp39-abi3-macosx_11_0_x86_64.whl CPython 3.9 abi3 macOS 11.0+ x86-64 Details
pourpoint-0.2.1-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details

Total release size: 140.8 MB

Release files / pourpoint-0.2.1.tar.gz

Download URL pourpoint-0.2.1.tar.gz
Size 699.2 kB
Tags Source
SHA-256 checksum
How to use checksums
56fe43215b3ef225bac53e88c95e31373df41213033a9a61f02813c073793fdc
BLAKE2b-256 checksum
How to use checksums
c9635a6602133a0d08fdc3d03b3875a6246b6b4a9528bea36caeb0f2adcd86c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jul 26, 2026.

Transparency log

Release files / pourpoint-0.2.1-cp39-abi3-win_amd64.whl

Download URL pourpoint-0.2.1-cp39-abi3-win_amd64.whl
Size 48.7 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
7f94cc884a8b51c5bac027af0f2d687f2fda0ec3717a482886291afe32d6481a
BLAKE2b-256 checksum
How to use checksums
c0d0e6385250090f677f726a1714d5d5d6b0fd42457915b90d6e95f1ba7ac939
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jul 26, 2026.

Transparency log

Release files / pourpoint-0.2.1-cp39-abi3-manylinux_2_28_x86_64.whl

Download URL pourpoint-0.2.1-cp39-abi3-manylinux_2_28_x86_64.whl
Size 23.3 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
960ecced5e5311a42e398870f422820361f7d4047c5f7b13c3974cc02e8a1b0a
BLAKE2b-256 checksum
How to use checksums
81c836452956bf16e357d200435e08f09b8bec63891985bd7fa5c4df732db93c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jul 26, 2026.

Transparency log

Release files / pourpoint-0.2.1-cp39-abi3-manylinux_2_28_aarch64.whl

Download URL pourpoint-0.2.1-cp39-abi3-manylinux_2_28_aarch64.whl
Size 22.3 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
694f75a011b7cb3e4b9a26c3f562e7372fb85ac545098655e8c39b8c4ea90331
BLAKE2b-256 checksum
How to use checksums
9d653485fd36bee7eb6d696d659825b6588d36eec03d7271dba145f003197f07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jul 26, 2026.

Transparency log

Release files / pourpoint-0.2.1-cp39-abi3-macosx_11_0_x86_64.whl

Download URL pourpoint-0.2.1-cp39-abi3-macosx_11_0_x86_64.whl
Size 23.4 MB
Tags CPython 3.9 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
988b35459f761e868e350befe6c7bcf544c577d4c7252c6deea2e488591576c8
BLAKE2b-256 checksum
How to use checksums
84169f9fd8a068bc114fee1cf37a2e27255ae6e2ca6f90c503651b108e5f2f53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jul 26, 2026.

Transparency log

Release files / pourpoint-0.2.1-cp39-abi3-macosx_11_0_arm64.whl

Download URL pourpoint-0.2.1-cp39-abi3-macosx_11_0_arm64.whl
Size 22.3 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
44aa555a8ed1239c30e1821ce331cf639899e7dbaacb58192fd50964da2b70f9
BLAKE2b-256 checksum
How to use checksums
c2fe1774b4fa51c52bf1a0c49b1bf5abde31338688b4b5919a514e6294b48b0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jul 26, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

6 release files

This release

0.2.1 This release

6 release files

0.1.0

6 release files

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