Skip to content
Back to skills

Loading Local Hub

ASecurity

"Load datasets from the Hub, local files, packaged builders, Python

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
toolspythonapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill loading-local-hub --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Loading Local Hub?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Loading Local Hub
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-loading-local-hub/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-loading-local-hub)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: loading-local-hub
description: "Load datasets from the Hub, local files, packaged builders, Python
  objects, generators, and disk snapshots while choosing safe offline or
  authenticated network paths."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Loading Local and Hub Datasets

Use this sub-skill when the task is to get data into `datasets` before transformation: Hub repositories, local files/directories, packaged modules such as `csv` or `json`, Python-native objects, generator functions, or snapshots previously written with `save_to_disk`.

## Choose the Loading Path

- **Hub dataset**: use `load_dataset("namespace/name", name=..., split=..., revision=..., token=...)`; read [loading workflows](references/loading-workflows.md#hub-datasets) for revision, token, and offline boundaries.
- **Local files or directories**: use a packaged module such as `csv`, `json`, `parquet`, `text`, `imagefolder`, or `audiofolder` with explicit `data_files` or `data_dir`; read [loading workflows](references/loading-workflows.md#local-files-and-directories).
- **Inspect before loading**: use `load_dataset_builder(...)` to inspect configs, features, and splits before materializing rows; read [API reference](references/api-reference.md#builder-inspection).
- **Already saved snapshot**: use `load_from_disk(dataset_path, storage_options=...)` for directories produced by `save_to_disk`; read [API reference](references/api-reference.md#disk-snapshots).
- **In-memory or generated data**: use `Dataset.from_dict`, `Dataset.from_list`, `Dataset.from_pandas`, `Dataset.from_generator`, or `DatasetDict`; read [API reference](references/api-reference.md#python-object-loaders).

## Safety Boundaries

- Treat Hub access, remote URLs in `data_files`, and uncached revisions as network operations; avoid them unless the user expects network access.
- Never print or persist Hub tokens. Prefer `token=True` only when the user has authenticated locally; pass a token value only from a secret manager or environment variable.
- Prefer explicit `revision` for reproducibility and explicit `data_files` mappings for deterministic splits.
- For transformations, streaming iteration patterns, batching, filtering, or maps, route to `../processing-streaming/SKILL.md`.
- For feature schemas, casting, media decoding, and output formats, route to `../features-formats/SKILL.md`.
- For cache cleanup, push/share operations, and `datasets-cli`, route to `../sharing-cli-cache/SKILL.md`.

## Bundled Helper

Run [scripts/create_local_loading_fixture.py](scripts/create_local_loading_fixture.py) to create a tiny local multi-split CSV fixture and optional example snippets. This is safe and self-contained; it does not import `datasets`, access the network, or depend on the source checkout.

## Troubleshooting

Read [troubleshooting](references/troubleshooting.md) when loading fails due to missing files, ambiguous split inference, config selection, private Hub auth, offline mode, local format inference, `load_from_disk` path mistakes, or `storage_options` for remote filesystems.

Files in this skill

  • SKILL.md3.1 KB
  • references/api-reference.md6.8 KB
  • references/loading-workflows.md6.6 KB
  • references/troubleshooting.md5.5 KB
  • scripts/create_local_loading_fixture.py3.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.