PYDOC2.7(1)

πŸ“¦ version 2.7.18, in ubuntu jammy

πŸ’– PYDOC2.7 πŸ’–

okay bestie, gather round, because this is the manual page for pydoc2.7 β€” the Python documentation tool β€” straight outta the General Commands Manual section of the man pages. it's giving "your personal doc bestie who knows everything about Python and will absolutely tell you about it". let's get into it πŸ¦‹


✨ NAME ✨

pydoc2.7 β€” the Python documentation tool πŸ’…


✨ SYNOPSIS ✨

pydoc2.7 name

pydoc2.7 -k keyword

pydoc2.7 -p port

pydoc2.7 -g

pydoc2.7 -w module [...]

✨ DESCRIPTION ✨

🌸 pydoc2.7 name

Show text documentation on something. not me being your personal encyclopedia fr fr πŸ“š

so like, name can be literally any of these:

  • the name of a Python keyword
  • a topic
  • a function
  • a module
  • a package
  • or a dotted reference to a class or function within a module, or a module inside a package πŸ‘‘

and plot twist: if name contains a /, it gets used as the path to a Python source file to document. yes, a whole literal file path. iconic.

also, if name is keywords, topics, or modules, a listing of these things is displayed. so you get the whole menu instead of just one dish πŸ“


πŸ” pydoc2.7 -k keyword

Search for a keyword in the synopsis lines of all available modules.

like a little detective mission for one specific word across every module you've got. main character detective energy honestly πŸ•΅οΈ


🌐 pydoc2.7 -p port

Start an HTTP server on the given port on the local machine.

your docs, but on the internet (well, localhost, but still). serving looks πŸ’…


πŸͺŸ pydoc2.7 -g

Pop up a graphical interface for finding and serving documentation.

pop-up window moment!! GUI girlies rise πŸ™ˆβœ¨


πŸ“ pydoc2.7 -w name [...]

Write out the HTML documentation for a module to a file in the current directory.

and the deets:

  • if name contains a /, it is treated as a filename
  • if it names a directory, documentation is written for all the contents

so you can export one thing, or export everything in a folder. bulk slay πŸ”₯


✨ AUTHOR ✨

Moshe Zadka, based on "pydoc --help" 🫢


πŸ’€ no cap, that's the whole page. nothing hidden, nothing skipped.

and that's a wrap bestie!! this page is chillin' in the General Commands Manual, filed under pydoc2.7 β€” go document something cute, you've got this πŸŒˆπŸŽ€πŸ’œ

πŸ“¦ where this page comes from