_descriptions
_get_function_args_descriptions(*, package_name, module_path, function_name, verbose=False)
¶
Extract argument descriptions from a function.
| PARAMETER | DESCRIPTION |
|---|---|
package_name
|
Example
TYPE:
|
module_path
|
This must be an absolute path like
TYPE:
|
function_name
|
Example
TYPE:
|
Source code in src/fractal_task_tools/_descriptions.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | |
_get_function_docstring(*, package_name, module_path, function_name, verbose=False)
¶
Extract docstring from a function.
| PARAMETER | DESCRIPTION |
|---|---|
package_name
|
Example
TYPE:
|
module_path
|
This must be an absolute path like
TYPE:
|
function_name
|
Example
TYPE:
|
Source code in src/fractal_task_tools/_descriptions.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | |
_insert_function_args_descriptions(*, schema, descriptions, verbose=False)
¶
Merge the descriptions obtained via _get_args_descriptions into the
properties of an existing JSON Schema.
| PARAMETER | DESCRIPTION |
|---|---|
schema
|
TBD
TYPE:
|
descriptions
|
TBD
TYPE:
|
Source code in src/fractal_task_tools/_descriptions.py
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | |
_sanitize_description(string)
¶
Sanitize a description string.
This is a provisional helper function that replaces newlines with spaces and reduces multiple contiguous whitespace characters to a single one. Future iterations of the docstrings format/parsing may render this function not-needed or obsolete.
| PARAMETER | DESCRIPTION |
|---|---|
string
|
TBD
TYPE:
|
Source code in src/fractal_task_tools/_descriptions.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | |