PT2TO3(1)

πŸ’… PT2TO3 β€” like, the PyTables glow-up tool

okay bestie, so this is a page from the General Commands Manual, and the star of the show is pt2to3 β€” the PyTables 2.x -> 3.x API transition tool. basically it's the fairy godmother that drags your crusty old 2.x code into its 3.x era. 🧚✨


🌸 NAME 🌸

pt2to3 β€” PyTables 2.x -> 3.x API transition tool. that's it, that's the whole job description, and she does it flawlessly. πŸ’–


✨ SYNOPSIS ✨

pt2to3 [ OPTIONS ] filename

yeah. one filename, some optional OPTIONS, iconic behaviour. periodt.


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: this tool prints everything to standard out, right? so the classic move β€” and honestly the only move β€” is to pipe it somewhere else:

$ pt2to3 oldfile.py > newfile.py

boom. oldfile.py walks in, newfile.py struts out. that redirect is doing the heavy lifting and she ate. πŸŽ€


πŸ’… OPTIONS πŸ’…

a summary of options is included below β€” and no, we are not skipping a single one, we keep every detail in this house:

  • -r, --reverse β€” reverts the changes, going from 3.x -> 2.x. yes, it walks backwards. yes, it's giving time travel. πŸ”„
  • -p, --no-ignore-previous β€” ignores previous_api() calls. the no-ignore flag tells it to, well, ignore. iykyk, don't overthink it bestie. πŸ™ˆ
  • -o OUTPUT β€” output file to write to..
  • -i, --inplace β€” overwrites the file in-place. no new file, no backup, no take-backs β€” she edits your original directly. main character energy, slightly terrifying energy. πŸ‘‘
  • -h β€” print help on usage. when in doubt, ask the girl herself. 🌈
heads up, bestie: -i / --inplace overwrites the file in-place. that means your file, directly. maybe commit first? just saying. πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

these utilities are documented fully by PyTables user's manual β€” go read her, she's thorough. πŸ“šβœ¨


🫢 AUTHOR 🫢

this manual page was written by Antonio Valentino <antonio.valentino@tiscali.it>. thank you king, we appreciate the lore. πŸ’œ


and that's a wrap, babe β€” this lil slice of the General Commands Manual is dated May 15, 2013, which means it's been serving PT2TO3(1) realness for over a decade and it still eats. πŸ“πŸ’– no cap.