Canonical path in Python to add or get meta information to / from docstrings?

I would like to add some meta information to my Python module docstrings, such as author, email, version. Is there a canonical way to do this? I searched for quite some time, but could not find anything with a certain power, here or on the Internet.

PEP 426 - Metadata for Python Software Packages 2.0 talks about this. And it looks like __author__, __version__and some other recognized pydoc(V2.7). In addition, there is epydocalso sphinx-doc.

Is there a standard way to include such information in a document line? Or how are global variables? If so, is there a list of accepted keyword / variable names?

Example:

#########
# Parts
# <description>
#
"""Helper module for selling car parts on the web.
   Author: Sue Baru
   EMail: sb@carparts.com
   Version: 1.0
"""

Update

, __author__ . git repo.

+5
1

Sphinx ( reST):

"""A pypi demonstration vehicle.

.. moduleauthor:: Andrew Carter <andrew@invalid.com>

"""

. Sphinx - .

0

All Articles