PYDOC3.12(1)
๐ NAME ๐
pydoc3.12 โ the Python documentation tool, bestie. it's giving "I know everything about your code" and honestly? slay.
โจ SYNOPSIS โจ
pydoc3.12 name
pydoc3.12 -k keyword
pydoc3.12 -p port
pydoc3.12 -g
pydoc3.12 -w module [...]
๐ธ DESCRIPTION ๐ธ
okay so here's the tea, one mode at a time ๐ซ
๐ฆ pydoc3.12 name
Show text documentation on something. that's it, that's the vibe.
and what even is name, you ask? great question, bestie ๐
it may be the name of a:
- Python keyword
- topic
- function
- module
- package
โฆor a dotted reference to a class or function within a module, or a module in a package. iykyk.
now here's the plot twist ๐ญ if name contains a /, it gets used as the path to a Python source file to document. like, a whole file. periodt.
and if name is keywords, topics, or modules? then you get a listing of these things displayed. a little menu of options, very demure, very mindful ๐
๐ pydoc3.12 -k keyword
Search for a keyword in the synopsis lines of all available modules.</purl>
wait that tag broke, let me try again โ Search for a keyword in the synopsis lines of all available modules. ๐
it's a search. across all the modules. go find your little word, bestie.
๐ pydoc3.12 -p port
Start an HTTP server on the given port on the local machine.</purl>
ok again โ Start an HTTP server on the given port on the local machine. ๐ฅ your docs, but in a browser, on your machine. main character energy fr fr.
๐ pydoc3.12 -g
Pop up a graphical interface for finding and serving documentation.
a whole GUI. for docs. we love a visual moment โจ
๐ pydoc3.12 -w name [...]
Write out the HTML documentation for a module to a file in the current directory.
so it writes a file. in the current directory. HTML. no cap.
and the same / rule applies here too, but slightly different โ pay attention bestie ๐ if name contains a /, it is treated as a filename; and if it names a directory, documentation is written for all the contents.
๐จ not me stressing this: the/behaviour is not identical across modes. in thenamemode it's a path to a source file. in-wmode it's a filename, and a directory means "do all of it." keep them separate in your brain, okay? ๐ง
๐ AUTHOR ๐
Moshe Zadka, based on "pydoc --help" ๐ซถ an icon, a legend, and apparently the moment.
and that's the whole page, bestie!! ๐ this was PYDOC3.12(1) from the General Commands Manual โ thanks for reading all the way to the bottom, you're literally the main character ๐โจ๐
๐ฆ where this page comes from
- ubuntu noble: python3.12 3.12.3-1
- ubuntu noble: python3.12 3.12.3-1ubuntu0.17
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms