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.0

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.0
File Size Uploaded
pourpoint-0.2.0.tar.gz 667.6 kB Details

Built distributions (wheels)

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

Total release size: 141.3 MB

Release files / pourpoint-0.2.0.tar.gz

Download URL pourpoint-0.2.0.tar.gz
Size 667.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6d4f07e7a28127ec580a5355f8ed56a5f2241118c686ec58e9599027a0f3eb05
BLAKE2b-256 checksum
How to use checksums
26bc369ed1a875838b4131eefc6c508e9453802ee82995b8760e011bdd80fe26
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 24, 2026.

Transparency log

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

Download URL pourpoint-0.2.0-cp39-abi3-win_amd64.whl
Size 48.8 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
9ecdbf135a072e9a66a5f0cdec4a4c5beb15313d14683685b59c6b63e3eecd54
BLAKE2b-256 checksum
How to use checksums
b0edf16db1f5cb88d0ce72b383d23de071762422c6272f8cf13b922b82b18c29
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 24, 2026.

Transparency log

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

Download URL pourpoint-0.2.0-cp39-abi3-manylinux_2_28_x86_64.whl
Size 23.4 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
043e2fbdd3ee7ba918e0b0487c1800157b5aebea886e823c3192bc65f3bed0b0
BLAKE2b-256 checksum
How to use checksums
e7f175237ee18a57994ed79e6a2ecb42b3388a2639b0522275042c4310906155
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 24, 2026.

Transparency log

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

Download URL pourpoint-0.2.0-cp39-abi3-manylinux_2_28_aarch64.whl
Size 22.4 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
6dd508ee9a23c806317c50ad2d3fc18aa323d754570892f45751e036f09ddbfb
BLAKE2b-256 checksum
How to use checksums
256e4c6746bb5b0f11c236163dd84afea15890e12f073987225c44c45f8f26dc
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 24, 2026.

Transparency log

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

Download URL pourpoint-0.2.0-cp39-abi3-macosx_11_0_x86_64.whl
Size 23.6 MB
Tags CPython 3.9 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
f8abcc4ceae4a4aee0d4735a11b40438db59d57cc1d3971f5e9a2d0e0800ef3c
BLAKE2b-256 checksum
How to use checksums
edf82b2efc0ca69957c081637dbbac91972766be86fa8ee298f0699d18cb9e0d
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 24, 2026.

Transparency log

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

Download URL pourpoint-0.2.0-cp39-abi3-macosx_11_0_arm64.whl
Size 22.4 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
aaa4a620f79e10687e316aa8d334d9e42666a1fd6736eab55de4ad32133d391b
BLAKE2b-256 checksum
How to use checksums
d176d56ea5b7265b083fd0bf3e908a3cdc1ef895aff5aea7c1bd45efd9cfbcf9
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 24, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

6 release files

This release

0.2.0 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