Skip to content
Back to skills

Petastorm

ASecurity

"Routes Petastorm workflows for reading, writing, and converting

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

Works with

  • cli

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill petastorm --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Petastorm?

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

Security grade badge for Petastorm
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-petastorm/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-petastorm)

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: "petastorm"
description: "Routes Petastorm workflows for reading, writing, and converting
  Parquet-backed datasets for TensorFlow, PyTorch, Spark, and plain Python."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Petastorm

Petastorm is a data-access library for Apache Parquet datasets with ML-friendly schemas, readers, and Spark-based dataset creation tools.
Use this skill when the task mentions Petastorm, `make_reader`, `make_batch_reader`, `materialize_dataset`, `SparkDatasetConverter`,
`Unischema`, Petastorm metadata repair, or the `petastorm-*.py` console tools.

## Start here

- Read `references/repo-provenance.md` if you need to know whether this skill matches the current checkout snapshot.
- Run `scripts/check_install.py` to confirm the package imports, optional dependencies, and command entry points.
- Run `scripts/smoke_spark_session.py` when Spark or Java availability is in doubt.
- Read `references/install-and-prereqs.md` for installation, extras, and backend prerequisites.
- Read `references/workflow-overview.md` when you are choosing between the read, write, or Spark-converter routes.
- Read `references/filesystems-and-paths.md` before diagnosing URL, HDFS, S3, or GCS path problems.
- Read `references/schema-and-codecs.md` before designing or repairing a schema or codec.
- Read `references/troubleshooting.md` before chasing import-order, Spark, URL, or metadata errors.

## Choose a route

### `sub-skills/read-datasets/`

Use this route for reading Petastorm datasets or plain Parquet stores, applying predicates or NGrams, shuffling rows,
using TensorFlow or PyTorch adapters, reading into Spark RDDs, or running throughput benchmarks.

Helpful bundled files:

- `sub-skills/read-datasets/references/workflows.md`
- `sub-skills/read-datasets/references/cli-reference.md`
- `sub-skills/read-datasets/references/troubleshooting.md`
- `sub-skills/read-datasets/scripts/smoke_read_minimal_dataset.py`
- `sub-skills/read-datasets/scripts/smoke_read_plain_parquet.py`
- `sub-skills/read-datasets/scripts/smoke_read_tensorflow.py`
- `sub-skills/read-datasets/scripts/smoke_read_torch.py`

### `sub-skills/create-datasets/`

Use this route for defining schemas and codecs, materializing datasets, copying or filtering datasets, regenerating metadata,
and building row-group indexes or dataset fixes from existing Parquet data.

Helpful bundled files:

- `sub-skills/create-datasets/references/workflows.md`
- `sub-skills/create-datasets/references/cli-reference.md`
- `sub-skills/create-datasets/references/data-formats.md`
- `sub-skills/create-datasets/references/troubleshooting.md`
- `sub-skills/create-datasets/scripts/smoke_make_minimal_dataset.py`
- `sub-skills/create-datasets/scripts/smoke_copy_dataset.py`
- `sub-skills/create-datasets/scripts/smoke_generate_metadata.py`

### `sub-skills/spark-converter/`

Use this route for `make_spark_converter`, cached Spark DataFrame materialization, and creating TensorFlow or PyTorch loaders
from a Spark-backed cache directory.

Helpful bundled files:

- `sub-skills/spark-converter/references/workflows.md`
- `sub-skills/spark-converter/references/troubleshooting.md`
- `sub-skills/spark-converter/scripts/smoke_spark_converter.py`

## Installation and prerequisites

- Core install: `pip install petastorm`
- Common extras: `petastorm[tf]`, `petastorm[torch]`, `petastorm[opencv]`, `petastorm[s3fs]`
- Spark-backed workflows require a working Java runtime and PySpark.
- If you use PyTorch, import `pyarrow` before `torch`.

## Minimal import check

```bash
python - <<'PY'
import pyarrow
import petastorm
from petastorm import make_reader, make_batch_reader

print(petastorm.__version__)
print(make_reader.__name__, make_batch_reader.__name__)
PY
```

When you need TensorFlow, PyTorch, OpenCV, or S3/GCS support, read the relevant sub-skill reference first so you add only the needed extras.

Files in this skill

  • SKILL.md3.8 KB
  • references/filesystems-and-paths.md1.8 KB
  • references/install-and-prereqs.md2.1 KB
  • references/repo-provenance.md1.4 KB
  • references/repo-routing-metadata.json330 B
  • references/schema-and-codecs.md2.4 KB
  • references/troubleshooting.md2.3 KB
  • references/workflow-overview.md1.4 KB
  • scripts/check_install.py2.5 KB
  • scripts/smoke_spark_session.py1.4 KB
  • sub-skills/create-datasets/SKILL.md4.1 KB
  • sub-skills/create-datasets/references/api-reference.md4.8 KB
  • sub-skills/create-datasets/references/cli-reference.md2.2 KB
  • sub-skills/create-datasets/references/data-formats.md2.3 KB
  • sub-skills/create-datasets/references/troubleshooting.md2.5 KB
  • sub-skills/create-datasets/references/workflows.md4.1 KB
  • sub-skills/create-datasets/scripts/smoke_copy_dataset.py3.6 KB
  • sub-skills/create-datasets/scripts/smoke_generate_metadata.py3.3 KB
  • sub-skills/create-datasets/scripts/smoke_make_minimal_dataset.py3.2 KB
  • sub-skills/read-datasets/SKILL.md4.7 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.