PTREPACK(1)

πŸ’– PTREPACK(1) πŸ’–

okay so bestie, welcome to the General Commands Manual glow-up of ptrepack πŸ‘‘ this is the whole entire vibe, no cap.


✨ NAME ✨

ptrepack β€” copy any PyTables Leaf, Group or complete subtree into another file πŸ¦‹


✨ SYNOPSIS ✨

ptrepack -h -v -o -R start,stop,step --non-recursive --dest-title=title
--dont-copyuser-attrs --overwrite-nodes --complevel=(0-9) --complib=lib
--shuffle=(0|1) --fletcher32=(0|1) --keep-source-filters
--upgrade-flavors --dont-regenerate-old-indexes sourcefile:sourcegroup
destfile:destgroup

✨ DESCRIPTION ✨

So basically πŸ’… ptrepack copies any Leaf, Group or complete subtree out of a PyTables file and drops it into a whole other file. It's giving moving day, but for your data. Slay.


✨ OPTIONS ✨

Here's the lil rundown of everything you can pass it, bestie β€” every single one, we're not skipping a thing 🫢

  • -h β€” prints a help text. ur friendly lil "what do I even type" button 🌸
  • -v β€” show more information. she's chatty and we love that for her ✨
  • -o β€” overwrite the destination file. bold move, iconic energy πŸ’…
  • -R RANGE β€” pick a RANGE of rows, in the form start,stop,step, while copying all the leaves. like a lil slice of the whole cake πŸ“
  • --non-recursive β€” do NOT do a recursive copy. (default is that it does do the recursive copy, so this is the "actually, just the one level please" flag πŸ™ˆ)
  • --dest-title=title β€” title for the new file. if u don't specify one, the source gets copied over instead πŸŽ€
  • --dont-copy-userattrs β€” do not copy the user attrs (default is to copy them, so this is the "leave my lil extras at home" option) πŸ’œ
  • --overwrite-nodes β€” overwrite destination nodes if they already exist. default is not to overwrite them, so heads up ⚠️
  • --complevel=(0-9) β€” set a compression level. 0 means no compression, and that's the default 🧚
  • --complib=lib β€” set the compression library to be used during the copy. lib can be "zlib", "lzo", "ucl" or "bzip2". defaults to "zlib" πŸ’–
  • --shuffle=(0|1) β€” activate or not the shuffling filter. default is active if complevel>0 πŸ”₯
  • --fletcher32=(0|1) β€” whether to activate or not the fletcher32 filter. not active by default 🌈
  • --keep-source-filters β€” use the original filters from the source files. the default is not doing that if any of --complevel, --complib, --shuffle or --fletcher32 is specified ⭐
  • --upgrade-flavors β€” when repacking PyTables 1.x files, the flavor of leaves gets unset. with this, such leaves get serialized as objects with the internal flavor ("numpy" for the 2.x series) πŸ‘‘
  • --dont-regenerate-old-indexes β€” disable regenerating old indexes. the default is to regenerate old indexes as they're found πŸ”

✨ SEE ALSO ✨

These utilities are documented fully by the PyTables user's manual πŸ“–


✨ AUTHOR ✨

This manual page was written by Francesc Altet <faltet@carabos.com> πŸ’Œ


and that's the whole page bestie, we ate and left no crumbs πŸ’…βœ¨ this lil masterpiece is from July 7, 2007, and it lives under the PTREPACK(1) name in the General Commands Manual β€” periodt, bye πŸŽ€πŸ«Ά