MkPyDeps
Node for showing a Dependency graph.¶
Bases: MkNode
__init__
¶
__init__(
module: str | PathLike | ModuleType | None = None,
*,
max_bacon: int | None = None,
max_module_depth: int | None = None,
only_cycles: bool = False,
clusters: bool = False,
**kwargs: Any
)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
module
|
str | PathLike | ModuleType | None
|
Path to the module |
None
|
max_bacon
|
int | None
|
Max bacon |
None
|
max_module_depth
|
int | None
|
Maximum module depth to display |
None
|
only_cycles
|
bool
|
Only show import cycles |
False
|
clusters
|
bool
|
draw external dependencies as separate clusters |
False
|
kwargs
|
Any
|
Keyword arguments passed to parent |
{}
|
| Name | Children | Inherits |
|---|---|---|
| MkNode mknodes.basenodes.mknode Base class for everything which can be expressed as Markup. |
graph TD
94396151127152["mkpydeps.MkPyDeps"]
94396150626816["mknode.MkNode"]
94396150902384["node.Node"]
140181802719712["builtins.object"]
94396150626816 --> 94396151127152
94396150902384 --> 94396150626816
140181802719712 --> 94396150902384
/home/runner/work/mknodes/mknodes/mknodes/templatenodes/mkpydeps/metadata.toml
[metadata]
name = "MkPyDeps"
icon = "mdi:code-json"
group = "documentation"
# [examples.regular]
# condition = "{{ 'CI' | getenv }}"
# title = "Regular"
# jinja = """
# {{ "mknodes/data/tools.py" | MkPyDeps(max_bacon=1, max_module_depth=1) }}
# """
# [output.markdown]
# template = """
# <body>
# {{ node.svg }}
# </body>
# """