abqpy.decorators
Module Contents
Functions
|
Generate a link to the Abaqus class documentation. |
|
Generate a link to the Abaqus function documentation. |
Add a link to the Abaqus documentation to the docstring for classes or modules. |
|
Add a link to the Abaqus documentation to the docstring for methods or functions. |
|
|
Add a link to the Abaqus documentation to the docstring of the function. |
|
Process the class name. |
|
Add a link to the Abaqus documentation to the docstring of the method. |
|
Add a link to the Abaqus documentation to the docstring of the class. |
Attributes
- class_or_module_link(type: str, class_or_module_name: str, prefix='', suffix='', label=None) Tuple[str, str] [source]
Generate a link to the Abaqus class documentation.
- Parameters:
- Returns:
- method_or_function_link(type: str, class_or_module_name: str, method_or_function_name: str, prefix='', suffix='', label=None) Tuple[str, str] [source]
Generate a link to the Abaqus function documentation.
- Parameters:
type (
str
) – Type of the object, ‘method’ or ‘function’.class_or_module_name (
str
) – The name of the module.method_or_function_name (
str
) – The name of the function.prefix (
str
) – The prefix to the class or module name.suffix (
str
) – The suffix to the class name.label (
str
) – The label to use for the link.
- Returns:
- add_link_in_class_or_module_docstring(type: str, class_or_module_name: str, docstring: str, prefix='', suffix='', label=None) str [source]
Add a link to the Abaqus documentation to the docstring for classes or modules.
- Parameters:
- Returns:
The docstring with the link to the Abaqus documentation.
- Return type:
- add_link_in_method_or_function_docstring(type: str, class_or_module_name: str, method_or_function_name: str, docstring: str, prefix='', suffix='', label=None) str [source]
Add a link to the Abaqus documentation to the docstring for methods or functions.
- Parameters:
type (
str
) – Type of the object, ‘method’ or ‘function’.class_or_module_name (
str
) – The name of the module.method_or_function_name (
str
) – The name of the function.docstring (
str
) – The docstring.prefix (
str
) – The prefix to the class or module name.suffix (
str
) – The suffix to the class name.label (
str
) – The label to use for the link.
- Returns:
The docstring with the link to the Abaqus documentation.
- Return type:
- abaqus_function_doc(func)[source]
Add a link to the Abaqus documentation to the docstring of the function.