MkDependencyTableΒΆ
Node for a table showing dependencies for a package.ΒΆ
Example: From Project
Jinja
{{ mk.MkDependencyTable() }}
Python
MkDependencyTable()
Name |
Summary |
Marker |
|---|---|---|
Simple, flexible badge generator for project badges. |
||
Compatibility layer for some basic operations to allow painless operation in PyOdide and Python pre-releases |
||
High-level concurrency and networking framework on top of asyncio or Trio |
||
Introspect Python CLI apps (Typer, Click, Cleo, Cappa, Cyclopts, argparse) into structured data. |
||
A color library for Python. |
||
Cached, generically typed registries for Python entry points, plus package/distribution name mapping |
||
Utilities for providing compatibility with many dataclass-like libraries |
||
File-system specification |
||
Automatic Changelog generator using Jinja2 templates. |
||
Unified Python client for GitHub, GitLab, Gitea, Azure DevOps and local Git repositories |
||
GitPython is a Python library used to interact with Git repositories |
||
Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API. |
||
A very fast and expressive template engine. |
||
Jinja2 toolkit: enhanced Environment, extra filters / tests, fsspec-based loaders and TOML JinjaFiles. |
||
The best Python observability tool! πͺ΅π₯ |
||
Python implementation of John Gruberβs Markdown. |
||
Safely add untrusted strings to HTML/XML markup. |
||
Simple yet flexible natural sorting in Python. |
||
Core utilities for Python packages |
||
Command line utility to show dependency tree of packages. |
||
A small Python package for determining appropriate platform-specific dirs, e.g. a |
||
Data validation using Python type hints |
||
Extension pack for Python Markdown. |
||
Pytest support for asyncio |
||
Read key-value pairs from a .env file and set them as environment variables |
||
YAML parser and emitter for Python |
||
Python HTTP for Humans. |
||
Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal |
||
A lilβ TOML writer |
||
Typer, build great CLIs. Easy to code. Based on Python type hints. |
||
pathlib api extended to use fsspec backends |
||
Async helpers, typed base classes and many filesystem implementations for fsspec and universal-pathlib |
||
Enhanced YAML loading and dumping. |
||
A modern static site generator built by the creators of Material for MkDocs |
||
Python port of markdown-it. Markdown parsing, done right! |
|
|
Collection of plugins for markdown-it-py |
|
|
One API for Python and Rust Markdown parsers with common options, plus HTML-to-Markdown conversion |
|
|
Pydantic-AI based Multi-Agent Framework with YAML-based Agents, Teams, Workflows & Extended ACP / AGUI integration |
|
|
Project documentation with Markdown. |
|
|
Documentation that simply works |
|
|
|
A clean customisable Sphinx documentation theme. |
|
An extended CommonMark compliant parser, |
|
|
Python documentation generator |
|
|
A sphinx extension for designing beautiful, view size responsive web components. |
|
| Name | Summary | Marker |
|--- | --- | --- |
| **<font size='3'>[anybadge](https://github.com/jongracecox/anybadge)</font>** | *Simple, flexible badge generator for project badges.* | |
| **<font size='3'>[anyenv](https://phil65.github.io/anyenv/)</font>** | *Compatibility layer for some basic operations to allow painless operation in PyOdide and Python pre-releases* | |
| **<font size='3'>[anyio](https://anyio.readthedocs.io/en/latest/)</font>** | *High-level concurrency and networking framework on top of asyncio or Trio* | |
| **<font size='3'>[clinspector](https://phil65.github.io/clinspector/)</font>** | *Introspect Python CLI apps (Typer, Click, Cleo, Cappa, Cyclopts, argparse) into structured data.* | |
| **<font size='3'>[coloraide](https://github.com/facelessuser/coloraide)</font>** | *A color library for Python.* | |
| **<font size='3'>[epregistry](https://github.com/phil65/epregistry)</font>** | *Cached, generically typed registries for Python entry points, plus package/distribution name mapping* | |
| **<font size='3'>[fieldz](https://github.com/pyapp-kit/fieldz)</font>** | *Utilities for providing compatibility with many dataclass-like libraries* | |
| **<font size='3'>[fsspec](https://github.com/fsspec/filesystem_spec)</font>** | *File-system specification* | |
| **<font size='3'>[git-changelog](https://pawamoy.github.io/git-changelog)</font>** | *Automatic Changelog generator using Jinja2 templates.* | |
| **<font size='3'>[githarbor](https://github.com/phil65/githarbor)</font>** | *Unified Python client for GitHub, GitLab, Gitea, Azure DevOps and local Git repositories* | |
| **<font size='3'>[GitPython](https://gitpython.readthedocs.io/en/stable/)</font>** | *GitPython is a Python library used to interact with Git repositories* | |
| **<font size='3'>[griffelib](https://mkdocstrings.github.io/griffe)</font>** | *Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API.* | |
| **<font size='3'>[Jinja2](https://jinja.palletsprojects.com/)</font>** | *A very fast and expressive template engine.* | |
| **<font size='3'>[jinjarope](https://phil65.github.io/jinjarope/)</font>** | *Jinja2 toolkit: enhanced Environment, extra filters / tests, fsspec-based loaders and TOML JinjaFiles.* | |
| **<font size='3'>[logfire-sdk](https://pydantic.dev/logfire)</font>** | *The best Python observability tool! πͺ΅π₯* | |
| **<font size='3'>[Markdown](https://Python-Markdown.github.io/)</font>** | *Python implementation of John Gruber's Markdown.* | |
| **<font size='3'>[MarkupSafe](https://markupsafe.palletsprojects.com/)</font>** | *Safely add untrusted strings to HTML/XML markup.* | |
| **<font size='3'>[natsort](https://github.com/SethMMorton/natsort)</font>** | *Simple yet flexible natural sorting in Python.* | |
| **<font size='3'>[packaging](https://packaging.pypa.io/)</font>** | *Core utilities for Python packages* | |
| **<font size='3'>[pipdeptree](https://github.com/tox-dev/pipdeptree)</font>** | *Command line utility to show dependency tree of packages.* | |
| **<font size='3'>[platformdirs](https://github.com/tox-dev/platformdirs)</font>** | *A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`.* | |
| **<font size='3'>[pydantic](https://github.com/pydantic/pydantic)</font>** | *Data validation using Python type hints* | |
| **<font size='3'>[pymdown-extensions](https://github.com/facelessuser/pymdown-extensions)</font>** | *Extension pack for Python Markdown.* | |
| **<font size='3'>[pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio)</font>** | *Pytest support for asyncio* | |
| **<font size='3'>[python-dotenv](https://github.com/theskumar/python-dotenv)</font>** | *Read key-value pairs from a .env file and set them as environment variables* | |
| **<font size='3'>[PyYAML](https://pyyaml.org/)</font>** | *YAML parser and emitter for Python* | |
| **<font size='3'>[requests](https://requests.readthedocs.io)</font>** | *Python HTTP for Humans.* | |
| **<font size='3'>[rich](https://github.com/Textualize/rich)</font>** | *Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal* | |
| **<font size='3'>[tomli_w](https://github.com/hukkin/tomli-w)</font>** | *A lil' TOML writer* | |
| **<font size='3'>[typer](https://github.com/fastapi/typer)</font>** | *Typer, build great CLIs. Easy to code. Based on Python type hints.* | |
| **<font size='3'>[universal_pathlib](https://github.com/fsspec/universal_pathlib)</font>** | *pathlib api extended to use fsspec backends* | |
| **<font size='3'>[upathtools](https://phil65.github.io/upathtools/)</font>** | *Async helpers, typed base classes and many filesystem implementations for fsspec and universal-pathlib* | |
| **<font size='3'>[yamling](https://phil65.github.io/yamling/)</font>** | *Enhanced YAML loading and dumping.* | |
| **<font size='3'>[zensical](https://zensical.org/)</font>** | *A modern static site generator built by the creators of Material for MkDocs* | |
| **<font size='3'>[markdown-it-py](https://github.com/executablebooks/markdown-it-py)</font>** | *Python port of markdown-it. Markdown parsing, done right!* | `extra == "html"` |
| **<font size='3'>[mdit-py-plugins](https://github.com/executablebooks/mdit-py-plugins)</font>** | *Collection of plugins for markdown-it-py* | `extra == "html"` |
| **<font size='3'>[mkconvert](https://phil65.github.io/mkconvert/)</font>** | *One API for Python and Rust Markdown parsers with common options, plus HTML-to-Markdown conversion* | `extra == "html"` |
| **<font size='3'>[agentpool](https://phil65.github.io/agentpool/)</font>** | *Pydantic-AI based Multi-Agent Framework with YAML-based Agents, Teams, Workflows & Extended ACP / AGUI integration* | `extra == "llm"` |
| **<font size='3'>[mkdocs](https://www.mkdocs.org/)</font>** | *Project documentation with Markdown.* | `extra == "mkdocs"` |
| **<font size='3'>[mkdocs-material](https://squidfunk.github.io/mkdocs-material/)</font>** | *Documentation that simply works* | `extra == "mkdocs"` |
| `**<font size='3'>furo</font>**` | *A clean customisable Sphinx documentation theme.* | `extra == "sphinx"` |
| **<font size='3'>[myst-parser](https://github.com/executablebooks/MyST-Parser)</font>** | *An extended [CommonMark](https://spec.commonmark.org/) compliant parser,* | `extra == "sphinx"` |
| **<font size='3'>[Sphinx](https://www.sphinx-doc.org/)</font>** | *Python documentation generator* | `extra == "sphinx"` |
| **<font size='3'>[sphinx_design](https://github.com/executablebooks/sphinx-design)</font>** | *A sphinx extension for designing beautiful, view size responsive web components.* | `extra == "sphinx"` |
<table>
<thead>
<tr>
<th>Name</th>
<th>Summary</th>
<th>Marker</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><font size='3'><a href="https://github.com/jongracecox/anybadge">anybadge</a></font></strong></td>
<td><em>Simple, flexible badge generator for project badges.</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://phil65.github.io/anyenv/">anyenv</a></font></strong></td>
<td><em>Compatibility layer for some basic operations to allow painless operation in PyOdide and Python pre-releases</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://anyio.readthedocs.io/en/latest/">anyio</a></font></strong></td>
<td><em>High-level concurrency and networking framework on top of asyncio or Trio</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://phil65.github.io/clinspector/">clinspector</a></font></strong></td>
<td><em>Introspect Python CLI apps (Typer, Click, Cleo, Cappa, Cyclopts, argparse) into structured data.</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/facelessuser/coloraide">coloraide</a></font></strong></td>
<td><em>A color library for Python.</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/phil65/epregistry">epregistry</a></font></strong></td>
<td><em>Cached, generically typed registries for Python entry points, plus package/distribution name mapping</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/pyapp-kit/fieldz">fieldz</a></font></strong></td>
<td><em>Utilities for providing compatibility with many dataclass-like libraries</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/fsspec/filesystem_spec">fsspec</a></font></strong></td>
<td><em>File-system specification</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://pawamoy.github.io/git-changelog">git-changelog</a></font></strong></td>
<td><em>Automatic Changelog generator using Jinja2 templates.</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/phil65/githarbor">githarbor</a></font></strong></td>
<td><em>Unified Python client for GitHub, GitLab, Gitea, Azure DevOps and local Git repositories</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://gitpython.readthedocs.io/en/stable/">GitPython</a></font></strong></td>
<td><em>GitPython is a Python library used to interact with Git repositories</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://mkdocstrings.github.io/griffe">griffelib</a></font></strong></td>
<td><em>Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API.</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://jinja.palletsprojects.com/">Jinja2</a></font></strong></td>
<td><em>A very fast and expressive template engine.</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://phil65.github.io/jinjarope/">jinjarope</a></font></strong></td>
<td><em>Jinja2 toolkit: enhanced Environment, extra filters / tests, fsspec-based loaders and TOML JinjaFiles.</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://pydantic.dev/logfire">logfire-sdk</a></font></strong></td>
<td><em>The best Python observability tool! πͺ΅π₯</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://Python-Markdown.github.io/">Markdown</a></font></strong></td>
<td><em>Python implementation of John Gruber's Markdown.</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://markupsafe.palletsprojects.com/">MarkupSafe</a></font></strong></td>
<td><em>Safely add untrusted strings to HTML/XML markup.</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/SethMMorton/natsort">natsort</a></font></strong></td>
<td><em>Simple yet flexible natural sorting in Python.</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://packaging.pypa.io/">packaging</a></font></strong></td>
<td><em>Core utilities for Python packages</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/tox-dev/pipdeptree">pipdeptree</a></font></strong></td>
<td><em>Command line utility to show dependency tree of packages.</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/tox-dev/platformdirs">platformdirs</a></font></strong></td>
<td><em>A small Python package for determining appropriate platform-specific dirs, e.g. a <code>user data dir</code>.</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/pydantic/pydantic">pydantic</a></font></strong></td>
<td><em>Data validation using Python type hints</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/facelessuser/pymdown-extensions">pymdown-extensions</a></font></strong></td>
<td><em>Extension pack for Python Markdown.</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/pytest-dev/pytest-asyncio">pytest-asyncio</a></font></strong></td>
<td><em>Pytest support for asyncio</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/theskumar/python-dotenv">python-dotenv</a></font></strong></td>
<td><em>Read key-value pairs from a .env file and set them as environment variables</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://pyyaml.org/">PyYAML</a></font></strong></td>
<td><em>YAML parser and emitter for Python</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://requests.readthedocs.io">requests</a></font></strong></td>
<td><em>Python HTTP for Humans.</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/Textualize/rich">rich</a></font></strong></td>
<td><em>Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/hukkin/tomli-w">tomli_w</a></font></strong></td>
<td><em>A lil' TOML writer</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/fastapi/typer">typer</a></font></strong></td>
<td><em>Typer, build great CLIs. Easy to code. Based on Python type hints.</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/fsspec/universal_pathlib">universal_pathlib</a></font></strong></td>
<td><em>pathlib api extended to use fsspec backends</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://phil65.github.io/upathtools/">upathtools</a></font></strong></td>
<td><em>Async helpers, typed base classes and many filesystem implementations for fsspec and universal-pathlib</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://phil65.github.io/yamling/">yamling</a></font></strong></td>
<td><em>Enhanced YAML loading and dumping.</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://zensical.org/">zensical</a></font></strong></td>
<td><em>A modern static site generator built by the creators of Material for MkDocs</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/executablebooks/markdown-it-py">markdown-it-py</a></font></strong></td>
<td><em>Python port of markdown-it. Markdown parsing, done right!</em></td>
<td><code>extra == "html"</code></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/executablebooks/mdit-py-plugins">mdit-py-plugins</a></font></strong></td>
<td><em>Collection of plugins for markdown-it-py</em></td>
<td><code>extra == "html"</code></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://phil65.github.io/mkconvert/">mkconvert</a></font></strong></td>
<td><em>One API for Python and Rust Markdown parsers with common options, plus HTML-to-Markdown conversion</em></td>
<td><code>extra == "html"</code></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://phil65.github.io/agentpool/">agentpool</a></font></strong></td>
<td><em>Pydantic-AI based Multi-Agent Framework with YAML-based Agents, Teams, Workflows & Extended ACP / AGUI integration</em></td>
<td><code>extra == "llm"</code></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://www.mkdocs.org/">mkdocs</a></font></strong></td>
<td><em>Project documentation with Markdown.</em></td>
<td><code>extra == "mkdocs"</code></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://squidfunk.github.io/mkdocs-material/">mkdocs-material</a></font></strong></td>
<td><em>Documentation that simply works</em></td>
<td><code>extra == "mkdocs"</code></td>
</tr>
<tr>
<td><code>**<font size='3'>furo</font>**</code></td>
<td><em>A clean customisable Sphinx documentation theme.</em></td>
<td><code>extra == "sphinx"</code></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/executablebooks/MyST-Parser">myst-parser</a></font></strong></td>
<td><em>An extended <a href="https://spec.commonmark.org/">CommonMark</a> compliant parser,</em></td>
<td><code>extra == "sphinx"</code></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://www.sphinx-doc.org/">Sphinx</a></font></strong></td>
<td><em>Python documentation generator</em></td>
<td><code>extra == "sphinx"</code></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/executablebooks/sphinx-design">sphinx_design</a></font></strong></td>
<td><em>A sphinx extension for designing beautiful, view size responsive web components.</em></td>
<td><code>extra == "sphinx"</code></td>
</tr>
</tbody>
</table>
MkDependencyTable
βββ MkLink('https://github.com/jongracecox/anybadge', 'anybadge')
βββ MkLink('https://phil65.github.io/anyenv/', 'anyenv')
βββ MkLink('https://anyio.readthedocs.io/en/latest/', 'anyio')
βββ MkLink('https://phil65.github.io/clinspector/', 'clinspector')
βββ MkLink('https://github.com/facelessuser/coloraide', 'coloraide')
βββ MkLink('https://github.com/phil65/epregistry', 'epregistry')
βββ MkLink('https://github.com/pyapp-kit/fieldz', 'fieldz')
βββ MkLink('https://github.com/fsspec/filesystem_spec', 'fsspec')
βββ MkLink('https://pawamoy.github.io/git-changelog', 'git-changelog')
βββ MkLink('https://github.com/phil65/githarbor', 'githarbor')
βββ MkLink('https://gitpython.readthedocs.io/en/stable/', 'GitPython')
βββ MkLink('https://mkdocstrings.github.io/griffe', 'griffelib')
βββ MkLink('https://jinja.palletsprojects.com/', 'Jinja2')
βββ MkLink('https://phil65.github.io/jinjarope/', 'jinjarope')
βββ MkLink('https://pydantic.dev/logfire', 'logfire-sdk')
βββ MkLink('https://Python-Markdown.github.io/', 'Markdown')
βββ MkLink('https://markupsafe.palletsprojects.com/', 'MarkupSafe')
βββ MkLink('https://github.com/SethMMorton/natsort', 'natsort')
βββ MkLink('https://packaging.pypa.io/', 'packaging')
βββ MkLink('https://github.com/tox-dev/pipdeptree', 'pipdeptree')
βββ MkLink('https://github.com/tox-dev/platformdirs', 'platformdirs')
βββ MkLink('https://github.com/pydantic/pydantic', 'pydantic')
βββ MkLink('https://github.com/facelessuser/pymdown-extensions', 'pymdown-extensions')
βββ MkLink('https://github.com/pytest-dev/pytest-asyncio', 'pytest-asyncio')
βββ MkLink('https://github.com/theskumar/python-dotenv', 'python-dotenv')
βββ MkLink('https://pyyaml.org/', 'PyYAML')
βββ MkLink('https://requests.readthedocs.io', 'requests')
βββ MkLink('https://github.com/Textualize/rich', 'rich')
βββ MkLink('https://github.com/hukkin/tomli-w', 'tomli_w')
βββ MkLink('https://github.com/fastapi/typer', 'typer')
βββ MkLink('https://github.com/fsspec/universal_pathlib', 'universal_pathlib')
βββ MkLink('https://phil65.github.io/upathtools/', 'upathtools')
βββ MkLink('https://phil65.github.io/yamling/', 'yamling')
βββ MkLink('https://zensical.org/', 'zensical')
βββ MkLink('https://github.com/executablebooks/markdown-it-py', 'markdown-it-py')
βββ MkLink('https://github.com/executablebooks/mdit-py-plugins', 'mdit-py-plugins')
βββ MkLink('https://phil65.github.io/mkconvert/', 'mkconvert')
βββ MkLink('https://phil65.github.io/agentpool/', 'agentpool')
βββ MkLink('https://www.mkdocs.org/', 'mkdocs')
βββ MkLink('https://squidfunk.github.io/mkdocs-material/', 'mkdocs-material')
βββ MkLink('https://github.com/executablebooks/MyST-Parser', 'myst-parser')
βββ MkLink('https://www.sphinx-doc.org/', 'Sphinx')
β°ββ MkLink('https://github.com/executablebooks/sphinx-design', 'sphinx_design')
Example: Explicit package
Jinja
{{ "jinja2" | MkDependencyTable }}
Python
MkDependencyTable('jinja2')
Name |
Summary |
Marker |
|---|---|---|
Safely add untrusted strings to HTML/XML markup. |
||
Internationalization utilities |
|
| Name | Summary | Marker |
|--- | --- | --- |
| **<font size='3'>[MarkupSafe](https://markupsafe.palletsprojects.com/)</font>** | *Safely add untrusted strings to HTML/XML markup.* | |
| **<font size='3'>[babel](https://babel.pocoo.org/)</font>** | *Internationalization utilities* | `extra == "i18n"` |
<table>
<thead>
<tr>
<th>Name</th>
<th>Summary</th>
<th>Marker</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><font size='3'><a href="https://markupsafe.palletsprojects.com/">MarkupSafe</a></font></strong></td>
<td><em>Safely add untrusted strings to HTML/XML markup.</em></td>
<td></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://babel.pocoo.org/">babel</a></font></strong></td>
<td><em>Internationalization utilities</em></td>
<td><code>extra == "i18n"</code></td>
</tr>
</tbody>
</table>
MkDependencyTable
βββ MkLink('https://markupsafe.palletsprojects.com/', 'MarkupSafe')
β°ββ MkLink('https://babel.pocoo.org/', 'babel')
Example: Badge style
Jinja
{{ "mkdocs" | MkDependencyTable(layout="badge") }}
Python
MkDependencyTable('mkdocs', layout='badge')
| Name | Summary |
|--- | --- |
| **<font size='3'>[click](https://click.palletsprojects.com/)</font>**<br> | *Composable command line interface toolkit*<br>[](https://click.palletsprojects.com/page/changes/) [](https://discord.gg/pallets) [](https://click.palletsprojects.com/) [](https://palletsprojects.com/donate) [](https://github.com/pallets/click/) |
| **<font size='3'>[colorama](https://github.com/tartley/colorama)</font>**<br>`platform_system == "Windows"` | *Cross-platform colored terminal text.*<br>[](https://github.com/tartley/colorama) |
| **<font size='3'>[ghp-import](https://github.com/c-w/ghp-import)</font>**<br> | *Copy your docs directly to the gh-pages branch.*<br>[](https://github.com/c-w/ghp-import) |
| **<font size='3'>[Jinja2](https://jinja.palletsprojects.com/)</font>**<br> | *A very fast and expressive template engine.*<br>[](https://jinja.palletsprojects.com/changes/) [](https://discord.gg/pallets) [](https://jinja.palletsprojects.com/) [](https://palletsprojects.com/donate) [](https://github.com/pallets/jinja/) |
| **<font size='3'>[Markdown](https://Python-Markdown.github.io/)</font>**<br> | *Python implementation of John Gruber's Markdown.*<br>[](https://Python-Markdown.github.io/) [](https://Python-Markdown.github.io/) [](https://github.com/Python-Markdown/markdown) [](https://github.com/Python-Markdown/markdown/issues) [](https://python-markdown.github.io/changelog/) |
| **<font size='3'>[MarkupSafe](https://markupsafe.palletsprojects.com/)</font>**<br> | *Safely add untrusted strings to HTML/XML markup.*<br>[](https://palletsprojects.com/donate) [](https://markupsafe.palletsprojects.com/) [](https://markupsafe.palletsprojects.com/page/changes/) [](https://github.com/pallets/markupsafe/) [](https://discord.gg/pallets) |
| **<font size='3'>[mergedeep](https://github.com/clarketm/mergedeep)</font>**<br> | *A deep merge function for π.*<br>[](https://github.com/clarketm/mergedeep) |
| **<font size='3'>[mkdocs-get-deps](https://github.com/mkdocs/get-deps)</font>**<br> | *An extra command for MkDocs that infers required PyPI packages from `plugins` in mkdocs.yml*<br>[](https://github.com/mkdocs/get-deps) [](https://github.com/mkdocs/get-deps/issues) [](https://github.com/mkdocs/get-deps/releases) |
| **<font size='3'>[packaging](https://packaging.pypa.io/)</font>**<br> | *Core utilities for Python packages*<br>[](https://packaging.pypa.io/) [](https://github.com/pypa/packaging) |
| **<font size='3'>[pathspec](https://python-path-specification.readthedocs.io/en/latest/index.html)</font>**<br> | *Utility library for gitignore style pattern matching of file paths.*<br>[](https://python-path-specification.readthedocs.io/en/latest/changes.html) [](https://python-path-specification.readthedocs.io/en/latest/index.html) [](https://github.com/cpburnz/python-pathspec/issues) [](https://github.com/cpburnz/python-pathspec) |
| **<font size='3'>[pyyaml_env_tag](https://github.com/waylan/pyyaml-env-tag)</font>**<br> | *A custom YAML tag for referencing environment variables in YAML files.*<br>[](https://github.com/waylan/pyyaml-env-tag) [](https://github.com/waylan/pyyaml-env-tag) [](https://github.com/waylan/pyyaml-env-tag/issues) |
| **<font size='3'>[PyYAML](https://pyyaml.org/)</font>**<br> | *YAML parser and emitter for Python*<br>[](https://github.com/yaml/pyyaml/issues) [](https://github.com/yaml/pyyaml/actions) [](https://pyyaml.org/wiki/PyYAMLDocumentation) [](http://lists.sourceforge.net/lists/listinfo/yaml-core) [](https://github.com/yaml/pyyaml) [](https://pyyaml.org/) |
| **<font size='3'>[watchdog](https://github.com/gorakhargosh/watchdog)</font>**<br> | *Filesystem events monitoring*<br>[](https://python-watchdog.readthedocs.io/en/stable/) [](https://github.com/gorakhargosh/watchdog/) [](https://github.com/gorakhargosh/watchdog/issues) [](https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst) [](https://github.com/gorakhargosh/watchdog) |
| **<font size='3'>[babel](https://babel.pocoo.org/)</font>**<br>`extra == "i18n"` | *Internationalization utilities*<br>[](https://babel.pocoo.org/) [](https://github.com/python-babel/babel) |
<table>
<thead>
<tr>
<th>Name</th>
<th>Summary</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><font size='3'><a href="https://click.palletsprojects.com/">click</a></font></strong><br></td>
<td><em>Composable command line interface toolkit</em><br><a href="https://click.palletsprojects.com/page/changes/"><img src="https://img.shields.io/badge/Changes-click.palletsprojects.com-4051b5" alt="Changes: click.palletsprojects.com" /></a> <a href="https://discord.gg/pallets"><img src="https://img.shields.io/badge/Chat-discord.gg-4051b5" alt="Chat: discord.gg" /></a> <a href="https://click.palletsprojects.com/"><img src="https://img.shields.io/badge/Documentation-click.palletsprojects.com-4051b5" alt="Documentation: click.palletsprojects.com" /></a> <a href="https://palletsprojects.com/donate"><img src="https://img.shields.io/badge/Donate-palletsprojects.com-4051b5" alt="Donate: palletsprojects.com" /></a> <a href="https://github.com/pallets/click/"><img src="https://img.shields.io/badge/Source-github.com-4051b5" alt="Source: github.com" /></a></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/tartley/colorama">colorama</a></font></strong><br><code>platform_system == "Windows"</code></td>
<td><em>Cross-platform colored terminal text.</em><br><a href="https://github.com/tartley/colorama"><img src="https://img.shields.io/badge/Homepage-github.com-4051b5" alt="Homepage: github.com" /></a></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/c-w/ghp-import">ghp-import</a></font></strong><br></td>
<td><em>Copy your docs directly to the gh-pages branch.</em><br><a href="https://github.com/c-w/ghp-import"><img src="https://img.shields.io/badge/home__page-github.com-4051b5" alt="home_page: github.com" /></a></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://jinja.palletsprojects.com/">Jinja2</a></font></strong><br></td>
<td><em>A very fast and expressive template engine.</em><br><a href="https://jinja.palletsprojects.com/changes/"><img src="https://img.shields.io/badge/Changes-jinja.palletsprojects.com-4051b5" alt="Changes: jinja.palletsprojects.com" /></a> <a href="https://discord.gg/pallets"><img src="https://img.shields.io/badge/Chat-discord.gg-4051b5" alt="Chat: discord.gg" /></a> <a href="https://jinja.palletsprojects.com/"><img src="https://img.shields.io/badge/Documentation-jinja.palletsprojects.com-4051b5" alt="Documentation: jinja.palletsprojects.com" /></a> <a href="https://palletsprojects.com/donate"><img src="https://img.shields.io/badge/Donate-palletsprojects.com-4051b5" alt="Donate: palletsprojects.com" /></a> <a href="https://github.com/pallets/jinja/"><img src="https://img.shields.io/badge/Source-github.com-4051b5" alt="Source: github.com" /></a></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://Python-Markdown.github.io/">Markdown</a></font></strong><br></td>
<td><em>Python implementation of John Gruber's Markdown.</em><br><a href="https://Python-Markdown.github.io/"><img src="https://img.shields.io/badge/Homepage-Python--Markdown.github.io-4051b5" alt="Homepage: Python-Markdown.github.io" /></a> <a href="https://Python-Markdown.github.io/"><img src="https://img.shields.io/badge/Documentation-Python--Markdown.github.io-4051b5" alt="Documentation: Python-Markdown.github.io" /></a> <a href="https://github.com/Python-Markdown/markdown"><img src="https://img.shields.io/badge/Repository-github.com-4051b5" alt="Repository: github.com" /></a> <a href="https://github.com/Python-Markdown/markdown/issues"><img src="https://img.shields.io/badge/Issue%20Tracker-github.com-4051b5" alt="Issue Tracker: github.com" /></a> <a href="https://python-markdown.github.io/changelog/"><img src="https://img.shields.io/badge/Changelog-python--markdown.github.io-4051b5" alt="Changelog: python-markdown.github.io" /></a></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://markupsafe.palletsprojects.com/">MarkupSafe</a></font></strong><br></td>
<td><em>Safely add untrusted strings to HTML/XML markup.</em><br><a href="https://palletsprojects.com/donate"><img src="https://img.shields.io/badge/Donate-palletsprojects.com-4051b5" alt="Donate: palletsprojects.com" /></a> <a href="https://markupsafe.palletsprojects.com/"><img src="https://img.shields.io/badge/Documentation-markupsafe.palletsprojects.com-4051b5" alt="Documentation: markupsafe.palletsprojects.com" /></a> <a href="https://markupsafe.palletsprojects.com/page/changes/"><img src="https://img.shields.io/badge/Changes-markupsafe.palletsprojects.com-4051b5" alt="Changes: markupsafe.palletsprojects.com" /></a> <a href="https://github.com/pallets/markupsafe/"><img src="https://img.shields.io/badge/Source-github.com-4051b5" alt="Source: github.com" /></a> <a href="https://discord.gg/pallets"><img src="https://img.shields.io/badge/Chat-discord.gg-4051b5" alt="Chat: discord.gg" /></a></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/clarketm/mergedeep">mergedeep</a></font></strong><br></td>
<td><em>A deep merge function for π.</em><br><a href="https://github.com/clarketm/mergedeep"><img src="https://img.shields.io/badge/home__page-github.com-4051b5" alt="home_page: github.com" /></a></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/mkdocs/get-deps">mkdocs-get-deps</a></font></strong><br></td>
<td><em>An extra command for MkDocs that infers required PyPI packages from <code>plugins</code> in mkdocs.yml</em><br><a href="https://github.com/mkdocs/get-deps"><img src="https://img.shields.io/badge/Source-github.com-4051b5" alt="Source: github.com" /></a> <a href="https://github.com/mkdocs/get-deps/issues"><img src="https://img.shields.io/badge/Issues-github.com-4051b5" alt="Issues: github.com" /></a> <a href="https://github.com/mkdocs/get-deps/releases"><img src="https://img.shields.io/badge/History-github.com-4051b5" alt="History: github.com" /></a></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://packaging.pypa.io/">packaging</a></font></strong><br></td>
<td><em>Core utilities for Python packages</em><br><a href="https://packaging.pypa.io/"><img src="https://img.shields.io/badge/Documentation-packaging.pypa.io-4051b5" alt="Documentation: packaging.pypa.io" /></a> <a href="https://github.com/pypa/packaging"><img src="https://img.shields.io/badge/Source-github.com-4051b5" alt="Source: github.com" /></a></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://python-path-specification.readthedocs.io/en/latest/index.html">pathspec</a></font></strong><br></td>
<td><em>Utility library for gitignore style pattern matching of file paths.</em><br><a href="https://python-path-specification.readthedocs.io/en/latest/changes.html"><img src="https://img.shields.io/badge/Change%20Log-python--path--specification.readthedocs.io-4051b5" alt="Change Log: python-path-specification.readthedocs.io" /></a> <a href="https://python-path-specification.readthedocs.io/en/latest/index.html"><img src="https://img.shields.io/badge/Documentation-python--path--specification.readthedocs.io-4051b5" alt="Documentation: python-path-specification.readthedocs.io" /></a> <a href="https://github.com/cpburnz/python-pathspec/issues"><img src="https://img.shields.io/badge/Issue%20Tracker-github.com-4051b5" alt="Issue Tracker: github.com" /></a> <a href="https://github.com/cpburnz/python-pathspec"><img src="https://img.shields.io/badge/Source%20Code-github.com-4051b5" alt="Source Code: github.com" /></a></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/waylan/pyyaml-env-tag">pyyaml_env_tag</a></font></strong><br></td>
<td><em>A custom YAML tag for referencing environment variables in YAML files.</em><br><a href="https://github.com/waylan/pyyaml-env-tag"><img src="https://img.shields.io/badge/Homepage-github.com-4051b5" alt="Homepage: github.com" /></a> <a href="https://github.com/waylan/pyyaml-env-tag"><img src="https://img.shields.io/badge/Repository-github.com-4051b5" alt="Repository: github.com" /></a> <a href="https://github.com/waylan/pyyaml-env-tag/issues"><img src="https://img.shields.io/badge/Bug%20Tracker-github.com-4051b5" alt="Bug Tracker: github.com" /></a></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://pyyaml.org/">PyYAML</a></font></strong><br></td>
<td><em>YAML parser and emitter for Python</em><br><a href="https://github.com/yaml/pyyaml/issues"><img src="https://img.shields.io/badge/Bug%20Tracker-github.com-4051b5" alt="Bug Tracker: github.com" /></a> <a href="https://github.com/yaml/pyyaml/actions"><img src="https://img.shields.io/badge/CI-github.com-4051b5" alt="CI: github.com" /></a> <a href="https://pyyaml.org/wiki/PyYAMLDocumentation"><img src="https://img.shields.io/badge/Documentation-pyyaml.org-4051b5" alt="Documentation: pyyaml.org" /></a> <a href="http://lists.sourceforge.net/lists/listinfo/yaml-core"><img src="https://img.shields.io/badge/Mailing%20lists-lists.sourceforge.net-4051b5" alt="Mailing lists: lists.sourceforge.net" /></a> <a href="https://github.com/yaml/pyyaml"><img src="https://img.shields.io/badge/Source%20Code-github.com-4051b5" alt="Source Code: github.com" /></a> <a href="https://pyyaml.org/"><img src="https://img.shields.io/badge/home__page-pyyaml.org-4051b5" alt="home_page: pyyaml.org" /></a></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://github.com/gorakhargosh/watchdog">watchdog</a></font></strong><br></td>
<td><em>Filesystem events monitoring</em><br><a href="https://python-watchdog.readthedocs.io/en/stable/"><img src="https://img.shields.io/badge/Documentation-python--watchdog.readthedocs.io-4051b5" alt="Documentation: python-watchdog.readthedocs.io" /></a> <a href="https://github.com/gorakhargosh/watchdog/"><img src="https://img.shields.io/badge/Source-github.com-4051b5" alt="Source: github.com" /></a> <a href="https://github.com/gorakhargosh/watchdog/issues"><img src="https://img.shields.io/badge/Issues-github.com-4051b5" alt="Issues: github.com" /></a> <a href="https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst"><img src="https://img.shields.io/badge/Changelog-github.com-4051b5" alt="Changelog: github.com" /></a> <a href="https://github.com/gorakhargosh/watchdog"><img src="https://img.shields.io/badge/home__page-github.com-4051b5" alt="home_page: github.com" /></a></td>
</tr>
<tr>
<td><strong><font size='3'><a href="https://babel.pocoo.org/">babel</a></font></strong><br><code>extra == "i18n"</code></td>
<td><em>Internationalization utilities</em><br><a href="https://babel.pocoo.org/"><img src="https://img.shields.io/badge/Homepage-babel.pocoo.org-4051b5" alt="Homepage: babel.pocoo.org" /></a> <a href="https://github.com/python-babel/babel"><img src="https://img.shields.io/badge/Source-github.com-4051b5" alt="Source: github.com" /></a></td>
</tr>
</tbody>
</table>
MkDependencyTable
βββ MkLink('https://click.palletsprojects.com/', 'click')
βββ MkMetadataBadges('websites', package='click', block_separator=' ')
β βββ MkBadge('Changes', 'click.palletsprojects.com')
β βββ MkBadge('Chat', 'discord.gg')
β βββ MkBadge('Documentation', 'click.palletsprojects.com')
β βββ MkBadge('Donate', 'palletsprojects.com')
β β°ββ MkBadge('Source', 'github.com')
βββ MkLink('https://github.com/tartley/colorama', 'colorama')
βββ MkMetadataBadges('websites', package='colorama', block_separator=' ')
β β°ββ MkBadge('Homepage', 'github.com')
βββ MkLink('https://github.com/c-w/ghp-import', 'ghp-import')
βββ MkMetadataBadges('websites', package='ghp-import', block_separator=' ')
β β°ββ MkBadge('home_page', 'github.com')
βββ MkLink('https://jinja.palletsprojects.com/', 'Jinja2')
βββ MkMetadataBadges('websites', package='Jinja2', block_separator=' ')
β βββ MkBadge('Changes', 'jinja.palletsprojects.com')
β βββ MkBadge('Chat', 'discord.gg')
β βββ MkBadge('Documentation', 'jinja.palletsprojects.com')
β βββ MkBadge('Donate', 'palletsprojects.com')
β β°ββ MkBadge('Source', 'github.com')
βββ MkLink('https://Python-Markdown.github.io/', 'Markdown')
βββ MkMetadataBadges('websites', package='Markdown', block_separator=' ')
β βββ MkBadge('Homepage', 'Python-Markdown.github.io')
β βββ MkBadge('Documentation', 'Python-Markdown.github.io')
β βββ MkBadge('Repository', 'github.com')
β βββ MkBadge('Issue Tracker', 'github.com')
β β°ββ MkBadge('Changelog', 'python-markdown.github.io')
βββ MkLink('https://markupsafe.palletsprojects.com/', 'MarkupSafe')
βββ MkMetadataBadges('websites', package='MarkupSafe', block_separator=' ')
β βββ MkBadge('Donate', 'palletsprojects.com')
β βββ MkBadge('Documentation', 'markupsafe.palletsprojects.com')
β βββ MkBadge('Changes', 'markupsafe.palletsprojects.com')
β βββ MkBadge('Source', 'github.com')
β β°ββ MkBadge('Chat', 'discord.gg')
βββ MkLink('https://github.com/clarketm/mergedeep', 'mergedeep')
βββ MkMetadataBadges('websites', package='mergedeep', block_separator=' ')
β β°ββ MkBadge('home_page', 'github.com')
βββ MkLink('https://github.com/mkdocs/get-deps', 'mkdocs-get-deps')
βββ MkMetadataBadges('websites', package='mkdocs-get-deps', block_separator=' ')
β βββ MkBadge('Source', 'github.com')
β βββ MkBadge('Issues', 'github.com')
β β°ββ MkBadge('History', 'github.com')
βββ MkLink('https://packaging.pypa.io/', 'packaging')
βββ MkMetadataBadges('websites', package='packaging', block_separator=' ')
β βββ MkBadge('Documentation', 'packaging.pypa.io')
β β°ββ MkBadge('Source', 'github.com')
βββ MkLink('https://python-path-specification.readthedocs.io/en/latest/index.html', 'pathspec')
βββ MkMetadataBadges('websites', package='pathspec', block_separator=' ')
β βββ MkBadge('Change Log', 'python-path-specification.readthedocs.io')
β βββ MkBadge('Documentation', 'python-path-specification.readthedocs.io')
β βββ MkBadge('Issue Tracker', 'github.com')
β β°ββ MkBadge('Source Code', 'github.com')
βββ MkLink('https://github.com/waylan/pyyaml-env-tag', 'pyyaml_env_tag')
βββ MkMetadataBadges('websites', package='pyyaml_env_tag', block_separator=' ')
β βββ MkBadge('Homepage', 'github.com')
β βββ MkBadge('Repository', 'github.com')
β β°ββ MkBadge('Bug Tracker', 'github.com')
βββ MkLink('https://pyyaml.org/', 'PyYAML')
βββ MkMetadataBadges('websites', package='PyYAML', block_separator=' ')
β βββ MkBadge('Bug Tracker', 'github.com')
β βββ MkBadge('CI', 'github.com')
β βββ MkBadge('Documentation', 'pyyaml.org')
β βββ MkBadge('Mailing lists', 'lists.sourceforge.net')
β βββ MkBadge('Source Code', 'github.com')
β β°ββ MkBadge('home_page', 'pyyaml.org')
βββ MkLink('https://github.com/gorakhargosh/watchdog', 'watchdog')
βββ MkMetadataBadges('websites', package='watchdog', block_separator=' ')
β βββ MkBadge('Documentation', 'python-watchdog.readthedocs.io')
β βββ MkBadge('Source', 'github.com')
β βββ MkBadge('Issues', 'github.com')
β βββ MkBadge('Changelog', 'github.com')
β β°ββ MkBadge('home_page', 'github.com')
βββ MkLink('https://babel.pocoo.org/', 'babel')
β°ββ MkMetadataBadges('websites', package='babel', block_separator=' ')
βββ MkBadge('Homepage', 'babel.pocoo.org')
β°ββ MkBadge('Source', 'github.com')
Name |
Children |
Inherits |
|---|---|---|
MkTemplateTable |
graph TD
753441108["mkdependencytable.MkDependencyTable"]
1225063181["mktemplatetable.MkTemplateTable"]
1359323199["mknode.MkNode"]
2751680898["builtins.object"]
1225063181 --> 753441108
1359323199 --> 1225063181
2751680898 --> 1359323199
[metadata]
icon = "mdi:database"
name = "MkDependencyTable"
[requirements.extension.tables]
[examples.from_project]
title = "From Project"
jinja = """
{{ mk.MkDependencyTable() }}
"""
[examples.explicit_package]
title = "Explicit package"
jinja = """
{{ "jinja2" | MkDependencyTable }}
"""
[examples.badge_style]
title = "Badge style"
jinja = """
{{ "mkdocs" | MkDependencyTable(layout="badge") }}
"""
[layouts.default]
Name = """
{% if package_info.homepage %}
{{ package_info.homepage | MkLink(package_info.name) | string | md_style(size=3, bold=True) }}{% else %}
{{ package_info.name | md_style(size=3, bold=True, code=True) }}{% endif %}
"""
Summary = """
{{ package_info.summary | md_style(italic=True) }}
"""
Marker = """
{{ (dep_info.marker or "") | string | re_replace('([A-Za-z_]* [>|=|<]* ".*?")', "`\\\\g<1>`") }}
"""
[layouts.badge]
Name = """
{% if package_info.homepage %}
{{ package_info.homepage | MkLink(package_info.name) | string | md_style(size=3, bold=True) }}{% else %}
{{ package_info.name | md_style(size=3, bold=True, code=True) }}{% endif %}<br>{{ (dep_info.marker or "") | string | re_replace('([A-Za-z_]* [>|=|<]* ".*?")', "`\\\\g<1>`") }}
"""
Summary = """
{{ package_info.summary | md_style(italic=True) }}<br>{{ "websites" | MkMetadataBadges(package=package_info.name, block_separator=" ") }}
"""
16class MkDependencyTable(mktemplatetable.MkTemplateTable):
17 """Node for a table showing dependencies for a package."""
18
19 ICON = "material/database"
20 STATUS = "new"
21
22 def __init__(
23 self,
24 package: str | packageinfo.PackageInfo | None = None,
25 *,
26 layout: PackageLayoutStr = "default",
27 **kwargs: Any,
28 ) -> None:
29 self.package = package
30 super().__init__(layout=layout, **kwargs)
31
32 @property
33 def required_packages(self) -> dict[packageinfo.PackageInfo, Dependency] | None:
34 match self.package:
35 case None:
36 return self.ctx.metadata.required_packages
37 case str():
38 return packageregistry.get_info(self.package).required_packages
39 case packageinfo.PackageInfo():
40 return self.package.required_packages
41 case _:
42 return None
43
44 def iter_items(self):
45 if not self.required_packages:
46 return
47 yield from [
48 dict(package_info=package_info, dep_info=dep_info)
49 for (package_info, dep_info) in self.required_packages.items()
50 ]
Page info
Code for this page
93def create_section_for_nodes(
94 nav: mk.MkNav,
95 klasses: Sequence[type[mk.MkNode]],
96) -> mk.MkTable:
97 table = mk.MkTable(columns=["Node", "Docstrings", "Markdown extensions"])
98 for kls in klasses:
99 tpl = "classpage_custom.jinja"
100 page = mk.MkClassPage(kls, icon=kls.ICON, template_path=tpl, parent=nav, hide="toc")
101 nav += page
102 if kls.STATUS:
103 page.metadata.status = kls.STATUS
104 elif kls.JS_FILES:
105 page.metadata.status = "js"
106 elif kls.CSS:
107 page.metadata.status = "css"
108 page.created_by = create_section_for_nodes
109 link = mk.MkLink(page, kls.__name__, icon=kls.ICON)
110 extensions = ", ".join(f"`{i}`" for i in kls.REQUIRED_EXTENSIONS)
111 table.add_row((link, kls.__doc__, extensions))
112 return table
Resources
Resources(css=[],
markdown_extensions={'admonition': {},
'pymdownx.details': {},
'pymdownx.highlight': {'anchor_linenums': True,
'line_spans': '__span',
'pygments_lang_class': True},
'pymdownx.superfences': {'custom_fences': [{'class': 'mermaid',
'format': <function fence_code_format at 0x7ff77e88b060>,
'name': 'mermaid'}]},
'pymdownx.tabbed': {},
'tables': {}},
plugins=[Plugin('mkdocstrings')],
js=[],
assets=[],
packages=[])
Metadata
created:
source_filename: /home/runner/work/mknodes/mknodes/src/mknodes/manual/nodes_section.py
source_function: create_section_for_nodes
source_line_no: 93
hide:
- toc
icon: material/database
status: new
title: MkDependencyTable