MCPcopy Create free account

hub / github.com/mkdocstrings/griffe / functions

Functions1,229 in github.com/mkdocstrings/griffe

↓ 186 callersMethodappend
Append a name to this attribute. Parameters: value: The expression name to append.
packages/griffelib/src/griffe/_internal/expressions.py:290
↓ 83 callersMethodas_dict
Return this alias' data as a dictionary. See also: [`as_json`][griffe.Alias.as_json]. Parameters: full: Whether to retur
packages/griffelib/src/griffe/_internal/models.py:2186
↓ 69 callersFunctionparse_google
Yield a function to parse Google docstrings. Yields: A parser function.
packages/griffelib/tests/test_docstrings/conftest.py:17
↓ 63 callersMethodcall
Call the extension hook for the given event. Parameters: event: The triggered event. **kwargs: Arguments passed to th
packages/griffelib/src/griffe/_internal/extensions/base.py:466
↓ 59 callersFunctiontemporary_visited_module
Create and visit a temporary module with the given code. Parameters: code: The code of the module. module_name: The name of the t
packages/griffelib/src/griffe/_internal/helpers.py:263
↓ 58 callersFunctiondocstring_warning
Log a warning when parsing a docstring. This function logs a warning message by prefixing it with the filepath and line number. Parameters:
packages/griffelib/src/griffe/_internal/docstrings/utils.py:19
↓ 57 callersFunctionparse_sphinx
Yield a function to parse Sphinx docstrings. Yields: A parser function.
packages/griffelib/tests/test_docstrings/conftest.py:37
↓ 55 callersFunctionparse_numpy
Yield a function to parse Numpy docstrings. Yields: A parser function.
packages/griffelib/tests/test_docstrings/conftest.py:27
↓ 50 callersFunction_build
(node: ast.AST, parent: Module | Class, /, **kwargs: Any)
packages/griffelib/src/griffe/_internal/expressions.py:1420
↓ 44 callersMethodload
Load an object as a Griffe object, given its Python or file path. Note that this will load the whole object's package, and return onl
packages/griffelib/src/griffe/_internal/loader.py:105
↓ 44 callersMethodresolve
Resolve a name within this object's and parents' scope. Parameters: name: The name to resolve. Raises: NameR
packages/griffelib/src/griffe/_internal/models.py:1886
↓ 41 callersFunctiontemporary_visited_package
Create and visit a temporary package. Parameters: package: The package name. Example: `"a"` gives a package named `a`, while
packages/griffelib/src/griffe/_internal/helpers.py:121
↓ 39 callersFunction_yield
( element: str | Expr | tuple[str | Expr, ...], *, flat: bool = True, is_left: bool = False,
packages/griffelib/src/griffe/_internal/expressions.py:66
↓ 38 callersMethodvalues
Return the collection values. Returns: The collection values.
packages/griffelib/src/griffe/_internal/collections.py:48
↓ 33 callersFunctionparse_docstring_annotation
Parse a string into a true name or expression that can be resolved later. Parameters: annotation: The annotation to parse. docstr
packages/griffelib/src/griffe/_internal/docstrings/utils.py:51
↓ 32 callersFunctiontemporary_pypackage
Create a package containing the given modules in a temporary directory. Parameters: package: The package name. Example: `"a"` gives
packages/griffelib/src/griffe/_internal/helpers.py:72
↓ 27 callersMethoditems
Return the collection items. Returns: The collection items.
packages/griffelib/src/griffe/_internal/collections.py:56
↓ 27 callersMethodset_member
Set a member with its name or path. This method is part of the producer API: you can use it safely while building Griffe trees
packages/griffelib/src/griffe/_internal/mixins.py:168
↓ 23 callersMethodas_json
Return this target's data as a JSON string. See also: [`as_dict`][griffe.Alias.as_dict]. Parameters: full: Whether to re
packages/griffelib/src/griffe/_internal/models.py:1541
↓ 22 callersFunctionload_extensions
Load configured extensions. Parameters: exts: Extensions with potential configuration options. Returns: An extensions contai
packages/griffelib/src/griffe/_internal/extensions/base.py:586
↓ 19 callersMethodadd
Add extensions to this container. Parameters: *extensions: The extensions to add.
packages/griffelib/src/griffe/_internal/extensions/base.py:454
↓ 17 callersMethod__init__
Initialize the element. Parameters: annotation: The element annotation, if any. description: The element description.
packages/griffelib/src/griffe/_internal/docstrings/models.py:21
↓ 17 callersFunction_attach_parent_to_expr
(expr: expressions.Expr | str | None, parent: Module | Class)
packages/griffelib/src/griffe/_internal/encoders.py:150
↓ 17 callersFunctiontemporary_inspected_module
Create and inspect a temporary module with the given code. Parameters: code: The code of the module. module_name: The name of the
packages/griffelib/src/griffe/_internal/helpers.py:309
↓ 16 callersMethodresolve_aliases
Resolve aliases. Parameters: implicit: When false, only try to resolve an alias if it is explicitly exported. externa
packages/griffelib/src/griffe/_internal/loader.py:237
↓ 13 callersFunction_join
Apply a separator between elements. The caller is assumed to provide their own grouping (e.g. lists, tuples, slice) and will prevent parenthe
packages/griffelib/src/griffe/_internal/expressions.py:109
↓ 13 callersFunction_read_block_items
( docstring: Docstring, *, offset: int, warnings: bool = True, **options: Any, # noqa: AR
packages/griffelib/src/griffe/_internal/docstrings/numpy.py:99
↓ 13 callersMethodget_member
Get a member with its name or path. This method is part of the producer API: you can use it safely while building Griffe trees
packages/griffelib/src/griffe/_internal/mixins.py:59
↓ 12 callersMethodadd
Add a parameter to the container. Parameters: parameter: The function parameter to add. Raises: ValueError:
packages/griffelib/src/griffe/_internal/models.py:370
↓ 11 callersMethodfrom_json
Create an instance of this class from a JSON string. Parameters: json_string: JSON to decode into Object. **kwargs: A
packages/griffelib/src/griffe/_internal/mixins.py:230
↓ 11 callersMethodhandle_function
Handle a function. Parameters: node: The node to inspect. labels: Labels to add to the data object.
packages/griffelib/src/griffe/_internal/agents/inspector.py:444
↓ 10 callersFunction_git
(*args: str, check: bool = True)
packages/griffelib/src/griffe/_internal/git.py:36
↓ 10 callersFunction_read_block_items
(docstring: Docstring, *, offset: int, warnings: bool = True, **options: Any)
packages/griffelib/src/griffe/_internal/docstrings/google.py:92
↓ 10 callersMethodmodernize
Modernize the expression. For example, use PEP 604 type unions `|` instead of `typing.Union`. Returns: A modernized expr
packages/griffelib/src/griffe/_internal/expressions.py:191
↓ 10 callersFunctionrun
Run a command in the default virtual environment. ```bash make run <CMD> [ARG...] ``` This command runs an arbitrary command inside
scripts/make.py:169
↓ 9 callersFunction_get_precedence
(expr: Expr)
packages/griffelib/src/griffe/_internal/expressions.py:1110
↓ 8 callersFunction_is_empty_line
(line: str)
packages/griffelib/src/griffe/_internal/docstrings/google.py:834
↓ 8 callersFunction_is_empty_line
(line: str)
packages/griffelib/src/griffe/_internal/docstrings/numpy.py:91
↓ 7 callersFunction_parse_directive
(docstring: Docstring, offset: int, *, warnings: bool = True)
packages/griffelib/src/griffe/_internal/docstrings/sphinx.py:444
↓ 7 callersFunctionast_children
Return the children of an AST node. Parameters: node: The AST node. Yields: The node children.
packages/griffelib/src/griffe/_internal/agents/nodes/ast.py:26
↓ 7 callersFunctionload_git
Load and return a module from a specific Git reference. This function will create a temporary [git worktree](https://git-scm.com/docs/git-wor
packages/griffelib/src/griffe/_internal/loader.py:852
↓ 6 callersFunction_extract
(node: ast.AST, parent: Module)
packages/griffelib/src/griffe/_internal/agents/nodes/exports.py:61
↓ 6 callersMethod_get_docstring
(self, node: ObjectNode)
packages/griffelib/src/griffe/_internal/agents/inspector.py:174
↓ 6 callersMethod_get_docstring
(self, node: ast.AST, *, strict: bool = False)
packages/griffelib/src/griffe/_internal/agents/visitor.py:197
↓ 6 callersFunction_get_parts
(key: str | Sequence[str])
packages/griffelib/src/griffe/_internal/mixins.py:22
↓ 6 callersFunction_handle_editable_module
(path: Path)
packages/griffelib/src/griffe/_internal/finder.py:470
↓ 6 callersFunction_load_docstring
(obj_dict: dict)
packages/griffelib/src/griffe/_internal/encoders.py:92
↓ 6 callersFunction_shell
(cmd: str, *, capture_output: bool = False, **kwargs: Any)
scripts/make.py:25
↓ 6 callersFunctioninspect
Inspect a module. Sometimes we cannot get the source code of a module or an object, typically built-in modules like `itertools`. The only
packages/griffelib/src/griffe/_internal/agents/inspector.py:54
↓ 6 callersMethoditerate
Iterate on the expression elements. Parameters: flat: Expressions are trees. When flat is false, this method ite
packages/griffelib/src/griffe/_internal/expressions.py:172
↓ 6 callersFunctionsafe_get_expression
Safely (no exception) build a resolvable annotation. Parameters: node: The annotation node. parent: The parent used to resolve th
packages/griffelib/src/griffe/_internal/expressions.py:1454
↓ 5 callersMethod__init__
Initialize the alias. Parameters: name: The alias name. target: If it's a string, the target resolution is delayed un
packages/griffelib/src/griffe/_internal/models.py:1350
↓ 5 callersFunction_comment_block
(module: Path)
scripts/gen_structure_docs.py:35
↓ 5 callersMethod_format_new_value
(self, *, colors: bool = True)
packages/griffelib/src/griffe/_internal/diff.py:204
↓ 5 callersMethod_format_old_value
(self, *, colors: bool = True)
packages/griffelib/src/griffe/_internal/diff.py:201
↓ 5 callersFunction_load_git_info
(obj_dict: dict[str, Any])
packages/griffelib/src/griffe/_internal/encoders.py:141
↓ 5 callersFunction_merge_stubs_docstring
(obj: Object, stubs: Object)
packages/griffelib/src/griffe/_internal/merger.py:52
↓ 5 callersFunction_mro_paths
(cls: Class)
packages/griffelib/tests/test_inheritance.py:17
↓ 5 callersMethodfind_spec
Find the top-level parent module of a module. If a Path is passed, only try to find the module as a file path. If a string is passed,
packages/griffelib/src/griffe/_internal/finder.py:148
↓ 5 callersFunctionload
Load and return a Griffe object. In Griffe's context, loading means: - searching for a package, and finding it on the file system or as a bu
packages/griffelib/src/griffe/_internal/loader.py:747
↓ 4 callersFunction_convert_type_to_annotation
(obj: Any, *, parent: Module | Class, member: str | None = None)
packages/griffelib/src/griffe/_internal/agents/inspector.py:703
↓ 4 callersFunction_environ
(**kwargs: str)
scripts/make.py:33
↓ 4 callersMethod_format_title
(self, *, colors: bool = True)
packages/griffelib/src/griffe/_internal/diff.py:193
↓ 4 callersFunction_get_public_api
(module: ModuleType, loader: griffe.GriffeLoader | None = None)
packages/griffelib/tests/test_api.py:57
↓ 4 callersFunction_is_dash_line
(line: str)
packages/griffelib/src/griffe/_internal/docstrings/numpy.py:95
↓ 4 callersFunction_load_modules
(*modules: ModuleType)
packages/griffelib/tests/test_api.py:34
↓ 4 callersFunction_pyprefix
(title: str)
duties.py:34
↓ 4 callersMethodexpand_wildcards
Expand wildcards: try to recursively expand all found wildcards. See also: [`Alias.wildcard`][griffe.Alias.wildcard]. Parameters:
packages/griffelib/src/griffe/_internal/loader.py:334
↓ 4 callersFunctionfind_breaking_changes
Find breaking changes between two versions of the same API. The function will iterate recursively on all objects and yield breaking changes w
packages/griffelib/src/griffe/_internal/diff.py:682
↓ 4 callersMethodfind_package
Find a package or namespace package. Parameters: module_name: The module name. Raises: ModuleNotFoundError:
packages/griffelib/src/griffe/_internal/finder.py:231
↓ 4 callersMethodgeneric_visit
Extend the base generic visit with extensions. Parameters: node: The node to visit.
packages/griffelib/src/griffe/_internal/agents/visitor.py:268
↓ 4 callersMethodhas_labels
Tell if this object has all the given labels. See also: [`labels`][griffe.Alias.labels]. Parameters: *labels: Labels tha
packages/griffelib/src/griffe/_internal/models.py:1764
↓ 4 callersMethodkeys
Return the collection keys. Returns: The collection keys.
packages/griffelib/src/griffe/_internal/collections.py:40
↓ 4 callersMethodmro
Return a list of classes in order corresponding to Python's MRO.
packages/griffelib/src/griffe/_internal/models.py:2048
↓ 4 callersFunctionmultirun
Run a command for all configured Python versions. ```bash make multirun <CMD> [ARG...] ``` This command runs an arbitrary command in
scripts/make.py:184
↓ 4 callersMethodparse
Parse the docstring into structured data. See also: [`parser`][griffe.Docstring.parser], [`parser_options`][griffe.Docstring.parser_o
packages/griffelib/src/griffe/_internal/models.py:165
↓ 4 callersFunctiontemporary_inspected_package
Create and inspect a temporary package. Parameters: package: The package name. Example: `"a"` gives a package named `a`, whil
packages/griffelib/src/griffe/_internal/helpers.py:189
↓ 3 callersFunction_annotation_from_parent
( docstring: Docstring, *, gen_index: Literal[0, 1, 2], multiple: bool = False, index: int
packages/griffelib/src/griffe/_internal/docstrings/google.py:618
↓ 3 callersFunction_append_section
(sections: list, current: list[str], admonition_title: str)
packages/griffelib/src/griffe/_internal/docstrings/numpy.py:857
↓ 3 callersFunction_attach_parent_to_exprs
(obj: Class | Function | Attribute | TypeAlias, parent: Module | Class)
packages/griffelib/src/griffe/_internal/encoders.py:160
↓ 3 callersFunction_consolidate_descriptive_type
(descriptive_type: str)
packages/griffelib/src/griffe/_internal/docstrings/sphinx.py:470
↓ 3 callersFunction_convert_object_to_annotation
(obj: Any, *, parent: Module | Class, member: str | None = None)
packages/griffelib/src/griffe/_internal/agents/inspector.py:624
↓ 3 callersFunction_convert_type_parameters
( obj: Any, *, parent: Module | Class, member: str | None = None, )
packages/griffelib/src/griffe/_internal/agents/inspector.py:660
↓ 3 callersFunction_dataclass_decorator
(decorators: list[Decorator])
packages/griffelib/src/griffe/_internal/extensions/dataclasses.py:25
↓ 3 callersFunction_get_internal_api
(module: ModuleType, loader: griffe.GriffeLoader | None = None)
packages/griffelib/tests/test_api.py:47
↓ 3 callersMethod_get_linenos
(self, node: ObjectNode)
packages/griffelib/src/griffe/_internal/agents/inspector.py:196
↓ 3 callersFunction_get_name_annotation_description
( docstring: Docstring, line_number: int, lines: list[str], *, named: bool = True, war
packages/griffelib/src/griffe/_internal/docstrings/google.py:587
↓ 3 callersMethod_get_type_parameters
( self, node: ast.FunctionDef | ast.AsyncFunctionDef | ast.ClassDef | ast.TypeAlias,
packages/griffelib/src/griffe/_internal/agents/visitor.py:217
↓ 3 callersFunction_handle_pth_file
(path: Path)
packages/griffelib/src/griffe/_internal/finder.py:440
↓ 3 callersMethod_inspect_module
(self, module_name: str, filepath: Path | None = None, parent: Module | None = None)
packages/griffelib/src/griffe/_internal/loader.py:681
↓ 3 callersMethod_load_module
( self, module_name: str, module_path: Path | list[Path], *, submodule
packages/griffelib/src/griffe/_internal/loader.py:554
↓ 3 callersFunction_match_pattern
(string: str, patterns: Sequence[Pattern])
packages/griffelib/src/griffe/_internal/finder.py:51
↓ 3 callersFunction_member_incompatibilities
( old_obj: Object | Alias, new_obj: Object | Alias, *, seen_paths: set[str] | None = None, )
packages/griffelib/src/griffe/_internal/diff.py:600
↓ 3 callersFunction_merge_stubs_type_parameters
(obj: Class | Function | TypeAlias, stubs: Class | Function | TypeAlias)
packages/griffelib/src/griffe/_internal/merger.py:57
↓ 3 callersFunction_norm_name
(name: str)
scripts/gen_credits.py:45
↓ 3 callersFunction_read_block
(docstring: Docstring, *, offset: int, **options: Any)
packages/griffelib/src/griffe/_internal/docstrings/google.py:156
↓ 3 callersFunction_read_block_items_maybe
( docstring: Docstring, *, offset: int, multiple: bool = True, **options: Any, )
packages/griffelib/src/griffe/_internal/docstrings/google.py:574
↓ 3 callersFunction_run
(version: str, cmd: str, *args: str, **kwargs: Any)
scripts/make.py:51
↓ 3 callersMethoddel_member
Delete a member with its name or path. This method is part of the producer API: you can use it safely while building Griffe trees
packages/griffelib/src/griffe/_internal/mixins.py:114
↓ 3 callersFunctiondynamic_import
Dynamically import the specified object. It can be a module, class, method, function, attribute, type alias, nested arbitrarily. It work
packages/griffelib/src/griffe/_internal/importer.py:43
next →1–100 of 1,229, ranked by callers