Skip to content

Harden hypergraphx-data remote loading - #52

Merged
FraLotito merged 1 commit into
mainfrom
hgx-data-fixes
Nov 3, 2026
Merged

FraLotito merged 1 commit into
mainfrom
hgx-data-fixes

Conversation

@FraLotito

Copy link
Copy Markdown
Contributor
  • Verify TLS certificates by default (verify_ssl=True) and report certificate failures clearly instead of as a network error.
  • Unpickle remote binary datasets with a restricted unpickler (load_pickle(..., restricted=True)); local loads are unchanged.
  • Default to catalog.json (descriptions, licenses, download URLs), falling back to the legacy related-data.js.
  • Stream downloads to a temporary file and move them into the cache only when complete; reject truncated or non-gzip payloads; re-download cached files that fail to load.
  • Match dataset names case-insensitively, suggest close names, and put the cause first in error messages.
  • download_remote_datasets(continue_on_error=True) records unknown names instead of raising; bulk APIs serve cached datasets when the catalog is unreachable.
  • Tests: block real network access, cover the new behaviour.
  • Docs: update the remote datasets section of the quickstart.

- Verify TLS certificates by default (verify_ssl=True) and report
  certificate failures clearly instead of as a network error.
- Unpickle remote binary datasets with a restricted unpickler
  (load_pickle(..., restricted=True)); local loads are unchanged.
- Default to catalog.json (descriptions, licenses, download URLs),
  falling back to the legacy related-data.js.
- Stream downloads to a temporary file and move them into the cache only
  when complete; reject truncated or non-gzip payloads; re-download
  cached files that fail to load.
- Match dataset names case-insensitively, suggest close names, and put
  the cause first in error messages.
- download_remote_datasets(continue_on_error=True) records unknown names
  instead of raising; bulk APIs serve cached datasets when the catalog
  is unreachable.
- Tests: block real network access, cover the new behaviour.
- Docs: update the remote datasets section of the quickstart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@FraLotito
FraLotito merged commit 3fad4df into main Nov 3, 2026
1 check passed
@FraLotito
FraLotito deleted the hgx-data-fixes branch November 3, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant