pttree(1)

πŸ’… pttree β€” like, the group-chat recap of your HDF5 file

okay bestie, so pttree(1) β€” that's a General Commands Manual page for the command pttree. Let's get into it ✨


🌸 NAME 🌸

pttree β€” prints a quick overview of the contents of PyTables HDF5 files. no cap, that's literally it.


πŸŽ€ SYNOPSIS πŸŽ€

pttree [ OPTIONS ] filename[:nodepath]

yes queen, you give it a filename, and if you're feeling extra you can slap a :nodepath on the end too 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so pttree is designed to give you a quick overview of the contents of a PyTables HDF5 file β€” it prints a depth-indented list of nodes, basically the same energy as the output of the Unix tree function. iconic behaviour, honestly.

it can also show you the size</>, shape</> and compression states</> of individual nodes, plus summary info for the whole file. slay.

πŸ’€ real talk though β€” if you want something way more verbose (like, metadata and all that), you want ptdump instead. pttree is the chill version.

✨ OPTIONS ✨

here's the rundown, bestie. a summary of options is included below πŸ“‹

  • -L MAX_DEPTH, --max-level MAX_DEPTH β€” the maximum branch depth of the tree to display. and listen: -1 means no limit, so go feral 🌈
  • -S SORT_BY, --sort-by SORT_BY β€” artificially orders the nodes for you. it can be either "size", "name" or "none" β€” pick your vibe πŸ’…
  • --print-size β€” prints the size of each node/branch. go off πŸ“
  • --no-print-size β€” the counterpart to that one πŸ™ˆ
  • --print-shape β€” prints the shape of each node πŸ”·
  • --no-print-shape β€” yep, the other side of it 🫢
  • --print-compression β€” prints the compression library(level) for each compressed node πŸ—œοΈ
  • --no-print-compression β€” the off switch for that πŸ’œ
  • --print-percent β€” prints the size of each node as a % of the total tree size on disk. percentages?? obsessed πŸ“Š
  • --no-print-percent β€” and the counterpart again 😭
  • --use-si-units β€” reports sizes in SI units, where 1 MB == 10^6 B ✨
  • --use-binary-units β€” reports sizes in binary units, where 1 MiB == 2^20 B 🧚
  • -h β€” print help on usage. when in doubt, -h, fr fr πŸ‘‘

πŸ‘€ SEE ALSO πŸ‘€

  • ptdump(1).
  • these utilities are documented fully by the PyTables user's manual. iykyk πŸ“š

πŸ’– AUTHOR πŸ’–

this manual page was written by Antonio Valentino <antonio.valentino@tiscali.it>. giving credit where credit is due, as we should πŸŽ€


okay and for the cute lil sign-off: this page is from the General Commands Manual, and it's dated May 15, 2013 β€” and the command itself is pttree(1), in case you lost the plot somewhere in the middle bestie πŸ˜­πŸ’– go read your HDF5 files, you've got this. periodt. βœ¨πŸ¦‹πŸŒΈ