Skip to main content

CLI tool to inspect .npy and .npz files

Project description

npydump

Inspect NumPy .npy and .npz files from the command line without opening a Python REPL.

Install

pip install .

Usage

npydump data.npy
npydump data.npy --meta
npydump data.npy --head 10
npydump data.npy --slice "0:5, :, -1"
npydump data.npy --all
npydump data.npy --stat

npydump archive.npz --meta
npydump archive.npz --all
npydump archive.npz --keys a,b --head 5

npydump data.npy --format json
npydump data.npy --format yaml
npydump data.npy --format csv --out data.csv
npydump archive.npz --format csv --out out_csv

Notes

  • object dtype arrays only show metadata. Data is not expanded by design.
  • --stat computes common statistics over the flattened array.
  • CSV export flattens each array to a single column.
  • For .npz, CSV output creates one file per key in the output directory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

npydump-26.2.26.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

npydump-26.2.26-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file npydump-26.2.26.tar.gz.

File metadata

  • Download URL: npydump-26.2.26.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for npydump-26.2.26.tar.gz
Algorithm Hash digest
SHA256 c3d2ce5c4aea2fbae61d6fea4b65f188872c5624b1594b17318ace14b4e62cca
MD5 a500693baaaa76ab40e9cc39dff23fad
BLAKE2b-256 9632bf0649d66cedfeac18651cc8a4453313ce64929c0c860b2196da6b87d947

See more details on using hashes here.

File details

Details for the file npydump-26.2.26-py3-none-any.whl.

File metadata

  • Download URL: npydump-26.2.26-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for npydump-26.2.26-py3-none-any.whl
Algorithm Hash digest
SHA256 4983fab46e08005d66904e2780d61882ad4916dd7febde5bef859b6ef21808a3
MD5 8f754cf3d2701529ebbf8340023aa6a1
BLAKE2b-256 fdf8b00bf39a51766388eaadf4fe8558b51a0de0fb461beb5ef0bda458f619c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page