graphviz API reference
61 public APIs from graphviz (xflr6/graphviz) — 24 classes, 23 functions, 14 methods. Signatures extracted by static analysis of the actual source.
Repository: xflr6/graphviz
| Kind | Count |
|---|---|
| Classes | 24 |
| Functions | 23 |
| Methods | 14 |
API list
func
graphviz._compat.get_startupinfo() -> NoneReturn None for startupinfo argument of ``subprocess.Popen``.
func
graphviz._defaults.set_default_engine(engine:str) -> strChange the default ``engine`` and return the old default value.
func
graphviz._defaults.set_default_format(format:str) -> strChange the default ``format`` and return the old default value.
func
graphviz._tools.attach(object:Any, name:str) -> CallableReturn a decorator doing ``setattr(object, name)`` with its argument.
func
graphviz._tools.nulldecorator(func)Return the undecorated function.
func
graphviz._tools.promote_pathlike(filepath:os.PathLike[str] | str) -> pathlib.PathReturn path object for path-like-object.
class
graphviz.backend.mixins.PipeParameters for calling and calling ``graphviz.pipe()``.
class
graphviz.backend.mixins.RenderParameters for calling and calling ``graphviz.render()``.
func
graphviz.backend.rendering.get_filepath(outfile:os.PathLike[str] | str) -> pathlib.PathReturn ``outfile.with_suffix('.gv')``.
func
graphviz.backend.rendering.infer_format(outfile:pathlib.Path) -> strReturn format inferred from outfile suffix.
func
graphviz.backend.viewing.view_darwin(filepath:os.PathLike[str] | str, *quiet:bool) -> NoneOpen filepath with its default application (mac).
func
graphviz.backend.viewing.view_windows(filepath:os.PathLike[str] | str, *quiet:bool) -> NoneStart filepath with its associated application (windows).
class
graphviz.base.BaseLineIterator with ``.source`` attribute, that it returns for ``str()``.
class
graphviz.copying.CopyBaseCreate new instance copies with cooperative ``super()`` calls.
method
graphviz.copying.CopyBase.copy()Return a copied instance of the object.
class
graphviz.dot.DigraphSyntaxDOT digraph head and edge syntax.
class
graphviz.dot.DotAssemble DOT source code.
method
graphviz.dot.Dot.attr(kw:str | None=None, _attributes=None, **attrs:str) -> NoneAdd a general or graph/node/edge attribute statement.
method
graphviz.dot.Dot.clear(keep_attrs:bool=False) -> NoneReset content to an empty body, clear graph/node/egde_attr mappings.
method
graphviz.dot.Dot.edge(tail_name:str, head_name:str, label:str | None=None, _attributes=None, **attrs:str) -> NoneCreate an edge between two nodes.
method
graphviz.dot.Dot.edges(tail_head_iter:Iterable[tuple[str, str]]) -> NoneCreate a bunch of edges.
method
graphviz.dot.Dot.node(name:str, label:str | None=None, _attributes=None, **attrs:str) -> NoneCreate a node.
class
graphviz.dot.GraphSyntaxDOT graph head and edge syntax.
func
graphviz.dot.comment(line:str) -> strReturn comment header line.
func
graphviz.dot.digraph_edge(*tail:str, *head:str, *attr:str) -> strReturn DOT digraph edge statement line.
func
graphviz.dot.digraph_head(name:str) -> strReturn DOT digraph head line.
func
graphviz.dot.graph_edge(*tail:str, *head:str, *attr:str) -> strReturn DOT graph edge statement line.
func
graphviz.dot.graph_head(name:str) -> strReturn DOT graph head line.
func
graphviz.dot.node(left:str, right:str) -> strReturn DOT node statement line.
func
graphviz.dot.subgraph(name:str) -> strReturn DOT subgraph head line.
func
graphviz.dot.subgraph_plain(name:str) -> strReturn plain DOT subgraph head line.
class
graphviz.encoding.EncodingEncoding used for input and output with ``'utf-8'`` default.
method
graphviz.encoding.Encoding.encoding() -> strThe encoding for the saved source file.
class
graphviz.exceptions.FileExistsError:exc:`FileExistsError` raised with ``raise_if_exists=True``.
class
graphviz.exceptions.RequiredArgumentError:exc:`TypeError` raised if a required argument is missing.
class
graphviz.graphs.BaseGraphDot language creation and source code rendering.
method
graphviz.graphs.BaseGraph.source() -> strThe generated DOT source code as string.
class
graphviz.graphs.DigraphDirected graph source code in the DOT language.
method
graphviz.graphs.Digraph.directed() -> bool``True``
class
graphviz.graphs.GraphGraph source code in the DOT language.
method
graphviz.graphs.Graph.directed() -> bool``False``
class
graphviz.parameters.base.ParameterBaseRendering parameter.
class
graphviz.parameters.engines.EngineRendering engine parameter with ``'dot''`` default.
class
graphviz.parameters.formats.FormatRendering format parameter with ``'pdf'`` default.
class
graphviz.parameters.formatters.FormatterRendering engine parameter (no default).
class
graphviz.parameters.renderers.RendererRendering renderer parameter (no default).
class
graphviz.piping.PipePipe source lines through the Graphviz layout command.
class
graphviz.quoting.NoHtmlString subclass that does not treat ``'<...>'`` as DOT HTML string.
func
graphviz.quoting.a_list(label:str | None=None, kwargs:Mapping[str, str] | None=None, attributes:Mapping[str, str] | Sequence[tuple[str, str]] | None=None) -> strReturn assembled DOT a_list string.
func
graphviz.quoting.attr_list(label:str | None=None, kwargs:Mapping[str, str] | None=None, attributes:Mapping[str, str] | Sequence[tuple[str, str]] | None=None) -> strReturn assembled DOT attribute list string.
func
graphviz.quoting.escape(s:str) -> strReturn string disabling special meaning of backslashes and ``'<...>'``.
func
graphviz.quoting.nohtml(s:str) -> strReturn string not treating ``'<...>'`` as DOT HTML string in quoting.
func
graphviz.quoting.quote_edge(identifier:str) -> strReturn DOT edge statement node_id from string, quote if needed.
class
graphviz.rendering.RenderWrite source lines to file and render with Graphviz.
class
graphviz.saving.SaveSave DOT source lines to file.
method
graphviz.saving.Save.filepath() -> strThe target path for saving the DOT source file.
method
graphviz.saving.Save.save(filename:os.PathLike[str] | str | None=None, directory:os.PathLike[str] | str | None=None, *skip_existing:bool | None=False) -> strSave the DOT source to file.
class
graphviz.sources.SourceVerbatim DOT source code string to be rendered by Graphviz.
method
graphviz.sources.Source.save(filename:os.PathLike[str] | str | None=None, directory:os.PathLike[str] | str | None=None, *skip_existing:bool | None=None) -> strSave the DOT source to file.
method
graphviz.sources.Source.source() -> strThe DOT source code as string.
class
graphviz.unflattening.UnflattenPipe source through the Graphviz *unflatten* preprocessor.
About this data
These signatures were extracted from the public source of xflr6/graphviz
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.