PYP(1)
πΈ PYP(1) β the manual page, but make it cute πΈ
okay bestie, this is the PYP(1) page from the General Commands Manual and I'm gonna walk you through it like we're texting at 2am, except every single fact stays exactly where it is. no cap. π
β¨ NAME β¨
pyp β The Pyed Piper: A Modern Python Alternative to awk, sed and Other Unix Text Manipulation Utilities
like. the name literally tells you the vibe. it's giving "awk but make it Python." π
β¨ SYNOPSIS β¨
pyp [options] files ...
that's it. that's the whole entrance. options, then files, periodt. π
β¨ DESCRIPTION β¨
okay so pyp β the Pyed Piper β is a command line tool for text manipulation. it does the same kind of job as awk and sed, but its subcommands are Python based, which means a LOT of programmers will already feel at home. no cap, it's the same energy but in a language you actually speak. π«Ά
it can operate both on a per-line base and on the complete input stream. so like, line by line if that's your thing, or the whole stream at once if you're feeling main character. and different features can be pipelined in a single command by using the pipe character β you know the one, the familiar | from shell commands. chain it up, bestie. π
here's the tea though: pyp backs up its input for reruns with modified commands, and it can save commands as macros. iconic. BUT β and this is the downside, not gonna lie β the rerun feature makes it unsuitable for continuous pipe operation. so don't try to run it forever in a pipe, it's not that girl. π
β¨ OPTIONS β¨
so these programs follow the usual GNU command line syntax, with long options starting with two dashes (-). a summary of options is included below. and for a complete description, use --manual. yes, the manual has a manual. we love a self-aware queen. π
-h,--helpβ show this help message and exit. the classic. the emergency exit. πͺ-m,--manualβ prints out extended help. the deluxe version of help, the director's cut. β¨-l,--macro_listβ lists all available macros. inventory check, bestie. π-s MACRO_SAVE_NAME,--macro_save=MACRO_SAVE_NAMEβ saves current command as macro. use"#"for adding comments. EXAMPLE:
pyp -s "great_macro # prints first letter" "p[1]"
save it, name it, comment it, slay it. πΎ
-f MACRO_FIND_NAME,--macro_find=MACRO_FIND_NAMEβ searches for macros with keyword or user name. detective mode activated. π-d MACRO_DELETE_NAME,--macro_delete=MACRO_DELETE_NAMEβ deletes specified public macro. it's over for that macro fr fr. π-g,--macro_groupβ specify group macros for save and delete; default is user. so like, whose macros are these anyway? π-t TEXT_FILE,--text_file=TEXT_FILEβ specify text file to load. for advanced users, you should typicallycata file intopyp. noted, noted. π-x,--executeβ execute all commands. full send. π₯-c,--turn_off_colorβ prints raw, uncolored output. sometimes you just want the plain truth, no glitter. π-u,--unmodified_configβ prints out genericPypCustom.pyconfig file. fresh out the box, untouched, no edits. π-b BLANK_INPUTS,--blank_inputs=BLANK_INPUTSβ generate this number of blank input lines; useful for generating numbered lists with variablen. blank lines but make them productive. π¦-n,--no_inputβ use with command that generates output with no input; same as--dummy_input 1. for when you're self-sufficient and need nobody. π-k,--keep_falseβ print blank lines for lines that test as False. default is to filter out False lines from the output. so by default the false ones get ghosted, and this flag says "no actually, keep them." π-r,--rerunβ rerun based on automatically cached data from the last run. use this after executing"pyp", pasting input into the shell, and hittingCTRL-D. the comeback tour. π
β¨ SEE ALSO β¨
the OGs, the ancestors, the ones who walked so pyp could run:
go say hi, they're family. πΈ
β¨ AUTHOR β¨
pyp was written by Toby Rosen <tobyrosen@gmail.com>. king behavior, honestly. π
this manual page was written by Khalid El Fathi <khalid@elfathi.fr>, for the Debian project (and may be used by others). shoutout Debian, always holding it down. π«Ά
and that's the whole page bestie!! General Commands Manual, March 19, 2012 β that's the date and the source, we're closing the book on this one. go forth and pipe responsibly (but not continuously, remember?? π). mwah πβ¨π
π¦ where this page comes from
- debian bookworm: pyp 2.12-3 Β· BSD-2-Clause
- debian trixie: pyp 3.0.9-1 Β· BSD-2-Clause
- ubuntu jammy: pyp 2.12-3 Β· BSD-2-Clause
- ubuntu noble: pyp 2.12-3 Β· BSD-2-Clause
- ubuntu resolute: pyp 3.0.9-1 Β· BSD-2-Clause
- ubuntu stonking: pyp 3.0.9-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms