I'm not even really sure what these things are officially called, though, Python has metadata, usually at the top of the module files such as __version__ = '0.1'
.
How can I find a list of all of the ones supported by PyDoc?
metadata, is a Python module for accessing and managing an item's metadata. You can explore information describing your maps and data and automate your workflows, particularly for managing standards-compliant geospatial metadata.
The pydoc module automatically generates documentation from Python modules. The documentation can be presented as pages of text on the console, served to a web browser, or saved to HTML files.
Any top-level private globals following a particular naming convention will be included under the Data
section generated by Pydoc:
__SomeClass__
or __a_special_variable__
will be displayed, but names like __this_is_private
will not._
and the object has a _fields
attribute (i.e. it has public fields).There are exceptions to these basic rules; names in the reserved list do not get the same treatment:
{'__author__', '__builtins__', '__cached__', '__credits__',
'__date__', '__doc__', '__file__', '__initializing__',
'__loader__', '__module__', '__name__', '__package__',
'__path__', '__qualname__', '__slots__', '__version__'}
Pydoc will automatically build distinct sections for the __version__
, __date__
, __author__
, and __credits__
. The others are "redundant or internal" (e.g. __name__
and __package__
are assigned to their own sections, but Pydoc will also generate those fields automatically whether you set them or not).
All of this can be found by browsing the source, but there doesn't appear to be any other single place compiling this information — or at least, not one that ranks well in Google.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With