Skip to main content

DocModuleMetadata

ClassDataClassSource

DocModuleMetadata(
title: str = "", author: str = "", license: str = "", descr: str = ""
)

The module metadata extracted from the top docstring.

Fields

NameTypeRequired
Description
titlestrThe module title.
authorstrThe author section specified in the docstring.
licensestrThe license section specified in the docstring.
descrstrThe description body specified in the docstring.

Methods

from_long_descr

v_1: Self = DocModuleMetadata.from_long_descr(text: str)

Parse the long description texts (many sections) as the metadata.

Requires

NameTypeRequired
Description
textstrThe long module docstring text.

Returns

NameType
Description
v_1SelfThe parsed module metadata.