PYDOC3.14(1)

πŸ“¦ version 3.14.8, in ubuntu questing, ubuntu resolute, ubuntu stonking

πŸŽ€ pydoc3.14 β€” NAME πŸŽ€

pydoc3.14 β€” bestie, it's the Python documentation tool ✨ she reads the docs so you don't have to πŸ’…


🌸 SYNOPSIS 🌸

pydoc3.14 name

pydoc3.14 -k keyword

pydoc3.14 -p port

pydoc3.14 -g

pydoc3.14 -w module [...]

πŸ¦‹ DESCRIPTION πŸ¦‹

  • pydoc3.14 name β€” okay so this one shows you text documentation on something. and like, name is flexible fr fr: it can be the name of a Python keyword, a topic, a function, a module, or a package β€” or a dotted reference to a class or function inside a module, or a module inside a package. πŸ‘‘

and get this: if name contains a /, it gets used as the path to a Python source file to document. and if name is 'keywords', 'topics', or 'modules', you get a whole listing of those things displayed. iconic behavior tbh 🫢

  • pydoc3.14 -k keyword β€” searches for a keyword in the synopsis lines of all available modules πŸ” lowkey the fastest way to find where something lives.
  • pydoc3.14 -p port β€” spins up an HTTP server on the given port, on the local machine πŸ–₯️ your docs, but make it web.
  • pydoc3.14 -g β€” pops up a graphical interface for finding and serving documentation ✨ yes ma'am, clicky-clicky docs πŸŽ€
  • pydoc3.14 -w name [...] β€” writes out the HTML documentation for a module to a file in the current directory πŸ“ and here's the nuance bestie: if name contains a /, it's treated as a filename; and if it names a directory, documentation is written for all the contents πŸ’–
not me explaining all five modes in one breath πŸ’€ but they're all so good, i fear.

πŸ’œ AUTHOR πŸ’œ

Moshe Zadka, based on "pydoc --help" 🌸 give them their flowers πŸ’


and that's the whole page bestie ✨ this came to you from the General Commands Manual as PYDOC3.14(1) β€” go read some docs, you deserve it πŸ«ΆπŸ’…πŸŒˆ

πŸ“¦ where this page comes from