# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE # Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt from __future__ import annotations from pylint.pyreverse.dot_printer import DotPrinter from pylint.pyreverse.mermaidjs_printer import HTMLMermaidJSPrinter, MermaidJSPrinter from pylint.pyreverse.plantuml_printer import PlantUmlPrinter from pylint.pyreverse.printer import Printer from pylint.pyreverse.vcg_printer import VCGPrinter filetype_to_printer: dict[str, type[Printer]] = { "vcg": VCGPrinter, "plantuml": PlantUmlPrinter, "puml": PlantUmlPrinter, "mmd": MermaidJSPrinter, "html": HTMLMermaidJSPrinter, "dot": DotPrinter, } def get_printer_for_filetype(filetype: str) -> type[Printer]: return filetype_to_printer.get(filetype, DotPrinter)
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
__init__.py | File | 274 B | 0644 |
|
diadefslib.py | File | 8.5 KB | 0644 |
|
diagrams.py | File | 10.62 KB | 0644 |
|
dot_printer.py | File | 6.33 KB | 0644 |
|
inspector.py | File | 14.72 KB | 0644 |
|
main.py | File | 8.76 KB | 0644 |
|
mermaidjs_printer.py | File | 3.47 KB | 0644 |
|
plantuml_printer.py | File | 3.56 KB | 0644 |
|
printer.py | File | 3.65 KB | 0644 |
|
printer_factory.py | File | 900 B | 0644 |
|
utils.py | File | 8.13 KB | 0644 |
|
vcg_printer.py | File | 8.67 KB | 0644 |
|
writer.py | File | 6.09 KB | 0644 |
|