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β ignoresprevious_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/--inplaceoverwrites 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.
π¦ where this page comes from
- debian bookworm: python3-tables 3.7.0-5 Β· BSD-3-Clause
- debian trixie: python3-tables 3.10.2-2 Β· BSD-3-Clause
- ubuntu jammy: python3-tables 3.7.0-2build1 Β· BSD-3-Clause
- ubuntu noble: python3-tables 3.9.2-1build3 Β· BSD-3-Clause
- ubuntu questing: python3-tables 3.10.2-3
- ubuntu resolute: python3-tables 3.10.2-3build3 Β· BSD-3-Clause
- ubuntu stonking: python3-tables 3.11.1-3 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms